DPDK
22.11.7
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
_
c
g
r
Variables
a
c
d
e
l
r
s
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_vxlan.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-3-Clause
2
* Copyright(c) 2018-2019 Intel Corporation
3
*/
4
5
#ifndef _RTE_VXLAN_H_
6
#define _RTE_VXLAN_H_
7
14
#include <stdint.h>
15
16
#include <
rte_byteorder.h
>
17
#include <
rte_udp.h
>
18
19
20
#ifdef __cplusplus
21
extern
"C"
{
22
#endif
23
25
#define RTE_VXLAN_DEFAULT_PORT 4789
26
#define RTE_VXLAN_GPE_DEFAULT_PORT 4790
27
33
struct
rte_vxlan_hdr
{
34
rte_be32_t
vx_flags
;
35
rte_be32_t
vx_vni
;
36
}
__rte_packed
;
37
39
#define RTE_ETHER_VXLAN_HLEN \
40
(sizeof(struct rte_udp_hdr) + sizeof(struct rte_vxlan_hdr))
41
42
48
struct
rte_vxlan_gpe_hdr
{
49
uint8_t
vx_flags
;
50
uint8_t
reserved
[2];
51
uint8_t
proto
;
52
rte_be32_t
vx_vni
;
53
}
__rte_packed
;
54
56
#define RTE_ETHER_VXLAN_GPE_HLEN (sizeof(struct rte_udp_hdr) + \
57
sizeof(struct rte_vxlan_gpe_hdr))
58
59
/* VXLAN-GPE next protocol types */
60
#define RTE_VXLAN_GPE_TYPE_IPV4 1
61
#define RTE_VXLAN_GPE_TYPE_IPV6 2
62
#define RTE_VXLAN_GPE_TYPE_ETH 3
63
#define RTE_VXLAN_GPE_TYPE_NSH 4
64
#define RTE_VXLAN_GPE_TYPE_MPLS 5
65
#define RTE_VXLAN_GPE_TYPE_GBP 6
66
#define RTE_VXLAN_GPE_TYPE_VBNG 7
69
#ifdef __cplusplus
70
}
71
#endif
72
73
#endif
/* RTE_VXLAN_H_ */
rte_byteorder.h
rte_be32_t
uint32_t rte_be32_t
Definition:
rte_byteorder.h:111
__rte_packed
#define __rte_packed
Definition:
rte_common.h:83
rte_udp.h
rte_vxlan_gpe_hdr
Definition:
rte_vxlan.h:48
rte_vxlan_gpe_hdr::vx_vni
rte_be32_t vx_vni
Definition:
rte_vxlan.h:52
rte_vxlan_gpe_hdr::vx_flags
uint8_t vx_flags
Definition:
rte_vxlan.h:49
rte_vxlan_gpe_hdr::reserved
uint8_t reserved[2]
Definition:
rte_vxlan.h:50
rte_vxlan_gpe_hdr::proto
uint8_t proto
Definition:
rte_vxlan.h:51
rte_vxlan_hdr
Definition:
rte_vxlan.h:33
rte_vxlan_hdr::vx_vni
rte_be32_t vx_vni
Definition:
rte_vxlan.h:35
rte_vxlan_hdr::vx_flags
rte_be32_t vx_flags
Definition:
rte_vxlan.h:34
Generated by
1.9.4