]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-pf: Fix algorithm index in MCAM rules with RSS action
authorSunil Goutham <sgoutham@marvell.com>
Sun, 22 Aug 2021 12:02:26 +0000 (17:32 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Aug 2021 20:38:16 +0000 (21:38 +0100)
commitaf4604f741085fc9f5ed89473a80626f23c101bd
treeadd522ba2c52c724d72a20c0e82b9da2cd42eabe
parentcb6754137336fb9a58ec7ffbafc38569e408d8dc
octeontx2-pf: Fix algorithm index in MCAM rules with RSS action

Otherthan setting action as RSS in NPC MCAM entry, RSS flowkey
algorithm index also needs to be set. Otherwise whatever algorithm
is defined at flowkey index '0' will be considered by HW and pkt
flows will be distributed as such.

Fix this by saving the flowkey index sent by admin function while
initializing RSS and then use it when framing MCAM rules.

Fixes: 7745c8706adb ("octeontx2-pf: Add RSS multi group support")
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h
drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c