DPDK  20.08.0
Data Structures | Macros
rte_vxlan.h File Reference
#include <stdint.h>
#include <rte_udp.h>

Go to the source code of this file.

Data Structures

struct  rte_vxlan_hdr
 
struct  rte_vxlan_gpe_hdr
 

Macros

#define RTE_VXLAN_DEFAULT_PORT   4789
 
#define RTE_ETHER_VXLAN_HLEN   (sizeof(struct rte_udp_hdr) + sizeof(struct rte_vxlan_hdr))
 
#define RTE_ETHER_VXLAN_GPE_HLEN
 
#define RTE_VXLAN_GPE_TYPE_IPV4   1
 
#define RTE_VXLAN_GPE_TYPE_IPV6   2
 
#define RTE_VXLAN_GPE_TYPE_ETH   3
 
#define RTE_VXLAN_GPE_TYPE_NSH   4
 
#define RTE_VXLAN_GPE_TYPE_MPLS   5
 
#define RTE_VXLAN_GPE_TYPE_GBP   6
 
#define RTE_VXLAN_GPE_TYPE_VBNG   7
 

Detailed Description

VXLAN-related definitions

Definition in file rte_vxlan.h.

Macro Definition Documentation

#define RTE_VXLAN_DEFAULT_PORT   4789

VXLAN default port.

Examples:
examples/tep_termination/vxlan.c.

Definition at line 24 of file rte_vxlan.h.

#define RTE_ETHER_VXLAN_HLEN   (sizeof(struct rte_udp_hdr) + sizeof(struct rte_vxlan_hdr))

VXLAN tunnel header length.

Examples:
examples/tep_termination/vxlan.c.

Definition at line 37 of file rte_vxlan.h.

#define RTE_ETHER_VXLAN_GPE_HLEN
Value:
(sizeof(struct rte_udp_hdr) + \
sizeof(struct rte_vxlan_gpe_hdr))

VXLAN-GPE tunnel header length.

Definition at line 54 of file rte_vxlan.h.

#define RTE_VXLAN_GPE_TYPE_IPV4   1

IPv4 Protocol.

Definition at line 58 of file rte_vxlan.h.

#define RTE_VXLAN_GPE_TYPE_IPV6   2

IPv6 Protocol.

Definition at line 59 of file rte_vxlan.h.

#define RTE_VXLAN_GPE_TYPE_ETH   3

Ethernet Protocol.

Definition at line 60 of file rte_vxlan.h.

#define RTE_VXLAN_GPE_TYPE_NSH   4

NSH Protocol.

Definition at line 61 of file rte_vxlan.h.

#define RTE_VXLAN_GPE_TYPE_MPLS   5

MPLS Protocol.

Definition at line 62 of file rte_vxlan.h.

#define RTE_VXLAN_GPE_TYPE_GBP   6

GBP Protocol.

Definition at line 63 of file rte_vxlan.h.

#define RTE_VXLAN_GPE_TYPE_VBNG   7

vBNG Protocol.

Definition at line 64 of file rte_vxlan.h.