Re: [dpdk-dev] [PATCH v3 1/7] vhost: use shadow used ring in dequeue path

2018-07-02 Thread Maxime Coquelin
On 07/03/2018 05:28 AM, Tiwei Bie wrote: On Wed, Jun 27, 2018 at 04:49:53PM +0200, Maxime Coquelin wrote: [...] @@ -1164,8 +1136,7 @@ rte_vhost_dequeue_burst(int vid, uint16_t queue_id, if (mbuf_is_consumed(zmbuf->mbuf)) { used_idx = vq->last_used_idx+

Re: [dpdk-dev] [PATCH v3 1/7] vhost: use shadow used ring in dequeue path

2018-07-02 Thread Tiwei Bie
On Wed, Jun 27, 2018 at 04:49:53PM +0200, Maxime Coquelin wrote: [...] > @@ -1164,8 +1136,7 @@ rte_vhost_dequeue_burst(int vid, uint16_t queue_id, > > if (mbuf_is_consumed(zmbuf->mbuf)) { > used_idx = vq->last_used_idx++ & (vq->size - 1); Above

[dpdk-dev] [PATCH v3 1/7] vhost: use shadow used ring in dequeue path

2018-06-27 Thread Maxime Coquelin
Relax used ring contention by reusing the shadow used ring feature used by enqueue path. Signed-off-by: Maxime Coquelin --- lib/librte_vhost/virtio_net.c | 45 ++- 1 file changed, 10 insertions(+), 35 deletions(-) diff --git a/lib/librte_vhost/virtio_net.