Skip to content

Commit 745166f

Browse files
Kiran Kumar Kdavem330
authored andcommitted
octeontx2-af: Add KPU changes to parse NGIO as separate layer
With current KPU profile NGIO is being parsed along with CTAG as a single layer. Because of this MCAM/ntuple rules installed with ethertype as 0x8842 are not being hit. Adding KPU profile changes to parse NGIO in separate ltype and CTAG in separate ltype. Fixes: f9c49be ("octeontx2-af: Update the default KPU profile and fixes") Signed-off-by: Kiran Kumar K <kirankumark@marvell.com> Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com> Signed-off-by: Sunil Goutham <sgoutham@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent a8db854 commit 745166f

1 file changed

Lines changed: 35 additions & 35 deletions

File tree

‎drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h‎

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ enum npc_kpu_parser_state {
185185
NPC_S_KPU2_QINQ,
186186
NPC_S_KPU2_ETAG,
187187
NPC_S_KPU2_EXDSA,
188-
NPC_S_KPU2_NGIO,
189188
NPC_S_KPU2_CPT_CTAG,
190189
NPC_S_KPU2_CPT_QINQ,
191190
NPC_S_KPU3_CTAG,
@@ -212,6 +211,7 @@ enum npc_kpu_parser_state {
212211
NPC_S_KPU5_NSH,
213212
NPC_S_KPU5_CPT_IP,
214213
NPC_S_KPU5_CPT_IP6,
214+
NPC_S_KPU5_NGIO,
215215
NPC_S_KPU6_IP6_EXT,
216216
NPC_S_KPU6_IP6_HOP_DEST,
217217
NPC_S_KPU6_IP6_ROUT,
@@ -1120,15 +1120,6 @@ static struct npc_kpu_profile_cam kpu1_cam_entries[] = {
11201120
0x0000,
11211121
0x0000,
11221122
},
1123-
{
1124-
NPC_S_KPU1_ETHER, 0xff,
1125-
NPC_ETYPE_CTAG,
1126-
0xffff,
1127-
NPC_ETYPE_NGIO,
1128-
0xffff,
1129-
0x0000,
1130-
0x0000,
1131-
},
11321123
{
11331124
NPC_S_KPU1_ETHER, 0xff,
11341125
NPC_ETYPE_CTAG,
@@ -1966,6 +1957,15 @@ static struct npc_kpu_profile_cam kpu2_cam_entries[] = {
19661957
0x0000,
19671958
0x0000,
19681959
},
1960+
{
1961+
NPC_S_KPU2_CTAG, 0xff,
1962+
NPC_ETYPE_NGIO,
1963+
0xffff,
1964+
0x0000,
1965+
0x0000,
1966+
0x0000,
1967+
0x0000,
1968+
},
19691969
{
19701970
NPC_S_KPU2_CTAG, 0xff,
19711971
NPC_ETYPE_PPPOE,
@@ -2749,15 +2749,6 @@ static struct npc_kpu_profile_cam kpu2_cam_entries[] = {
27492749
0x0000,
27502750
0x0000,
27512751
},
2752-
{
2753-
NPC_S_KPU2_NGIO, 0xff,
2754-
0x0000,
2755-
0x0000,
2756-
0x0000,
2757-
0x0000,
2758-
0x0000,
2759-
0x0000,
2760-
},
27612752
{
27622753
NPC_S_KPU2_CPT_CTAG, 0xff,
27632754
NPC_ETYPE_IP,
@@ -5089,6 +5080,15 @@ static struct npc_kpu_profile_cam kpu5_cam_entries[] = {
50895080
0x0000,
50905081
0x0000,
50915082
},
5083+
{
5084+
NPC_S_KPU5_NGIO, 0xff,
5085+
0x0000,
5086+
0x0000,
5087+
0x0000,
5088+
0x0000,
5089+
0x0000,
5090+
0x0000,
5091+
},
50925092
{
50935093
NPC_S_NA, 0X00,
50945094
0x0000,
@@ -8422,14 +8422,6 @@ static struct npc_kpu_profile_action kpu1_action_entries[] = {
84228422
0,
84238423
0, 0, 0, 0,
84248424
},
8425-
{
8426-
NPC_ERRLEV_RE, NPC_EC_NOERR,
8427-
8, 12, 0, 0, 0,
8428-
NPC_S_KPU2_NGIO, 12, 1,
8429-
NPC_LID_LA, NPC_LT_LA_ETHER,
8430-
0,
8431-
0, 0, 0, 0,
8432-
},
84338425
{
84348426
NPC_ERRLEV_RE, NPC_EC_NOERR,
84358427
8, 12, 0, 0, 0,
@@ -9194,6 +9186,14 @@ static struct npc_kpu_profile_action kpu2_action_entries[] = {
91949186
0,
91959187
0, 0, 0, 0,
91969188
},
9189+
{
9190+
NPC_ERRLEV_RE, NPC_EC_NOERR,
9191+
0, 0, 0, 2, 0,
9192+
NPC_S_KPU5_NGIO, 6, 1,
9193+
NPC_LID_LB, NPC_LT_LB_CTAG,
9194+
0,
9195+
0, 0, 0, 0,
9196+
},
91979197
{
91989198
NPC_ERRLEV_RE, NPC_EC_NOERR,
91999199
8, 0, 6, 2, 0,
@@ -9890,14 +9890,6 @@ static struct npc_kpu_profile_action kpu2_action_entries[] = {
98909890
NPC_F_LB_U_UNK_ETYPE | NPC_F_LB_L_EXDSA,
98919891
0, 0, 0, 0,
98929892
},
9893-
{
9894-
NPC_ERRLEV_RE, NPC_EC_NOERR,
9895-
0, 0, 0, 0, 1,
9896-
NPC_S_NA, 0, 1,
9897-
NPC_LID_LC, NPC_LT_LC_NGIO,
9898-
0,
9899-
0, 0, 0, 0,
9900-
},
99019893
{
99029894
NPC_ERRLEV_RE, NPC_EC_NOERR,
99039895
8, 0, 6, 2, 0,
@@ -11973,6 +11965,14 @@ static struct npc_kpu_profile_action kpu5_action_entries[] = {
1197311965
0,
1197411966
0, 0, 0, 0,
1197511967
},
11968+
{
11969+
NPC_ERRLEV_RE, NPC_EC_NOERR,
11970+
0, 0, 0, 0, 1,
11971+
NPC_S_NA, 0, 1,
11972+
NPC_LID_LC, NPC_LT_LC_NGIO,
11973+
0,
11974+
0, 0, 0, 0,
11975+
},
1197611976
{
1197711977
NPC_ERRLEV_LC, NPC_EC_UNK,
1197811978
0, 0, 0, 0, 1,

0 commit comments

Comments
 (0)