Re: [dpdk-dev] [Patch v3 1/2] net/virtio: check head desc with correct wrap counter

2019-01-11 Thread Maxime Coquelin
On 1/10/19 10:47 PM, Jens Freimann wrote: In virtio_pq_send_command() we check for a used descriptor and wait in an idle loop until it becomes used. We can't use vq->used_wrap_counter here to check for the first descriptor we made available because the ring could have wrapped. Let's use the us

[dpdk-dev] [Patch v3 1/2] net/virtio: check head desc with correct wrap counter

2019-01-10 Thread Jens Freimann
In virtio_pq_send_command() we check for a used descriptor and wait in an idle loop until it becomes used. We can't use vq->used_wrap_counter here to check for the first descriptor we made available because the ring could have wrapped. Let's use the used_wrap_counter that matches the state of the h