/* VQ Reply bufs are local host memory copies of a outstanding Verb Request reply message. The are always allocated by the kernel verbs handlers, and  */
int vq_init(struct c2_dev *c2dev)
/* VQ Reply bufs are local host memory copies of a outstanding Verb Request reply message. The are always allocated by the kernel verbs handlers, and  */
int vq_init(struct c2_dev *c2dev)
{
	sprintf(c2dev->vq_cache_name, "c2-vq:dev%c",
		(char) ('0' + c2dev->devnum));
	c2dev->host_msg_cache =
	    kmem_cache_create(c2dev->vq_cache_name, c2dev->rep_vq.msg_size, 0,
			      SLAB_HWCACHE_ALIGN, NULL);
	if (c2dev->host_msg_cache == NULL) {
		return -ENOMEM;
	}
	return 0;
}