99a2dd955f
There is no reason for the DPDK libraries to all have 'librte_' prefix on the directory names. This prefix makes the directory names longer and also makes it awkward to add features referring to individual libraries in the build - should the lib names be specified with or without the prefix. Therefore, we can just remove the library prefix and use the library's unique name as the directory name, i.e. 'eal' rather than 'librte_eal' Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
44 lines
780 B
C
44 lines
780 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright(c) 2016 6WIND S.A.
|
|
*/
|
|
|
|
#ifndef _RTE_MPLS_H_
|
|
#define _RTE_MPLS_H_
|
|
|
|
/**
|
|
* @file
|
|
*
|
|
* MPLS-related defines
|
|
*/
|
|
|
|
#include <stdint.h>
|
|
#include <rte_byteorder.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* MPLS header.
|
|
*/
|
|
__extension__
|
|
struct rte_mpls_hdr {
|
|
uint16_t tag_msb; /**< Label(msb). */
|
|
#if RTE_BYTE_ORDER == RTE_BIG_ENDIAN
|
|
uint8_t tag_lsb:4; /**< Label(lsb). */
|
|
uint8_t tc:3; /**< Traffic class. */
|
|
uint8_t bs:1; /**< Bottom of stack. */
|
|
#else
|
|
uint8_t bs:1; /**< Bottom of stack. */
|
|
uint8_t tc:3; /**< Traffic class. */
|
|
uint8_t tag_lsb:4; /**< label(lsb) */
|
|
#endif
|
|
uint8_t ttl; /**< Time to live. */
|
|
} __rte_packed;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* RTE_MPLS_H_ */
|