Skip to content

Commit ed360ae

Browse files
committed
octeontx2-pf: Fix resource leakage in VF driver unbind
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2040643 commit 53da7ae Author: Hariprasad Kelam <hkelam@marvell.com> Date: Mon Jan 9 11:43:25 2023 +0530 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: 2da4894 ("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> Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
1 parent 9d82d6e commit ed360ae

File tree

1 file changed

+2
-0
lines changed
  • drivers/net/ethernet/marvell/octeontx2/nic

1 file changed

+2
-0
lines changed

drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,8 @@ static void otx2vf_remove(struct pci_dev *pdev)
756756
if (vf->otx2_wq)
757757
destroy_workqueue(vf->otx2_wq);
758758
otx2_ptp_destroy(vf);
759+
otx2_mcam_flow_del(vf);
760+
otx2_shutdown_tc(vf);
759761
otx2vf_disable_mbox_intr(vf);
760762
otx2_detach_resources(&vf->mbox);
761763
if (test_bit(CN10K_LMTST, &vf->hw.cap_flag))

0 commit comments

Comments
 (0)