net/octeontx2: add packet type translation for ICMP6
authorNithin Dabilpuram <ndabilpuram@marvell.com>
Wed, 4 Sep 2019 08:04:32 +0000 (13:34 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 7 Oct 2019 13:00:53 +0000 (15:00 +0200)
Update ptype translation logic with ICMP6
in both outer and inner layers.

Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/net/octeontx2/otx2_lookup.c

index b1c2f88..9bb93ea 100644 (file)
@@ -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;
                }