summaryrefslogtreecommitdiff
path: root/lib/librte_mbuf
diff options
context:
space:
mode:
authorJerin Jacob <jerin.jacob@caviumnetworks.com>2018-08-26 18:24:54 +0530
committerThomas Monjalon <thomas@monjalon.net>2018-10-25 15:48:24 +0200
commit07e70104e0556a6a66797f3cc5be88ace8e4d721 (patch)
treebc4d436ecb34ea5abdc85e506a972b688fcad5f6 /lib/librte_mbuf
parent73aa5c1332c6fff67ba8e26608595ab2f1fa3cfc (diff)
downloaddpdk-07e70104e0556a6a66797f3cc5be88ace8e4d721.zip
dpdk-07e70104e0556a6a66797f3cc5be88ace8e4d721.tar.gz
dpdk-07e70104e0556a6a66797f3cc5be88ace8e4d721.tar.xz
mbuf: add FCoE packet type
Add support of FCoE packet type. Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.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.h7
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/librte_mbuf/rte_mbuf_ptype.c b/lib/librte_mbuf/rte_mbuf_ptype.c
index d7835e2..71577f9 100644
--- a/lib/librte_mbuf/rte_mbuf_ptype.c
+++ b/lib/librte_mbuf/rte_mbuf_ptype.c
@@ -19,6 +19,7 @@ const char *rte_get_ptype_l2_name(uint32_t ptype)
case RTE_PTYPE_L2_ETHER_VLAN: return "L2_ETHER_VLAN";
case RTE_PTYPE_L2_ETHER_QINQ: return "L2_ETHER_QINQ";
case RTE_PTYPE_L2_ETHER_PPPOE: return "L2_ETHER_PPPOE";
+ case RTE_PTYPE_L2_ETHER_FCOE: return "L2_ETHER_FCOE";
default: return "L2_UNKNOWN";
}
}
diff --git a/lib/librte_mbuf/rte_mbuf_ptype.h b/lib/librte_mbuf/rte_mbuf_ptype.h
index 01acc66..5693bae 100644
--- a/lib/librte_mbuf/rte_mbuf_ptype.h
+++ b/lib/librte_mbuf/rte_mbuf_ptype.h
@@ -131,6 +131,13 @@ extern "C" {
*/
#define RTE_PTYPE_L2_ETHER_PPPOE 0x00000008
/**
+ * FCoE packet type.
+ *
+ * Packet format:
+ * <'ether type'=[0x8906]>
+ */
+#define RTE_PTYPE_L2_ETHER_FCOE 0x00000009
+/**
* Mask of layer 2 packet types.
* It is used for outer packet for tunneling cases.
*/