net/tap: fix mbuf and mem leak during queue release
authorYunjian Wang <wangyunjian@huawei.com>
Thu, 16 Apr 2020 03:04:25 +0000 (11:04 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:08 +0000 (13:57 +0200)
commit710aa4279097e9ee5a131b7e0732e5a8ef8bcfc1
tree6032c4ed8c207594f45e706a028e5f02d57aabe9
parent24cb500c17c6914fce4c8df278b06966d70b897d
net/tap: fix mbuf and mem leak during queue release

For the tap PMD, we should release mbufs and iovecs from the Rx queue
when closing device. In order to remove duplicated code,
rte_pmd_tap_remove() calls tap_dev_close().

Fixes: 0781f5762cfe ("net/tap: support segmented mbufs")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
drivers/net/tap/rte_eth_tap.c