1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2016 6WIND S.A.
11 * MPLS-related defines
15 #include <rte_byteorder.h>
25 uint16_t tag_msb; /**< Label(msb). */
26 #if RTE_BYTE_ORDER == RTE_BIG_ENDIAN
27 uint8_t tag_lsb:4; /**< Label(lsb). */
28 uint8_t tc:3; /**< Traffic class. */
29 uint8_t bs:1; /**< Bottom of stack. */
31 uint8_t bs:1; /**< Bottom of stack. */
32 uint8_t tc:3; /**< Traffic class. */
33 uint8_t tag_lsb:4; /**< label(lsb) */
35 uint8_t ttl; /**< Time to live. */
42 #endif /* RTE_MPLS_H_ */