Re: [dpdk-dev] [PATCH v3 10/15] vhost: optimize enqueue function of packed ring

2019-09-25 Thread Tiwei Bie
On Thu, Sep 26, 2019 at 01:13:24AM +0800, Marvin Liu wrote: > static __rte_noinline uint32_t > virtio_dev_rx_packed(struct virtio_net *dev, struct vhost_virtqueue *vq, > struct rte_mbuf **pkts, uint32_t count) > { > uint32_t pkt_idx = 0; > - uint16_t num_buffers; > - struct b

[dpdk-dev] [PATCH v3 10/15] vhost: optimize enqueue function of packed ring

2019-09-25 Thread Marvin Liu
Optimize vhost device Tx datapath by separate functions. Packets can be filled into one descriptor will be handled by batch and others will be handled one by one as before. Signed-off-by: Marvin Liu diff --git a/lib/librte_vhost/virtio_net.c b/lib/librte_vhost/virtio_net.c index 1b0fa2c64..c485e