• Subbaraya Sundeep's avatar
    octeontx2-af: Consider the action set by PF · 3b1ae9b7
    Subbaraya Sundeep authored
    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: 967db352 ("octeontx2-af: add support for multicast/promisc packet replication feature")
    Signed-off-by: default avatarSubbaraya Sundeep <sbhatta@marvell.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    3b1ae9b7
rvu_npc.c 94.8 KB