Commit 2fae469a authored by Kiran Kumar K's avatar Kiran Kumar K Committed by David S. Miller
Browse files

octeontx2-af: Limit KPU parsing for GTPU packets



With current KPU profile, while parsing GTPU packets, GTPU payload
is also being parsed and GTPU PDU payload is being treated as IPV4
data, which is not correct. In case of GTPU packets, parsing should
be stopped after identifying the GTPU. Adding changes to limit KPU
profile parsing for GTPU payload.

Signed-off-by: default avatarKiran Kumar K <kirankumark@marvell.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 24aa160d
Loading
Loading
Loading
Loading
+2 −19
Original line number Diff line number Diff line
@@ -7492,15 +7492,6 @@ static struct npc_kpu_profile_cam kpu9_cam_entries[] = {
		0x0000,
		0x0000,
	},
	{
		NPC_S_KPU9_GTPU, 0xff,
		0x0000,
		0x0000,
		NPC_GTP_PT_GTP | NPC_GTP_VER1 | NPC_GTP_MT_G_PDU,
		NPC_GTP_PT_MASK | NPC_GTP_VER_MASK | NPC_GTP_MT_MASK,
		0x0000,
		0x0000,
	},
	{
		NPC_S_KPU9_GTPU, 0xff,
		0x0000,
@@ -14335,16 +14326,8 @@ static struct npc_kpu_profile_action kpu9_action_entries[] = {
	},
	{
		NPC_ERRLEV_RE, NPC_EC_NOERR,
		8, 0, 6, 2, 0,
		NPC_S_KPU12_TU_IP, 8, 1,
		NPC_LID_LE, NPC_LT_LE_GTPU,
		NPC_F_LE_L_GTPU_G_PDU,
		0, 0, 0, 0,
	},
	{
		NPC_ERRLEV_RE, NPC_EC_NOERR,
		8, 0, 6, 2, 0,
		NPC_S_KPU12_TU_IP, 8, 1,
		8, 0, 6, 2, 1,
		NPC_S_NA, 0, 1,
		NPC_LID_LE, NPC_LT_LE_GTPU,
		0,
		0, 0, 0, 0,