net/virtio: fix check scatter on all Rx queues
authorZhihong Peng <zhihongx.peng@intel.com>
Fri, 8 Oct 2021 05:49:45 +0000 (05:49 +0000)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Thu, 21 Oct 2021 12:24:13 +0000 (14:24 +0200)
commit84cc857b5d9a344a1f04ec9f55417b58cd38e260
tree3704ca2d759aa88ca9e7bc1c86663ca326405b6c
parentf5ec6a3a198747e30624fd3a8cd29b1deb5cbbf9
net/virtio: fix check scatter on all Rx queues

This patch fixes the wrong way to obtain virtqueue.
The end of virtqueue cannot be judged based on whether
the array is NULL.

Fixes: 4e8169eb0d2d ("net/virtio: fix Rx scatter offload")
Cc: stable@dpdk.org
Signed-off-by: Zhihong Peng <zhihongx.peng@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_ethdev.c