numam-dpdk/drivers/net
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
..
af_packet ethdev: make queue release callback optional 2021-10-06 19:16:03 +02:00
af_xdp ethdev: make queue release callback optional 2021-10-06 19:16:03 +02:00
ark version: 21.11-rc0 2021-08-17 08:37:52 +02:00
atlantic ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
avp ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
axgbe ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
bnx2x ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
bnxt ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
bonding ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
cnxk ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
cxgbe ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
dpaa ethdev: make queue release callback optional 2021-10-06 19:16:03 +02:00
dpaa2 ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
e1000 net/e1000: fix memzone leak on queue re-configure 2021-10-07 13:38:16 +02:00
ena ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
enetc ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
enic ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
failsafe ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
fm10k ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
hinic ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
hns3 ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
i40e ethdev: remove legacy mirroring API 2021-10-07 13:02:26 +02:00
iavf ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
ice ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
igc ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
ionic ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
ipn3ke ethdev: make queue release callback optional 2021-10-06 19:16:03 +02:00
ixgbe ethdev: remove legacy mirroring API 2021-10-07 13:02:26 +02:00
kni ethdev: make queue release callback optional 2021-10-06 19:16:03 +02:00
liquidio ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
memif ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
mlx4 ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
mlx5 ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
mvneta ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
mvpp2 ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
netvsc ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
nfb ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
nfp net/nfp: cancel delayed LSC work in port close 2021-10-07 12:19:53 +02:00
ngbe ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
null ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
octeontx ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
octeontx2 ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
octeontx_ep ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
pcap ethdev: make queue release callback optional 2021-10-06 19:16:03 +02:00
pfe ethdev: make queue release callback optional 2021-10-06 19:16:03 +02:00
qede ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
ring ethdev: make queue release callback optional 2021-10-06 19:16:03 +02:00
sfc ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
softnic sort symbol maps 2021-10-05 17:03:37 +02:00
szedata2 ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
tap ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
thunderx ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
txgbe ethdev: remove legacy mirroring API 2021-10-07 13:02:26 +02:00
vdev_netvsc version: 21.11-rc0 2021-08-17 08:37:52 +02:00
vhost ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
virtio ethdev: make queue release callback optional 2021-10-06 19:16:03 +02:00
vmxnet3 ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
meson.build net/ngbe: add build and doc infrastructure 2021-07-12 17:55:19 +02:00