numam-dpdk/drivers/net/tap
Yunjian Wang 05a8e4a35d net/tap: free mempool when closing
When setup tx queues, we will create a mempool for the 'gso_ctx'.
The mempool is not freed when closing tap device. If free the tap
device and create it with different name, it will create a new
mempool. This maybe cause an OOM.

The snprintf function return value is not checked and the mempool
name may be truncated. This patch also fix it.

Fixes: 050316a883 ("net/tap: support TSO (TCP Segment Offload)")
Cc: stable@dpdk.org

Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2020-09-18 18:55:10 +02:00
..
meson.build build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
rte_eth_tap.c net/tap: free mempool when closing 2020-09-18 18:55:10 +02:00
rte_eth_tap.h net/tap: free mempool when closing 2020-09-18 18:55:10 +02:00
rte_pmd_tap_version.map version: 20.11-rc0 2020-08-12 11:32:16 +02:00
tap_bpf_api.c align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
tap_bpf_insns.h add missing static keyword to globals 2018-10-29 02:01:08 +01:00
tap_bpf_program.c replace packed attributes 2020-04-16 18:16:46 +02:00
tap_bpf.h replace alignment attributes 2020-04-16 18:16:18 +02:00
tap_flow.c net/tap: fix crash in flow destroy 2020-05-11 22:27:39 +02:00
tap_flow.h align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
tap_intr.c net/tap: fix queues fd check before close 2020-04-21 13:57:09 +02:00
tap_log.h net/tap: convert to dynamic logging 2018-04-27 18:00:59 +01:00
tap_netlink.c net/tap: fix build for glibc < 2.24 2020-05-11 22:27:39 +02:00
tap_netlink.h align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
tap_rss.h replace packed attributes 2020-04-16 18:16:46 +02:00
tap_tcmsgs.c net/tap: fix possible uninitialized variable access 2018-12-21 16:22:41 +01:00
tap_tcmsgs.h align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00