Skip to content

Commit 53da7ae

Browse files
Hariprasad KelamPaolo Abeni
authored andcommitted
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 <[email protected]> Signed-off-by: Sunil Kovvuri Goutham <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent 74cf679 commit 53da7ae

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
@@ -758,6 +758,8 @@ static void otx2vf_remove(struct pci_dev *pdev)
758758
if (vf->otx2_wq)
759759
destroy_workqueue(vf->otx2_wq);
760760
otx2_ptp_destroy(vf);
761+
otx2_mcam_flow_del(vf);
762+
otx2_shutdown_tc(vf);
761763
otx2vf_disable_mbox_intr(vf);
762764
otx2_detach_resources(&vf->mbox);
763765
if (test_bit(CN10K_LMTST, &vf->hw.cap_flag))

0 commit comments

Comments
 (0)