net/virtio: fix packets check in mergeable packed Rx
authorTiwei Bie <tiwei.bie@intel.com>
Thu, 20 Jun 2019 02:34:36 +0000 (10:34 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 20 Jun 2019 21:42:04 +0000 (23:42 +0200)
commitc3a954eb74a4dbdd8fa8c27b26a292bf0c091b97
tree6fcf96e87abd67c03b835ac7e49bd51a5e5add67
parent1cbc164ebd8a11a5e850454d7425f01612a74bc4
net/virtio: fix packets check in mergeable packed Rx

We should check the descriptor state instead of vq's internal
free count (i.e. the number of descriptors that we haven't made
available) for the remaining mergeable packets.

Fixes: a76290c8f1cf ("net/virtio: implement Rx path for packed queues")
Cc: stable@dpdk.org
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
drivers/net/virtio/virtio_rxtx.c