net/virtio: cleanup on demand when in-order Tx
authorMarvin Liu <yong.liu@intel.com>
Wed, 18 Sep 2019 17:06:55 +0000 (01:06 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 7 Oct 2019 13:00:57 +0000 (15:00 +0200)
commite76097f8489a0c4c8044f3382ad81452c4771624
tree50e120af3d920da0d2f9533beedc6fc063e54da2
parent01689b1ed4863f937e5b9db65a79fb72d764629a
net/virtio: cleanup on demand when in-order Tx

Check whether space are enough before burst enqueue operation. If more
space is needed, will try to clean up used descriptors for space on
demand. It can give more chances to free used descriptors, thus will
help RFC2544 performance. Also deduct failed xmit packets from total
xmit number.

Fixes: e5f456a98d3c ("net/virtio: support in-order Rx and Tx")
Cc: stable@dpdk.org
Signed-off-by: Marvin Liu <yong.liu@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_rxtx.c