Re: [dpdk-dev] [PATCH v2 1/4] net/virtio: fix queue flushing with vector Rx enabled

2018-01-22 Thread Tiwei Bie
On Mon, Jan 22, 2018 at 11:38:58AM +0100, Olivier Matz wrote: > On Mon, Jan 22, 2018 at 10:56:41AM +0800, Tiwei Bie wrote: > > On Fri, Jan 19, 2018 at 04:55:53PM +0100, Olivier Matz wrote: > > > When using vector Rx mode (use_simple_rx = 1), vq->vq_descx[] is not > > > kept up to date. To properly

Re: [dpdk-dev] [PATCH v2 1/4] net/virtio: fix queue flushing with vector Rx enabled

2018-01-22 Thread Olivier Matz
On Mon, Jan 22, 2018 at 10:56:41AM +0800, Tiwei Bie wrote: > On Fri, Jan 19, 2018 at 04:55:53PM +0100, Olivier Matz wrote: > > When using vector Rx mode (use_simple_rx = 1), vq->vq_descx[] is not > > kept up to date. To properly detach the mbufs in this case, browse > > sw_ring[] instead, as it's d

Re: [dpdk-dev] [PATCH v2 1/4] net/virtio: fix queue flushing with vector Rx enabled

2018-01-21 Thread Tiwei Bie
On Fri, Jan 19, 2018 at 04:55:53PM +0100, Olivier Matz wrote: > When using vector Rx mode (use_simple_rx = 1), vq->vq_descx[] is not > kept up to date. To properly detach the mbufs in this case, browse > sw_ring[] instead, as it's done in virtqueue_rxvq_flush(). > > Since we need virtio_get_queue_

[dpdk-dev] [PATCH v2 1/4] net/virtio: fix queue flushing with vector Rx enabled

2018-01-19 Thread Olivier Matz
When using vector Rx mode (use_simple_rx = 1), vq->vq_descx[] is not kept up to date. To properly detach the mbufs in this case, browse sw_ring[] instead, as it's done in virtqueue_rxvq_flush(). Since we need virtio_get_queue_type(), also move this function in virtqueue.h as a static inline. Fixe