summaryrefslogtreecommitdiff
path: root/lib/librte_mbuf
diff options
context:
space:
mode:
authorJerin Jacob <jerin.jacob@caviumnetworks.com>2018-08-27 18:08:35 +0530
committerThomas Monjalon <thomas@monjalon.net>2018-10-25 15:51:16 +0200
commita5cba5a2c4de92c0cb2affb5668d6679978c016b (patch)
tree1879c4d0f7438af429188a2a5a8ba3e3c859aac1 /lib/librte_mbuf
parent8e255bdb1bc40bef55e924812df97c569475811f (diff)
downloaddpdk-a5cba5a2c4de92c0cb2affb5668d6679978c016b.zip
dpdk-a5cba5a2c4de92c0cb2affb5668d6679978c016b.tar.gz
dpdk-a5cba5a2c4de92c0cb2affb5668d6679978c016b.tar.xz
mbuf: add IGMP packet type
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>
Diffstat (limited to 'lib/librte_mbuf')
-rw-r--r--lib/librte_mbuf/rte_mbuf_ptype.c1
-rw-r--r--lib/librte_mbuf/rte_mbuf_ptype.h8
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/librte_mbuf/rte_mbuf_ptype.c b/lib/librte_mbuf/rte_mbuf_ptype.c
index 5954c2b..d6f906b 100644
--- a/lib/librte_mbuf/rte_mbuf_ptype.c
+++ b/lib/librte_mbuf/rte_mbuf_ptype.c
@@ -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";
}
}
diff --git a/lib/librte_mbuf/rte_mbuf_ptype.h b/lib/librte_mbuf/rte_mbuf_ptype.h
index 8fe000a..23bc635 100644
--- a/lib/librte_mbuf/rte_mbuf_ptype.h
+++ b/lib/librte_mbuf/rte_mbuf_ptype.h
@@ -301,6 +301,14 @@ extern "C" {
*/
#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.
*/