Skip to content

Commit d431abd

Browse files
Geetha sowjanyaPaolo Abeni
authored andcommitted
octeontx2-af: Add missing mcs flr handler call
If mcs resources are attached to PF/VF. These resources need to be freed on FLR. This patch add missing mcs flr call on PF FLR. Fixes: bd69476 ("octeontx2-af: cn10k: mcs: Install a default TCAM for normal traffic") Signed-off-by: Geetha sowjanya <[email protected]> Reviewed-by: Wojciech Drewek <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
1 parent 3ba98a8 commit d431abd

File tree

1 file changed

+3
-0
lines changed
  • drivers/net/ethernet/marvell/octeontx2/af

1 file changed

+3
-0
lines changed

drivers/net/ethernet/marvell/octeontx2/af/rvu.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2631,6 +2631,9 @@ static void __rvu_flr_handler(struct rvu *rvu, u16 pcifunc)
26312631
rvu_npc_free_mcam_entries(rvu, pcifunc, -1);
26322632
rvu_mac_reset(rvu, pcifunc);
26332633

2634+
if (rvu->mcs_blk_cnt)
2635+
rvu_mcs_flr_handler(rvu, pcifunc);
2636+
26342637
mutex_unlock(&rvu->flr_lock);
26352638
}
26362639

0 commit comments

Comments
 (0)