Skip to content

Commit 3b1ae9b

Browse files
Subbaraya Sundeepdavem330
authored andcommitted
octeontx2-af: Consider the action set by PF
AF reserves MCAM entries for each PF, VF present in the system and populates the entry with DMAC and action with default RSS so that basic packet I/O works. Since PF/VF is not aware of the RSS action installed by AF, AF only fixup the actions of the rules installed by PF/VF with corresponding default RSS action. This worked well for rules installed by PF/VF for features like RX VLAN offload and DMAC filters but rules involving action like drop/forward to queue are also getting modified by AF. Hence fix it by setting the default RSS action only if requested by PF/VF. Fixes: 967db35 ("octeontx2-af: add support for multicast/promisc packet replication feature") Signed-off-by: Subbaraya Sundeep <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 23f9c2c commit 3b1ae9b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • drivers/net/ethernet/marvell/octeontx2/af

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,10 @@ static void npc_fixup_vf_rule(struct rvu *rvu, struct npc_mcam *mcam,
415415
return;
416416
}
417417

418+
/* AF modifies given action iff PF/VF has requested for it */
419+
if ((entry->action & 0xFULL) != NIX_RX_ACTION_DEFAULT)
420+
return;
421+
418422
/* copy VF default entry action to the VF mcam entry */
419423
rx_action = npc_get_default_entry_action(rvu, mcam, blkaddr,
420424
target_func);

0 commit comments

Comments
 (0)