numam-dpdk/drivers
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
..
baseband version: 21.11-rc0 2021-08-17 08:37:52 +02:00
bus bus/fslmc: add qbman debug 2021-10-07 11:42:21 +02:00
common common/cnxk: fix freeing MCAM counter 2021-10-04 17:43:07 +02:00
compress compress/mlx5: refactor HW queue object 2021-10-05 18:15:40 +02:00
crypto common/mlx5: share DevX queue pair operations 2021-10-05 18:15:40 +02:00
event net/cnxk: support Tx security offload on cn10k 2021-10-02 15:45:19 +02:00
mempool mempool/stack: build on Windows 2021-10-01 16:46:05 +02:00
net net/i40e: fix memzone leak on queue re-configure 2021-10-07 13:38:16 +02:00
raw raw/dpaa2_qdma: remove datapath checks for lcore ID 2021-10-07 14:47:35 +02:00
regex regex/mlx5: refactor HW queue objects 2021-10-05 18:15:40 +02:00
vdpa common/mlx5: share DevX queue pair operations 2021-10-05 18:15:40 +02:00
meson.build build: fix essential drivers in disable list 2021-09-15 11:00:15 +02:00