numam-dpdk/drivers/net/i40e
Yunjian Wang e3188d5f99 net/i40e: fix memzone leak on queue re-configure
Normally when closing the device the queue memzone should be
freed. But the memzone will be not freed, when device setup
ops like:

rte_eth_bond_slave_remove
-->__eth_bond_slave_remove_lock_free
---->slave_remove
------>rte_eth_dev_internal_reset
-------->rte_eth_dev_rx_queue_config
---------->eth_dev_rx_queue_config
------------>i40e_dev_rx_queue_release
rte_eth_dev_close
-->i40e_dev_close
---->i40e_dev_free_queues
------>i40e_dev_rx_queue_release
      (not been called due to nb_rx_queues and nb_tx_queues are 0)

And when queue number is changed to small size, the BIG memzone
queue index will be lost. This will lead to a memory leak. So we
should release the memzone when releasing queues.

Fixes: 460d167958 ("drivers/net: delete HW rings while freeing queues")
Cc: stable@dpdk.org

Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Acked-by: Haiyue Wang <haiyue.wang@intel.com>
2021-10-07 13:38:16 +02:00
..
base net/i40e: remove i40evf 2021-10-05 12:31:37 +02:00
i40e_ethdev.c ethdev: remove legacy mirroring API 2021-10-07 13:02:26 +02:00
i40e_ethdev.h ethdev: remove legacy mirroring API 2021-10-07 13:02:26 +02:00
i40e_fdir.c net/i40e: fix memzone leak on queue re-configure 2021-10-07 13:38:16 +02:00
i40e_flow.c eal: remove sys/queue.h from public headers 2021-10-01 13:09:43 +02:00
i40e_hash.c eal: remove sys/queue.h from public headers 2021-10-01 13:09:43 +02:00
i40e_hash.h net/i40e: refactor RSS flow 2021-01-08 19:20:09 +01:00
i40e_logs.h net/i40e: refine debug build option 2021-04-01 16:10:20 +02:00
i40e_pf.c net/i40e: fix VF RSS configuration 2021-05-12 14:21:27 +02:00
i40e_pf.h net/i40e: support AVF basic interface 2018-01-16 18:47:49 +01:00
i40e_regs.h drivers: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
i40e_rxtx_vec_altivec.c drivers/net: fix vector Rx comments 2021-08-10 05:01:57 +02:00
i40e_rxtx_vec_avx2.c net/i40e: fix crash in AVX512 2021-04-14 14:29:47 +02:00
i40e_rxtx_vec_avx512.c net/i40e: fix crash in AVX512 2021-04-14 14:29:47 +02:00
i40e_rxtx_vec_common.h net/i40e: improve vector Tx performance 2021-07-06 04:59:01 +02:00
i40e_rxtx_vec_neon.c net/i40e: reduce L1 cache misses in NEON Rx 2021-08-10 05:02:16 +02:00
i40e_rxtx_vec_sse.c drivers/net: fix vector Rx comments 2021-08-10 05:01:57 +02:00
i40e_rxtx.c net/i40e: fix memzone leak on queue re-configure 2021-10-07 13:38:16 +02:00
i40e_rxtx.h net/i40e: fix memzone leak on queue re-configure 2021-10-07 13:38:16 +02:00
i40e_tm.c drivers/net: build i40e and mlx5 on Windows 2021-01-14 23:51:24 +01:00
i40e_vf_representor.c net/i40e: fix multi-process shared data 2021-07-06 04:59:01 +02:00
meson.build net/i40e: remove i40evf 2021-10-05 12:31:37 +02:00
rte_pmd_i40e.c net/i40e: remove i40evf 2021-10-05 12:31:37 +02:00
rte_pmd_i40e.h net/i40e: add C++ include guard 2020-11-13 19:43:26 +01:00
version.map version: 21.11-rc0 2021-08-17 08:37:52 +02:00