DPDK
25.03.0
Toggle main menu visibility
Main Page
Related Pages
Data Structures
Data Structures
Data Fields
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Functions
_
g
r
t
Variables
c
r
Typedefs
a
c
d
e
h
l
m
p
r
s
t
Enumerations
d
r
Enumerator
c
e
f
r
s
w
Macros
_
b
c
i
l
m
o
p
r
s
t
u
v
Examples
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
lib
net
rte_mpls.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-3-Clause
2
* Copyright(c) 2016 6WIND S.A.
3
*/
4
5
#ifndef _RTE_MPLS_H_
6
#define _RTE_MPLS_H_
7
14
#include <stdint.h>
15
#include <
rte_byteorder.h
>
16
20
__extension__
21
struct
__rte_packed_begin
rte_mpls_hdr
{
22
rte_be16_t
tag_msb
;
23
#if RTE_BYTE_ORDER == RTE_BIG_ENDIAN
24
uint8_t
tag_lsb
:4;
25
uint8_t
tc
:3;
26
uint8_t
bs
:1;
27
#else
28
uint8_t bs:1;
29
uint8_t tc:3;
30
uint8_t tag_lsb:4;
31
#endif
32
uint8_t
ttl
;
33
} __rte_packed_end;
34
35
#endif
/* RTE_MPLS_H_ */
rte_byteorder.h
rte_be16_t
uint16_t rte_be16_t
Definition:
rte_byteorder.h:116
__rte_packed_begin
#define __rte_packed_begin
Definition:
rte_common.h:124
rte_mpls_hdr
Definition:
rte_mpls.h:21
rte_mpls_hdr::tag_lsb
uint8_t tag_lsb
Definition:
rte_mpls.h:24
rte_mpls_hdr::ttl
uint8_t ttl
Definition:
rte_mpls.h:32
rte_mpls_hdr::tc
uint8_t tc
Definition:
rte_mpls.h:25
rte_mpls_hdr::tag_msb
rte_be16_t tag_msb
Definition:
rte_mpls.h:22
rte_mpls_hdr::bs
uint8_t bs
Definition:
rte_mpls.h:26
Generated by
1.9.4