From 3590f9ddba1121a2405cf7dfc26009aa93d54c7a Mon Sep 17 00:00:00 2001 From: Nithin Dabilpuram Date: Wed, 4 Sep 2019 13:34:32 +0530 Subject: [PATCH] net/octeontx2: add packet type translation for ICMP6 Update ptype translation logic with ICMP6 in both outer and inner layers. Signed-off-by: Nithin Dabilpuram Acked-by: Jerin Jacob --- drivers/net/octeontx2/otx2_lookup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/octeontx2/otx2_lookup.c b/drivers/net/octeontx2/otx2_lookup.c index b1c2f885f6..9bb93ea402 100644 --- a/drivers/net/octeontx2/otx2_lookup.c +++ b/drivers/net/octeontx2/otx2_lookup.c @@ -139,6 +139,7 @@ nix_create_non_tunnel_ptype_array(uint16_t *ptype) val |= RTE_PTYPE_L4_SCTP; break; case NPC_LT_LD_ICMP: + case NPC_LT_LD_ICMP6: val |= RTE_PTYPE_L4_ICMP; break; case NPC_LT_LD_IGMP: @@ -223,6 +224,7 @@ nix_create_tunnel_ptype_array(uint16_t *ptype) val |= TU_SHIFT(RTE_PTYPE_INNER_L4_SCTP); break; case NPC_LT_LH_TU_ICMP: + case NPC_LT_LH_TU_ICMP6: val |= TU_SHIFT(RTE_PTYPE_INNER_L4_ICMP); break; } -- 2.20.1