This code could be more concise.
> +/*
> + * Returns -1 on fail, 0 on success
> + */
That is standard convention, and probably doesn't need a comment.
> +static inline int
> +vhost_enqueue_single_packed(struct virtio_net *dev, struct vhost_virtqueue
> *vq,
> + struct rte_mbuf *pkt, struct b
Add vhost enqueue function for single packet and meanwhile left space
for flush used ring function.
Signed-off-by: Marvin Liu
diff --git a/lib/librte_vhost/virtio_net.c b/lib/librte_vhost/virtio_net.c
index 5b85b832d..5ad0a8175 100644
--- a/lib/librte_vhost/virtio_net.c
+++ b/lib/librte_vhost/vi
2 matches
Mail list logo