net/virtio: fix Tx completed mbuf leak on device stop
authorIvan Ilchenko <ivan.ilchenko@oktetlabs.ru>
Wed, 15 Sep 2021 09:19:42 +0000 (12:19 +0300)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 28 Sep 2021 15:26:50 +0000 (17:26 +0200)
commit9de76dfb929807f6fbf0b7ceec4bc8274221ddde
tree1a61b11608790ad91773c368a6752c55623eaee8
parente2ca43a35ea60e6194a72d37c964d52827fcff71
net/virtio: fix Tx completed mbuf leak on device stop

Free Tx completed mbufs on device stop. Not completed Tx mbufs cannot be
freed since they are still in use.

Fixes: c1f86306a026 ("virtio: add new driver")
Cc: stable@dpdk.org
Signed-off-by: Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_ethdev.c