Go to the documentation of this file.
35 #ifndef _RTE_MBUF_PTYPE_H_
36 #define _RTE_MBUF_PTYPE_H_
104 #define RTE_PTYPE_UNKNOWN 0x00000000
112 #define RTE_PTYPE_L2_ETHER 0x00000001
119 #define RTE_PTYPE_L2_ETHER_TIMESYNC 0x00000002
126 #define RTE_PTYPE_L2_ETHER_ARP 0x00000003
133 #define RTE_PTYPE_L2_ETHER_LLDP 0x00000004
140 #define RTE_PTYPE_L2_ETHER_NSH 0x00000005
147 #define RTE_PTYPE_L2_ETHER_VLAN 0x00000006
154 #define RTE_PTYPE_L2_ETHER_QINQ 0x00000007
159 #define RTE_PTYPE_L2_MASK 0x0000000f
169 #define RTE_PTYPE_L3_IPV4 0x00000010
179 #define RTE_PTYPE_L3_IPV4_EXT 0x00000030
189 #define RTE_PTYPE_L3_IPV6 0x00000040
199 #define RTE_PTYPE_L3_IPV4_EXT_UNKNOWN 0x00000090
210 #define RTE_PTYPE_L3_IPV6_EXT 0x000000c0
221 #define RTE_PTYPE_L3_IPV6_EXT_UNKNOWN 0x000000e0
226 #define RTE_PTYPE_L3_MASK 0x000000f0
238 #define RTE_PTYPE_L4_TCP 0x00000100
250 #define RTE_PTYPE_L4_UDP 0x00000200
270 #define RTE_PTYPE_L4_FRAG 0x00000300
282 #define RTE_PTYPE_L4_SCTP 0x00000400
294 #define RTE_PTYPE_L4_ICMP 0x00000500
310 #define RTE_PTYPE_L4_NONFRAG 0x00000600
315 #define RTE_PTYPE_L4_MASK 0x00000f00
326 #define RTE_PTYPE_TUNNEL_IP 0x00001000
337 #define RTE_PTYPE_TUNNEL_GRE 0x00002000
350 #define RTE_PTYPE_TUNNEL_VXLAN 0x00003000
364 #define RTE_PTYPE_TUNNEL_NVGRE 0x00004000
377 #define RTE_PTYPE_TUNNEL_GENEVE 0x00005000
384 #define RTE_PTYPE_TUNNEL_GRENAT 0x00006000
388 #define RTE_PTYPE_TUNNEL_MASK 0x0000f000
396 #define RTE_PTYPE_INNER_L2_ETHER 0x00010000
403 #define RTE_PTYPE_INNER_L2_ETHER_VLAN 0x00020000
410 #define RTE_PTYPE_INNER_L2_ETHER_QINQ 0x00030000
414 #define RTE_PTYPE_INNER_L2_MASK 0x000f0000
423 #define RTE_PTYPE_INNER_L3_IPV4 0x00100000
432 #define RTE_PTYPE_INNER_L3_IPV4_EXT 0x00200000
441 #define RTE_PTYPE_INNER_L3_IPV6 0x00300000
450 #define RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN 0x00400000
460 #define RTE_PTYPE_INNER_L3_IPV6_EXT 0x00500000
471 #define RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN 0x00600000
475 #define RTE_PTYPE_INNER_L3_MASK 0x00f00000
487 #define RTE_PTYPE_INNER_L4_TCP 0x01000000
499 #define RTE_PTYPE_INNER_L4_UDP 0x02000000
514 #define RTE_PTYPE_INNER_L4_FRAG 0x03000000
526 #define RTE_PTYPE_INNER_L4_SCTP 0x04000000
538 #define RTE_PTYPE_INNER_L4_ICMP 0x05000000
551 #define RTE_PTYPE_INNER_L4_NONFRAG 0x06000000
555 #define RTE_PTYPE_INNER_L4_MASK 0x0f000000
559 #define RTE_PTYPE_ALL_MASK 0x0fffffff
566 #define RTE_ETH_IS_IPV4_HDR(ptype) ((ptype) & RTE_PTYPE_L3_IPV4)
573 #define RTE_ETH_IS_IPV6_HDR(ptype) ((ptype) & RTE_PTYPE_L3_IPV6)
576 #define RTE_ETH_IS_TUNNEL_PKT(ptype) ((ptype) & \
577 (RTE_PTYPE_TUNNEL_MASK | \
578 RTE_PTYPE_INNER_L2_MASK | \
579 RTE_PTYPE_INNER_L3_MASK | \
580 RTE_PTYPE_INNER_L4_MASK))