1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2016 Intel Corporation.
3 * Copyright 2014-2016 6WIND S.A.
6 #ifndef _RTE_MBUF_PTYPE_H_
7 #define _RTE_MBUF_PTYPE_H_
11 * RTE Mbuf Packet Types
13 * This file contains declarations for features related to mbuf packet
14 * types. The packet type gives information about the data carried by the
15 * mbuf, and is stored in the mbuf in a 32 bits field.
17 * The 32 bits are divided into several fields to mark packet types. Note that
18 * each field is indexical.
19 * - Bit 3:0 is for L2 types.
20 * - Bit 7:4 is for L3 or outer L3 (for tunneling case) types.
21 * - Bit 11:8 is for L4 or outer L4 (for tunneling case) types.
22 * - Bit 15:12 is for tunnel types.
23 * - Bit 19:16 is for inner L2 types.
24 * - Bit 23:20 is for inner L3 types.
25 * - Bit 27:24 is for inner L4 types.
26 * - Bit 31:28 is reserved.
28 * To be compatible with Vector PMD, RTE_PTYPE_L3_IPV4, RTE_PTYPE_L3_IPV4_EXT,
29 * RTE_PTYPE_L3_IPV6, RTE_PTYPE_L3_IPV6_EXT, RTE_PTYPE_L4_TCP, RTE_PTYPE_L4_UDP
30 * and RTE_PTYPE_L4_SCTP should be kept as below in a contiguous 7 bits.
32 * Note that L3 types values are selected for checking IPV4/IPV6 header from
33 * performance point of view. Reading annotations of RTE_ETH_IS_IPV4_HDR and
34 * RTE_ETH_IS_IPV6_HDR is needed for any future changes of L3 type values.
36 * Note that the packet types of the same packet recognized by different
37 * hardware may be different, as different hardware may have different
38 * capability of packet type recognition.
41 * <'ether type'=0x0800
42 * | 'version'=4, 'protocol'=0x29
43 * | 'version'=6, 'next header'=0x3A
45 * will be recognized on i40e hardware as packet type combination of,
46 * RTE_PTYPE_L2_ETHER |
47 * RTE_PTYPE_L3_IPV4_EXT_UNKNOWN |
48 * RTE_PTYPE_TUNNEL_IP |
49 * RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
50 * RTE_PTYPE_INNER_L4_ICMP.
52 * <'ether type'=0x86DD
53 * | 'version'=6, 'next header'=0x2F
55 * | 'version'=6, 'next header'=0x11
57 * will be recognized on i40e hardware as packet type combination of,
58 * RTE_PTYPE_L2_ETHER |
59 * RTE_PTYPE_L3_IPV6_EXT_UNKNOWN |
60 * RTE_PTYPE_TUNNEL_GRENAT |
61 * RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN |
62 * RTE_PTYPE_INNER_L4_UDP.
73 * No packet type information.
75 #define RTE_PTYPE_UNKNOWN 0x00000000
77 * Ethernet packet type.
78 * It is used for outer packet for tunneling cases.
81 * <'ether type'=[0x0800|0x86DD]>
83 #define RTE_PTYPE_L2_ETHER 0x00000001
85 * Ethernet packet type for time sync.
88 * <'ether type'=0x88F7>
90 #define RTE_PTYPE_L2_ETHER_TIMESYNC 0x00000002
92 * ARP (Address Resolution Protocol) packet type.
95 * <'ether type'=0x0806>
97 #define RTE_PTYPE_L2_ETHER_ARP 0x00000003
99 * LLDP (Link Layer Discovery Protocol) packet type.
102 * <'ether type'=0x88CC>
104 #define RTE_PTYPE_L2_ETHER_LLDP 0x00000004
106 * NSH (Network Service Header) packet type.
109 * <'ether type'=0x894F>
111 #define RTE_PTYPE_L2_ETHER_NSH 0x00000005
116 * <'ether type'=[0x8100]>
118 #define RTE_PTYPE_L2_ETHER_VLAN 0x00000006
123 * <'ether type'=[0x88A8]>
125 #define RTE_PTYPE_L2_ETHER_QINQ 0x00000007
130 * <'ether type'=[0x8863|0x8864]>
132 #define RTE_PTYPE_L2_ETHER_PPPOE 0x00000008
137 * <'ether type'=[0x8906]>
139 #define RTE_PTYPE_L2_ETHER_FCOE 0x00000009
144 * <'ether type'=[0x8847|0x8848]>
146 #define RTE_PTYPE_L2_ETHER_MPLS 0x0000000a
148 * Mask of layer 2 packet types.
149 * It is used for outer packet for tunneling cases.
151 #define RTE_PTYPE_L2_MASK 0x0000000f
153 * IP (Internet Protocol) version 4 packet type.
154 * It is used for outer packet for tunneling cases, and does not contain any
158 * <'ether type'=0x0800
159 * | 'version'=4, 'ihl'=5>
161 #define RTE_PTYPE_L3_IPV4 0x00000010
163 * IP (Internet Protocol) version 4 packet type.
164 * It is used for outer packet for tunneling cases, and contains header
168 * <'ether type'=0x0800
169 * | 'version'=4, 'ihl'=[6-15], 'options'>
171 #define RTE_PTYPE_L3_IPV4_EXT 0x00000030
173 * IP (Internet Protocol) version 6 packet type.
174 * It is used for outer packet for tunneling cases, and does not contain any
178 * <'ether type'=0x86DD
179 * | 'version'=6, 'next header'=0x3B>
181 #define RTE_PTYPE_L3_IPV6 0x00000040
183 * IP (Internet Protocol) version 4 packet type.
184 * It is used for outer packet for tunneling cases, and may or maynot contain
188 * <'ether type'=0x0800
189 * | 'version'=4, 'ihl'=[5-15], <'options'>>
191 #define RTE_PTYPE_L3_IPV4_EXT_UNKNOWN 0x00000090
193 * IP (Internet Protocol) version 6 packet type.
194 * It is used for outer packet for tunneling cases, and contains extension
198 * <'ether type'=0x86DD
199 * | 'version'=6, 'next header'=[0x0|0x2B|0x2C|0x32|0x33|0x3C|0x87],
200 * 'extension headers'>
202 #define RTE_PTYPE_L3_IPV6_EXT 0x000000c0
204 * IP (Internet Protocol) version 6 packet type.
205 * It is used for outer packet for tunneling cases, and may or maynot contain
209 * <'ether type'=0x86DD
210 * | 'version'=6, 'next header'=[0x3B|0x0|0x2B|0x2C|0x32|0x33|0x3C|0x87],
211 * <'extension headers'>>
213 #define RTE_PTYPE_L3_IPV6_EXT_UNKNOWN 0x000000e0
215 * Mask of layer 3 packet types.
216 * It is used for outer packet for tunneling cases.
218 #define RTE_PTYPE_L3_MASK 0x000000f0
220 * TCP (Transmission Control Protocol) packet type.
221 * It is used for outer packet for tunneling cases.
224 * <'ether type'=0x0800
225 * | 'version'=4, 'protocol'=6, 'MF'=0, 'frag_offset'=0>
227 * <'ether type'=0x86DD
228 * | 'version'=6, 'next header'=6>
230 #define RTE_PTYPE_L4_TCP 0x00000100
232 * UDP (User Datagram Protocol) packet type.
233 * It is used for outer packet for tunneling cases.
236 * <'ether type'=0x0800
237 * | 'version'=4, 'protocol'=17, 'MF'=0, 'frag_offset'=0>
239 * <'ether type'=0x86DD
240 * | 'version'=6, 'next header'=17>
242 #define RTE_PTYPE_L4_UDP 0x00000200
244 * Fragmented IP (Internet Protocol) packet type.
245 * It is used for outer packet for tunneling cases.
247 * It refers to those packets of any IP types, which can be recognized as
248 * fragmented. A fragmented packet cannot be recognized as any other L4 types
249 * (RTE_PTYPE_L4_TCP, RTE_PTYPE_L4_UDP, RTE_PTYPE_L4_SCTP, RTE_PTYPE_L4_ICMP,
250 * RTE_PTYPE_L4_NONFRAG).
253 * <'ether type'=0x0800
254 * | 'version'=4, 'MF'=1>
256 * <'ether type'=0x0800
257 * | 'version'=4, 'frag_offset'!=0>
259 * <'ether type'=0x86DD
260 * | 'version'=6, 'next header'=44>
262 #define RTE_PTYPE_L4_FRAG 0x00000300
264 * SCTP (Stream Control Transmission Protocol) packet type.
265 * It is used for outer packet for tunneling cases.
268 * <'ether type'=0x0800
269 * | 'version'=4, 'protocol'=132, 'MF'=0, 'frag_offset'=0>
271 * <'ether type'=0x86DD
272 * | 'version'=6, 'next header'=132>
274 #define RTE_PTYPE_L4_SCTP 0x00000400
276 * ICMP (Internet Control Message Protocol) packet type.
277 * It is used for outer packet for tunneling cases.
280 * <'ether type'=0x0800
281 * | 'version'=4, 'protocol'=1, 'MF'=0, 'frag_offset'=0>
283 * <'ether type'=0x86DD
284 * | 'version'=6, 'next header'=1>
286 #define RTE_PTYPE_L4_ICMP 0x00000500
288 * Non-fragmented IP (Internet Protocol) packet type.
289 * It is used for outer packet for tunneling cases.
291 * It refers to those packets of any IP types, while cannot be recognized as
292 * any of above L4 types (RTE_PTYPE_L4_TCP, RTE_PTYPE_L4_UDP,
293 * RTE_PTYPE_L4_FRAG, RTE_PTYPE_L4_SCTP, RTE_PTYPE_L4_ICMP).
296 * <'ether type'=0x0800
297 * | 'version'=4, 'protocol'!=[6|17|132|1], 'MF'=0, 'frag_offset'=0>
299 * <'ether type'=0x86DD
300 * | 'version'=6, 'next header'!=[6|17|44|132|1]>
302 #define RTE_PTYPE_L4_NONFRAG 0x00000600
304 * IGMP (Internet Group Management Protocol) packet type.
307 * <'ether type'=0x0800
308 * | 'version'=4, 'protocol'=2, 'MF'=0, 'frag_offset'=0>
310 #define RTE_PTYPE_L4_IGMP 0x00000700
312 * Mask of layer 4 packet types.
313 * It is used for outer packet for tunneling cases.
315 #define RTE_PTYPE_L4_MASK 0x00000f00
317 * IP (Internet Protocol) in IP (Internet Protocol) tunneling packet type.
320 * <'ether type'=0x0800
321 * | 'version'=4, 'protocol'=[4|41]>
323 * <'ether type'=0x86DD
324 * | 'version'=6, 'next header'=[4|41]>
326 #define RTE_PTYPE_TUNNEL_IP 0x00001000
328 * GRE (Generic Routing Encapsulation) tunneling packet type.
331 * <'ether type'=0x0800
332 * | 'version'=4, 'protocol'=47>
334 * <'ether type'=0x86DD
335 * | 'version'=6, 'next header'=47>
337 #define RTE_PTYPE_TUNNEL_GRE 0x00002000
339 * VXLAN (Virtual eXtensible Local Area Network) tunneling packet type.
342 * <'ether type'=0x0800
343 * | 'version'=4, 'protocol'=17
344 * | 'destination port'=4789>
346 * <'ether type'=0x86DD
347 * | 'version'=6, 'next header'=17
348 * | 'destination port'=4789>
350 #define RTE_PTYPE_TUNNEL_VXLAN 0x00003000
352 * NVGRE (Network Virtualization using Generic Routing Encapsulation) tunneling
356 * <'ether type'=0x0800
357 * | 'version'=4, 'protocol'=47
358 * | 'protocol type'=0x6558>
360 * <'ether type'=0x86DD
361 * | 'version'=6, 'next header'=47
362 * | 'protocol type'=0x6558'>
364 #define RTE_PTYPE_TUNNEL_NVGRE 0x00004000
366 * GENEVE (Generic Network Virtualization Encapsulation) tunneling packet type.
369 * <'ether type'=0x0800
370 * | 'version'=4, 'protocol'=17
371 * | 'destination port'=6081>
373 * <'ether type'=0x86DD
374 * | 'version'=6, 'next header'=17
375 * | 'destination port'=6081>
377 #define RTE_PTYPE_TUNNEL_GENEVE 0x00005000
379 * Tunneling packet type of Teredo, VXLAN (Virtual eXtensible Local Area
380 * Network) or GRE (Generic Routing Encapsulation) could be recognized as this
381 * packet type, if they can not be recognized independently as of hardware
384 #define RTE_PTYPE_TUNNEL_GRENAT 0x00006000
386 * GTP-C (GPRS Tunnelling Protocol) control tunneling packet type.
388 * <'ether type'=0x0800
389 * | 'version'=4, 'protocol'=17
390 * | 'destination port'=2123>
392 * <'ether type'=0x86DD
393 * | 'version'=6, 'next header'=17
394 * | 'destination port'=2123>
396 * <'ether type'=0x0800
397 * | 'version'=4, 'protocol'=17
398 * | 'source port'=2123>
400 * <'ether type'=0x86DD
401 * | 'version'=6, 'next header'=17
402 * | 'source port'=2123>
404 #define RTE_PTYPE_TUNNEL_GTPC 0x00007000
406 * GTP-U (GPRS Tunnelling Protocol) user data tunneling packet type.
408 * <'ether type'=0x0800
409 * | 'version'=4, 'protocol'=17
410 * | 'destination port'=2152>
412 * <'ether type'=0x86DD
413 * | 'version'=6, 'next header'=17
414 * | 'destination port'=2152>
416 #define RTE_PTYPE_TUNNEL_GTPU 0x00008000
418 * ESP (IP Encapsulating Security Payload) tunneling packet type.
421 * <'ether type'=0x0800
422 * | 'version'=4, 'protocol'=51>
424 * <'ether type'=0x86DD
425 * | 'version'=6, 'next header'=51>
427 #define RTE_PTYPE_TUNNEL_ESP 0x00009000
429 * L2TP (Layer 2 Tunneling Protocol) tunneling packet type.
432 * <'ether type'=0x0800
433 * | 'version'=4, 'protocol'=17>
434 * | 'destination port'=1701>
436 * <'ether type'=0x86DD
437 * | 'version'=6, 'next header'=17
438 * | 'destination port'=1701>
440 * <'ether type'=0x0800
441 * | 'version'=4, 'protocol'=115>
443 * <'ether type'=0x86DD
444 * | 'version'=6, 'protocol'=115>
446 #define RTE_PTYPE_TUNNEL_L2TP 0x0000a000
448 * VXLAN-GPE (VXLAN Generic Protocol Extension) tunneling packet type.
451 * <'ether type'=0x0800
452 * | 'version'=4, 'protocol'=17
453 * | 'destination port'=4790>
455 * <'ether type'=0x86DD
456 * | 'version'=6, 'next header'=17
457 * | 'destination port'=4790>
459 #define RTE_PTYPE_TUNNEL_VXLAN_GPE 0x0000b000
461 * MPLS-in-GRE tunneling packet type (RFC 4023).
464 * <'ether type'=0x0800
465 * | 'version'=4, 'protocol'=47
466 * | 'protocol'=0x8847>
468 * <'ether type'=0x0800
469 * | 'version'=4, 'protocol'=47
470 * | 'protocol'=0x8848>
472 * <'ether type'=0x86DD
473 * | 'version'=6, 'protocol'=47
474 * | 'protocol'=0x8847>
476 * <'ether type'=0x86DD
477 * | 'version'=6, 'next header'=47
478 * | 'protocol'=0x8848>
480 #define RTE_PTYPE_TUNNEL_MPLS_IN_GRE 0x0000c000
482 * MPLS-in-UDP tunneling packet type (RFC 7510).
485 * <'ether type'=0x0800
486 * | 'version'=4, 'protocol'=17
487 * | 'destination port'=6635>
489 * <'ether type'=0x86DD
490 * | 'version'=6, 'next header'=17
491 * | 'destination port'=6635>
493 #define RTE_PTYPE_TUNNEL_MPLS_IN_UDP 0x0000d000
495 * Mask of tunneling packet types.
497 #define RTE_PTYPE_TUNNEL_MASK 0x0000f000
499 * Ethernet packet type.
500 * It is used for inner packet type only.
502 * Packet format (inner only):
503 * <'ether type'=[0x800|0x86DD]>
505 #define RTE_PTYPE_INNER_L2_ETHER 0x00010000
507 * Ethernet packet type with VLAN (Virtual Local Area Network) tag.
509 * Packet format (inner only):
510 * <'ether type'=[0x800|0x86DD], vlan=[1-4095]>
512 #define RTE_PTYPE_INNER_L2_ETHER_VLAN 0x00020000
517 * <'ether type'=[0x88A8]>
519 #define RTE_PTYPE_INNER_L2_ETHER_QINQ 0x00030000
521 * Mask of inner layer 2 packet types.
523 #define RTE_PTYPE_INNER_L2_MASK 0x000f0000
525 * IP (Internet Protocol) version 4 packet type.
526 * It is used for inner packet only, and does not contain any header option.
528 * Packet format (inner only):
529 * <'ether type'=0x0800
530 * | 'version'=4, 'ihl'=5>
532 #define RTE_PTYPE_INNER_L3_IPV4 0x00100000
534 * IP (Internet Protocol) version 4 packet type.
535 * It is used for inner packet only, and contains header options.
537 * Packet format (inner only):
538 * <'ether type'=0x0800
539 * | 'version'=4, 'ihl'=[6-15], 'options'>
541 #define RTE_PTYPE_INNER_L3_IPV4_EXT 0x00200000
543 * IP (Internet Protocol) version 6 packet type.
544 * It is used for inner packet only, and does not contain any extension header.
546 * Packet format (inner only):
547 * <'ether type'=0x86DD
548 * | 'version'=6, 'next header'=0x3B>
550 #define RTE_PTYPE_INNER_L3_IPV6 0x00300000
552 * IP (Internet Protocol) version 4 packet type.
553 * It is used for inner packet only, and may or maynot contain header options.
555 * Packet format (inner only):
556 * <'ether type'=0x0800
557 * | 'version'=4, 'ihl'=[5-15], <'options'>>
559 #define RTE_PTYPE_INNER_L3_IPV4_EXT_UNKNOWN 0x00400000
561 * IP (Internet Protocol) version 6 packet type.
562 * It is used for inner packet only, and contains extension headers.
564 * Packet format (inner only):
565 * <'ether type'=0x86DD
566 * | 'version'=6, 'next header'=[0x0|0x2B|0x2C|0x32|0x33|0x3C|0x87],
567 * 'extension headers'>
569 #define RTE_PTYPE_INNER_L3_IPV6_EXT 0x00500000
571 * IP (Internet Protocol) version 6 packet type.
572 * It is used for inner packet only, and may or maynot contain extension
575 * Packet format (inner only):
576 * <'ether type'=0x86DD
577 * | 'version'=6, 'next header'=[0x3B|0x0|0x2B|0x2C|0x32|0x33|0x3C|0x87],
578 * <'extension headers'>>
580 #define RTE_PTYPE_INNER_L3_IPV6_EXT_UNKNOWN 0x00600000
582 * Mask of inner layer 3 packet types.
584 #define RTE_PTYPE_INNER_L3_MASK 0x00f00000
586 * TCP (Transmission Control Protocol) packet type.
587 * It is used for inner packet only.
589 * Packet format (inner only):
590 * <'ether type'=0x0800
591 * | 'version'=4, 'protocol'=6, 'MF'=0, 'frag_offset'=0>
593 * <'ether type'=0x86DD
594 * | 'version'=6, 'next header'=6>
596 #define RTE_PTYPE_INNER_L4_TCP 0x01000000
598 * UDP (User Datagram Protocol) packet type.
599 * It is used for inner packet only.
601 * Packet format (inner only):
602 * <'ether type'=0x0800
603 * | 'version'=4, 'protocol'=17, 'MF'=0, 'frag_offset'=0>
605 * <'ether type'=0x86DD
606 * | 'version'=6, 'next header'=17>
608 #define RTE_PTYPE_INNER_L4_UDP 0x02000000
610 * Fragmented IP (Internet Protocol) packet type.
611 * It is used for inner packet only, and may or maynot have layer 4 packet.
613 * Packet format (inner only):
614 * <'ether type'=0x0800
615 * | 'version'=4, 'MF'=1>
617 * <'ether type'=0x0800
618 * | 'version'=4, 'frag_offset'!=0>
620 * <'ether type'=0x86DD
621 * | 'version'=6, 'next header'=44>
623 #define RTE_PTYPE_INNER_L4_FRAG 0x03000000
625 * SCTP (Stream Control Transmission Protocol) packet type.
626 * It is used for inner packet only.
628 * Packet format (inner only):
629 * <'ether type'=0x0800
630 * | 'version'=4, 'protocol'=132, 'MF'=0, 'frag_offset'=0>
632 * <'ether type'=0x86DD
633 * | 'version'=6, 'next header'=132>
635 #define RTE_PTYPE_INNER_L4_SCTP 0x04000000
637 * ICMP (Internet Control Message Protocol) packet type.
638 * It is used for inner packet only.
640 * Packet format (inner only):
641 * <'ether type'=0x0800
642 * | 'version'=4, 'protocol'=1, 'MF'=0, 'frag_offset'=0>
644 * <'ether type'=0x86DD
645 * | 'version'=6, 'next header'=1>
647 #define RTE_PTYPE_INNER_L4_ICMP 0x05000000
649 * Non-fragmented IP (Internet Protocol) packet type.
650 * It is used for inner packet only, and may or maynot have other unknown layer
653 * Packet format (inner only):
654 * <'ether type'=0x0800
655 * | 'version'=4, 'protocol'!=[6|17|132|1], 'MF'=0, 'frag_offset'=0>
657 * <'ether type'=0x86DD
658 * | 'version'=6, 'next header'!=[6|17|44|132|1]>
660 #define RTE_PTYPE_INNER_L4_NONFRAG 0x06000000
662 * Mask of inner layer 4 packet types.
664 #define RTE_PTYPE_INNER_L4_MASK 0x0f000000
666 * All valid layer masks.
668 #define RTE_PTYPE_ALL_MASK 0x0fffffff
671 * Check if the (outer) L3 header is IPv4. To avoid comparing IPv4 types one by
672 * one, bit 4 is selected to be used for IPv4 only. Then checking bit 4 can
673 * determine if it is an IPV4 packet.
675 #define RTE_ETH_IS_IPV4_HDR(ptype) ((ptype) & RTE_PTYPE_L3_IPV4)
678 * Check if the (outer) L3 header is IPv6. To avoid comparing IPv6 types one by
679 * one, bit 6 is selected to be used for IPv6 only. Then checking bit 6 can
680 * determine if it is an IPV6 packet.
682 #define RTE_ETH_IS_IPV6_HDR(ptype) ((ptype) & RTE_PTYPE_L3_IPV6)
684 /* Check if it is a tunneling packet */
685 #define RTE_ETH_IS_TUNNEL_PKT(ptype) ((ptype) & \
686 (RTE_PTYPE_TUNNEL_MASK | \
687 RTE_PTYPE_INNER_L2_MASK | \
688 RTE_PTYPE_INNER_L3_MASK | \
689 RTE_PTYPE_INNER_L4_MASK))
692 * Get the name of the l2 packet type
695 * The packet type value.
697 * A non-null string describing the packet type.
699 const char *rte_get_ptype_l2_name(uint32_t ptype);
702 * Get the name of the l3 packet type
705 * The packet type value.
707 * A non-null string describing the packet type.
709 const char *rte_get_ptype_l3_name(uint32_t ptype);
712 * Get the name of the l4 packet type
715 * The packet type value.
717 * A non-null string describing the packet type.
719 const char *rte_get_ptype_l4_name(uint32_t ptype);
722 * Get the name of the tunnel packet type
725 * The packet type value.
727 * A non-null string describing the packet type.
729 const char *rte_get_ptype_tunnel_name(uint32_t ptype);
732 * Get the name of the inner_l2 packet type
735 * The packet type value.
737 * A non-null string describing the packet type.
739 const char *rte_get_ptype_inner_l2_name(uint32_t ptype);
742 * Get the name of the inner_l3 packet type
745 * The packet type value.
747 * A non-null string describing the packet type.
749 const char *rte_get_ptype_inner_l3_name(uint32_t ptype);
752 * Get the name of the inner_l4 packet type
755 * The packet type value.
757 * A non-null string describing the packet type.
759 const char *rte_get_ptype_inner_l4_name(uint32_t ptype);
762 * Write the packet type name into the buffer
765 * The packet type value.
767 * The buffer where the string is written.
769 * The length of the buffer.
772 * - (-1) if the buffer is too small
774 int rte_get_ptype_name(uint32_t ptype, char *buf, size_t buflen);
780 #endif /* _RTE_MBUF_PTYPE_H_ */