]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-af: fix LD CUSTOM LTYPE aliasing
authorStanislaw Kardach <skardach@marvell.com>
Tue, 29 Sep 2020 09:28:14 +0000 (11:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Sep 2020 20:12:03 +0000 (13:12 -0700)
commit19a1dfd357e9490e0a3edaab9aa0b05e88b32634
tree2e0875d302b15182ffba1f5cecabcc9d57f54834
parent5c1c9acf5503d48ac0edd45944a24b4ad8972da5
octeontx2-af: fix LD CUSTOM LTYPE aliasing

Since LD contains LTYPE definitions tweaked toward efficient
NIX_AF_RX_FLOW_KEY_ALG(0..31)_FIELD(0..4) usage, the original location
of NPC_LT_LD_CUSTOM0/1 was aliased with MPLS_IN_* definitions.
Moving custom frame to value 6 and 7 removes the aliasing at the cost of
custom frames being also considered when TCP/UDP RSS algo is configured.

However since the goal of CUSTOM frames is to classify them to a
separate set of RQs, this cost is acceptable.

Signed-off-by: Stanislaw Kardach <skardach@marvell.com>
Acked-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/npc.h