From: Nithin Dabilpuram Date: Wed, 4 Sep 2019 08:04:32 +0000 (+0530) Subject: net/octeontx2: add packet type translation for ICMP6 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=3590f9ddba1121a2405cf7dfc26009aa93d54c7a;p=dpdk.git 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 --- 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; }