]> git.droids-corp.org - dpdk.git/commit
net/bnxt: fix freeing aggregation rings
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Sat, 30 Oct 2021 03:50:19 +0000 (09:20 +0530)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Sun, 31 Oct 2021 16:02:36 +0000 (17:02 +0100)
commit400405873b6c259cec292d4e0b1bdbac78a3c141
tree1182d800be4a665618e544cdacc35017a02f0b02
parentf9c561ffbccc7611b046ebad7f248691fd0c59e1
net/bnxt: fix freeing aggregation rings

During port stop, we clear "eth_dev->data->scattered_rx" at the
beginning. As a result, in bnxt_free_hwrm_rx_ring() the check
bnxt_need_agg_ring() returns false and we end up not freeing
the Rx aggregation rings which results in resource leak in the FW.

Fixes: 657c2a7f1dd4 ("net/bnxt: create aggregation rings when needed")
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c