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>
This commit is contained in:
committed by
David S. Miller
parent
930a3a6229
commit
63f925dc55
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user