Skip to content

Commit

Permalink
octeontx2-af: Add missing mcs flr handler call
Browse files Browse the repository at this point in the history
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 <gakula@marvell.com>
Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
  • Loading branch information
Geetha sowjanya authored and Paolo Abeni committed Dec 6, 2023
1 parent 3ba98a8 commit d431abd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/ethernet/marvell/octeontx2/af/rvu.c
Original file line number Diff line number Diff line change
Expand Up @@ -2631,6 +2631,9 @@ static void __rvu_flr_handler(struct rvu *rvu, u16 pcifunc)
rvu_npc_free_mcam_entries(rvu, pcifunc, -1);
rvu_mac_reset(rvu, pcifunc);

if (rvu->mcs_blk_cnt)
rvu_mcs_flr_handler(rvu, pcifunc);

mutex_unlock(&rvu->flr_lock);
}

Expand Down

0 comments on commit d431abd

Please sign in to comment.