aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
diff options
context:
space:
mode:
authorGravatar Naveen Mamindlapalli <naveenm@marvell.com> 2021-03-17 19:05:34 +0530
committerGravatar David S. Miller <davem@davemloft.net> 2021-03-17 12:29:39 -0700
commit63f925dc55b33e8c4edd0de5e83904cd179d3095 (patch)
treef00751aa6a7b063164b59ca37a5c97b6fa683f4a /drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
parentMerge branch 'mlxsw-vlan-=vxlan' (diff)
downloadlinux-63f925dc55b33e8c4edd0de5e83904cd179d3095.tar.gz
linux-63f925dc55b33e8c4edd0de5e83904cd179d3095.tar.bz2
linux-63f925dc55b33e8c4edd0de5e83904cd179d3095.zip
octeontx2-af: refactor function npc_install_flow for default entry
This patch refactors npc_install_flow function to install AF installed default MCAM entries similar to other MCAM entries installed by PF/VF. As a result the code would be more readable and easy to maintain. Modified npc_verify_entry and npc_verify_channel to properly check MCAM rules installed by AF. Signed-off-by: Naveen Mamindlapalli <naveenm@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c')
-rw-r--r--drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
index aa2ca8780b9c..c8836d48a614 100644
--- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
+++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
@@ -2145,7 +2145,7 @@ static int rvu_dbg_npc_mcam_show_rules(struct seq_file *s, void *unused)
seq_printf(s, "\tmcam entry: %d\n", iter->entry);
rvu_dbg_npc_mcam_show_flows(s, iter);
- if (iter->intf == NIX_INTF_RX) {
+ if (is_npc_intf_rx(iter->intf)) {
target = iter->rx_action.pf_func;
pf = (target >> RVU_PFVF_PF_SHIFT) & RVU_PFVF_PF_MASK;
seq_printf(s, "\tForward to: PF%d ", pf);