octeontx2-pf: Fix resource leakage in VF driver unbind
authorHariprasad Kelam <hkelam@marvell.com>
Mon, 9 Jan 2023 06:13:25 +0000 (11:43 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 10 Jan 2023 10:00:28 +0000 (11:00 +0100)
commit53da7aec32982f5ee775b69dce06d63992ce4af3
treefd44320fa993e4ce7af3dfe85878ba3134ca0d22
parent74cf679547d6b735666f2ab41ea7c62b447c9692
octeontx2-pf: Fix resource leakage in VF driver unbind

resources allocated like mcam entries to support the Ntuple feature
and hash tables for the tc feature are not getting freed in driver
unbind. This patch fixes the issue.

Fixes: 2da489432747 ("octeontx2-pf: devlink params support to set mcam entry count")
Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com>
Link: https://lore.kernel.org/r/20230109061325.21395-1-hkelam@marvell.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c