numam-dpdk/drivers/net/ice
Yunjian Wang d3778bf39a net/ice: 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
------------>ice_rx_queue_release
rte_eth_dev_close
-->ice_dev_close
---->ice_free_queues
------>ice_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/ice/base: fix strict-aliasing with GCC 2021-10-05 16:59:06 +02:00
ice_acl_filter.c net/ice: fix double free ACL flow entry 2021-09-24 07:46:57 +02:00
ice_dcf_ethdev.c ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
ice_dcf_ethdev.h net/ice: support QoS config VF bandwidth in DCF 2021-07-06 04:58:15 +02:00
ice_dcf_parent.c net/ice: support DCF device reset 2021-09-06 03:17:29 +02:00
ice_dcf_sched.c net/ice: fix bandwidth config size in memory copy 2021-08-15 04:32:03 +02:00
ice_dcf_vf_representor.c net/ice: fix crash on representor port closing 2021-09-13 07:53:06 +02:00
ice_dcf.c net/ice: retry getting VF VSI map after failure 2021-09-28 07:00:17 +02:00
ice_dcf.h net/ice: support DCF device reset 2021-09-06 03:17:29 +02:00
ice_ethdev.c ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
ice_ethdev.h net/ice: support IEEE 1588 PTP 2021-09-28 13:13:52 +02:00
ice_fdir_filter.c net/ice: fix memzone leak on queue re-configure 2021-10-07 13:38:16 +02:00
ice_generic_flow.c eal: remove sys/queue.h from public headers 2021-10-01 13:09:43 +02:00
ice_generic_flow.h net/ice: fix ESP flow director with SPI as input set 2021-07-16 10:11:30 +02:00
ice_hash.c net/ice: support IPv4/L4 checksum RSS offload 2021-09-24 12:57:42 +02:00
ice_logs.h net/ice: refine debug build option 2021-04-01 16:10:20 +02:00
ice_rxtx_vec_avx2.c net/ice: add AVX2 offload Rx 2021-07-06 04:57:53 +02:00
ice_rxtx_vec_avx512.c net/ice: fix data path in secondary process 2021-06-10 12:04:16 +02:00
ice_rxtx_vec_common.h net/ice: enable Rx timestamp on flex descriptor 2021-09-28 05:33:41 +02:00
ice_rxtx_vec_sse.c drivers/net: fix vector Rx comments 2021-08-10 05:01:57 +02:00
ice_rxtx.c net/ice: fix memzone leak on queue re-configure 2021-10-07 13:38:16 +02:00
ice_rxtx.h net/ice: fix memzone leak on queue re-configure 2021-10-07 13:38:16 +02:00
ice_switch_filter.c ethdev: use extension header for GTP PSC item 2021-09-28 12:34:58 +02:00
meson.build net/ice: support QoS config VF bandwidth in DCF 2021-07-06 04:58:15 +02:00
rte_pmd_ice.h net/ice: support auxiliary IP offset Rx descriptor 2020-09-18 18:55:06 +02:00
version.map version: 21.11-rc0 2021-08-17 08:37:52 +02:00