Re: [dpdk-dev] [PATCH v1 01/14] vhost: add single packet enqueue function

2019-09-23 Thread Stephen Hemminger
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

[dpdk-dev] [PATCH v1 01/14] vhost: add single packet enqueue function

2019-09-05 Thread Marvin Liu
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