FD.io VPP
v18.07.1-19-g511ce25
Vector Packet Processing
|
A representation of a GRE tunnel. More...
Public Member Functions | |
CLIB_CACHE_LINE_ALIGN_MARK (cacheline0) | |
Required for pool_get_aligned. More... | |
Data Fields | |
fib_node_t | node |
Linkage into the FIB object graph. More... | |
gre_tunnel_key_t * | key |
The hash table's key stored in separate memory since the tunnel_t memory can realloc. More... | |
ip46_address_t | tunnel_src |
The tunnel's source/local address. More... | |
fib_prefix_t | tunnel_dst |
The tunnel's destination/remote address. More... | |
u32 | outer_fib_index |
The FIB in which the src.dst address are present. More... | |
u32 | hw_if_index |
u32 | sw_if_index |
gre_tunnel_type_t | type |
fib_node_index_t | fib_entry_index |
The FIB entry sourced by the tunnel for its destination prefix. More... | |
u32 | sibling_index |
The tunnel is a child of the FIB entry for its desintion. More... | |
adj_index_t | l2_adj_index |
an L2 tunnel always rquires an L2 midchain. More... | |
u16 | session_id |
ERSPAN type 2 session ID, least significant 10 bits of u16. More... | |
gre_sn_t * | gre_sn |
GRE header sequence number (SN) used for ERSPAN type 2 header, must be bumped automically to be thread safe. More... | |
u32 | dev_instance |
u32 | user_instance |
gre_tunnel_t::CLIB_CACHE_LINE_ALIGN_MARK | ( | cacheline0 | ) |
Required for pool_get_aligned.
fib_node_index_t gre_tunnel_t::fib_entry_index |
gre_sn_t* gre_tunnel_t::gre_sn |
GRE header sequence number (SN) used for ERSPAN type 2 header, must be bumped automically to be thread safe.
As multiple GRE tunnels are created for the same fib-idx/DIP/SIP with different ERSPAN session number, they all share the same SN which is kept per FIB/DIP/SIP, as specified by RFC2890.
gre_tunnel_key_t* gre_tunnel_t::key |
adj_index_t gre_tunnel_t::l2_adj_index |
fib_node_t gre_tunnel_t::node |
u32 gre_tunnel_t::outer_fib_index |
u16 gre_tunnel_t::session_id |
u32 gre_tunnel_t::sibling_index |
fib_prefix_t gre_tunnel_t::tunnel_dst |
ip46_address_t gre_tunnel_t::tunnel_src |
gre_tunnel_type_t gre_tunnel_t::type |