DPDK  24.11.0-rc3
rte_geneve.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright 2020 Mellanox Technologies, Ltd
3  */
4 
5 #ifndef _RTE_GENEVE_H_
6 #define _RTE_GENEVE_H_
7 
13 #include <stdint.h>
14 
15 #include <rte_byteorder.h>
16 
18 #define RTE_GENEVE_DEFAULT_PORT 6081
19 
36 __extension__
38 #if RTE_BYTE_ORDER == RTE_BIG_ENDIAN
39  uint8_t ver:2;
40  uint8_t opt_len:6;
41  uint8_t oam:1;
42  uint8_t critical:1;
43  uint8_t reserved1:6;
44 #else
45  uint8_t opt_len:6;
46  uint8_t ver:2;
47  uint8_t reserved1:6;
48  uint8_t critical:1;
49  uint8_t oam:1;
50 #endif
52  uint8_t vni[3];
53  uint8_t reserved2;
54  uint32_t opts[];
55 } __rte_packed;
56 
57 /* GENEVE ETH next protocol types */
58 #define RTE_GENEVE_TYPE_ETH 0x6558
60 #endif /* RTE_GENEVE_H_ */
uint8_t critical
Definition: rte_geneve.h:42
rte_be16_t proto
Definition: rte_geneve.h:51
uint8_t ver
Definition: rte_geneve.h:39
uint8_t vni[3]
Definition: rte_geneve.h:52
#define __rte_packed
Definition: rte_common.h:108
uint8_t opt_len
Definition: rte_geneve.h:40
uint32_t opts[]
Definition: rte_geneve.h:54
uint8_t reserved1
Definition: rte_geneve.h:43
uint16_t rte_be16_t
uint8_t reserved2
Definition: rte_geneve.h:53
uint8_t oam
Definition: rte_geneve.h:41