mbuf: add IGMP packet type
authorJerin Jacob <jerin.jacob@caviumnetworks.com>
Mon, 27 Aug 2018 12:38:35 +0000 (18:08 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 25 Oct 2018 13:51:16 +0000 (15:51 +0200)
Add support for IGMP packet type.

Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Acked-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_mbuf/rte_mbuf_ptype.c
lib/librte_mbuf/rte_mbuf_ptype.h

index 5954c2b..d6f906b 100644 (file)
@@ -49,6 +49,7 @@ const char *rte_get_ptype_l4_name(uint32_t ptype)
        case RTE_PTYPE_L4_SCTP: return "L4_SCTP";
        case RTE_PTYPE_L4_ICMP: return "L4_ICMP";
        case RTE_PTYPE_L4_NONFRAG: return "L4_NONFRAG";
+       case RTE_PTYPE_L4_IGMP: return "L4_IGMP";
        default: return "L4_UNKNOWN";
        }
 }
index 8fe000a..23bc635 100644 (file)
@@ -300,6 +300,14 @@ extern "C" {
  * | 'version'=6, 'next header'!=[6|17|44|132|1]>
  */
 #define RTE_PTYPE_L4_NONFRAG                0x00000600
+/**
+ * IGMP (Internet Group Management Protocol) packet type.
+ *
+ * Packet format:
+ * <'ether type'=0x0800
+ * | 'version'=4, 'protocol'=2, 'MF'=0, 'frag_offset'=0>
+ */
+#define RTE_PTYPE_L4_IGMP                   0x00000700
 /**
  * Mask of layer 4 packet types.
  * It is used for outer packet for tunneling cases.