git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/mlx5: make tunnel hub list thread safe
[dpdk.git]
/
lib
/
librte_mbuf
/
rte_mbuf_ptype.h
diff --git
a/lib/librte_mbuf/rte_mbuf_ptype.h
b/lib/librte_mbuf/rte_mbuf_ptype.h
index
79ea314
..
17a2dd3
100644
(file)
--- a/
lib/librte_mbuf/rte_mbuf_ptype.h
+++ b/
lib/librte_mbuf/rte_mbuf_ptype.h
@@
-130,6
+130,20
@@
extern "C" {
* <'ether type'=[0x8863|0x8864]>
*/
#define RTE_PTYPE_L2_ETHER_PPPOE 0x00000008
* <'ether type'=[0x8863|0x8864]>
*/
#define RTE_PTYPE_L2_ETHER_PPPOE 0x00000008
+/**
+ * FCoE packet type.
+ *
+ * Packet format:
+ * <'ether type'=[0x8906]>
+ */
+#define RTE_PTYPE_L2_ETHER_FCOE 0x00000009
+/**
+ * MPLS packet type.
+ *
+ * Packet format:
+ * <'ether type'=[0x8847|0x8848]>
+ */
+#define RTE_PTYPE_L2_ETHER_MPLS 0x0000000a
/**
* Mask of layer 2 packet types.
* It is used for outer packet for tunneling cases.
/**
* Mask of layer 2 packet types.
* It is used for outer packet for tunneling cases.
@@
-286,6
+300,14
@@
extern "C" {
* | 'version'=6, 'next header'!=[6|17|44|132|1]>
*/
#define RTE_PTYPE_L4_NONFRAG 0x00000600
* | '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.
/**
* Mask of layer 4 packet types.
* It is used for outer packet for tunneling cases.
@@
-404,7
+426,7
@@
extern "C" {
*/
#define RTE_PTYPE_TUNNEL_ESP 0x00009000
/**
*/
#define RTE_PTYPE_TUNNEL_ESP 0x00009000
/**
- * L2TP (Layer 2 Tunneling Protocol) tunn
le
ing packet type.
+ * L2TP (Layer 2 Tunneling Protocol) tunn
el
ing packet type.
*
* Packet format:
* <'ether type'=0x0800
*
* Packet format:
* <'ether type'=0x0800
@@
-653,9
+675,9
@@
extern "C" {
#define RTE_ETH_IS_IPV4_HDR(ptype) ((ptype) & RTE_PTYPE_L3_IPV4)
/**
#define RTE_ETH_IS_IPV4_HDR(ptype) ((ptype) & RTE_PTYPE_L3_IPV4)
/**
- * Check if the (outer) L3 header is IPv
4. To avoid comparing IPv4
types one by
- * one, bit 6 is selected to be used for IPv
4
only. Then checking bit 6 can
- * determine if it is an IPV
4
packet.
+ * Check if the (outer) L3 header is IPv
6. To avoid comparing IPv6
types one by
+ * one, bit 6 is selected to be used for IPv
6
only. Then checking bit 6 can
+ * determine if it is an IPV
6
packet.
*/
#define RTE_ETH_IS_IPV6_HDR(ptype) ((ptype) & RTE_PTYPE_L3_IPV6)
*/
#define RTE_ETH_IS_IPV6_HDR(ptype) ((ptype) & RTE_PTYPE_L3_IPV6)