octeontx2-af: Consider the action set by PF
authorSubbaraya Sundeep <sbhatta@marvell.com>
Mon, 19 Feb 2024 12:55:14 +0000 (18:25 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Feb 2024 11:19:22 +0000 (11:19 +0000)
commit3b1ae9b71c2a97f848b00fb085a2bd29bddbe8d9
treebb93fc889c5fea6e519986c1b0214aa4d3617381
parent23f9c2c066e7e5052406fb8f04a115d3d0260b22
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: 967db3529eca ("octeontx2-af: add support for multicast/promisc packet replication feature")
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c