numam-dpdk/drivers/net/e1000
Yunjian Wang 09cbfa2da4 net/e1000: 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
------------>em_rx_queue_release
rte_eth_dev_close
-->eth_em_close
---->em_dev_free_queues
------>em_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 drivers: remove warning with Meson 0.59 2021-08-27 15:51:34 +02:00
e1000_ethdev.h ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
e1000_logs.c log: register with standardized names 2021-05-11 15:17:55 +02:00
e1000_logs.h net/e1000: refine debug build option 2021-04-01 16:10:20 +02:00
em_ethdev.c net/e1000: fix Rx error counter for bad length 2021-04-01 09:47:43 +02:00
em_rxtx.c net/e1000: fix memzone leak on queue re-configure 2021-10-07 13:38:16 +02:00
igb_ethdev.c ethdev: improve xstats names by IDs get prototype 2021-10-06 13:07:11 +02:00
igb_flow.c net/e1000: fix flow error message object 2021-04-28 03:29:06 +02:00
igb_pf.c ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
igb_regs.h drivers: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
igb_rxtx.c net/e1000: fix memzone leak on queue re-configure 2021-10-07 13:38:16 +02:00
meson.build drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
version.map version: 21.11-rc0 2021-08-17 08:37:52 +02:00