Skip to content

Commit 8354df5

Browse files
mvl-skardachgregkh
authored andcommitted
octeontx2-af: fix LD CUSTOM LTYPE aliasing
[ Upstream commit 450f0b9 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent a7e0f23 commit 8354df5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

drivers/net/ethernet/marvell/octeontx2/af/npc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ enum npc_kpu_ld_ltype {
7777
NPC_LT_LD_ICMP,
7878
NPC_LT_LD_SCTP,
7979
NPC_LT_LD_ICMP6,
80+
NPC_LT_LD_CUSTOM0,
81+
NPC_LT_LD_CUSTOM1,
8082
NPC_LT_LD_IGMP = 8,
8183
NPC_LT_LD_ESP,
8284
NPC_LT_LD_AH,
@@ -85,8 +87,6 @@ enum npc_kpu_ld_ltype {
8587
NPC_LT_LD_NSH,
8688
NPC_LT_LD_TU_MPLS_IN_NSH,
8789
NPC_LT_LD_TU_MPLS_IN_IP,
88-
NPC_LT_LD_CUSTOM0 = 0xE,
89-
NPC_LT_LD_CUSTOM1 = 0xF,
9090
};
9191

9292
enum npc_kpu_le_ltype {

0 commit comments

Comments
 (0)