net/virtio: fix Tx desc cleanup for packed ring
authorTiwei Bie <tiwei.bie@intel.com>
Tue, 19 Feb 2019 10:59:47 +0000 (18:59 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 22 Feb 2019 13:39:49 +0000 (14:39 +0100)
commit91397bdc768befd57628e22b99d9eeb7e0ca7085
tree84d2e05c54bdbd41005bcf45d022d9bd25342324
parent4c3cd4c294f883a5cf6d75425351b855d5f4be05
net/virtio: fix Tx desc cleanup for packed ring

We should try to cleanup at least the 'need' number of descs.

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