FD.io VPP  v21.01.1
Vector Packet Processing
gbp_policy_dpo.h File Reference
+ Include dependency graph for gbp_policy_dpo.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  gbp_policy_dpo_t_
 The GBP FWD DPO. More...
 

Typedefs

typedef struct gbp_policy_dpo_t_ gbp_policy_dpo_t
 The GBP FWD DPO. More...
 

Functions

void gbp_policy_dpo_add_or_lock (dpo_proto_t dproto, gbp_scope_t scope, sclass_t sclass, u32 sw_if_index, dpo_id_t *dpo)
 
dpo_type_t gbp_policy_dpo_get_type (void)
 
static gbp_policy_dpo_tgbp_policy_dpo_get (index_t index)
 
static_always_inline const gbp_policy_dpo_tgbp_classify_get_gpd (const ip4_address_t *ip4, const ip6_address_t *ip6, const u32 fib_index)
 

Variables

vlib_node_registration_t ip4_gbp_policy_dpo_node
 (constructor) VLIB_REGISTER_NODE (ip4_gbp_policy_dpo_node) More...
 
vlib_node_registration_t ip6_gbp_policy_dpo_node
 (constructor) VLIB_REGISTER_NODE (ip6_gbp_policy_dpo_node) More...
 
vlib_node_registration_t gbp_policy_port_node
 (constructor) VLIB_REGISTER_NODE (gbp_policy_port_node) More...
 
dpo_type_t gbp_policy_dpo_type
 Types exposed for the Data-plane. More...
 
gbp_policy_dpo_tgbp_policy_dpo_pool
 DPO pool. More...
 

Typedef Documentation

◆ gbp_policy_dpo_t

The GBP FWD DPO.

Used in the L3 path to select the correct EPG uplink based on the source EPG.

Function Documentation

◆ gbp_classify_get_gpd()

static_always_inline const gbp_policy_dpo_t* gbp_classify_get_gpd ( const ip4_address_t ip4,
const ip6_address_t *  ip6,
const u32  fib_index 
)

Definition at line 88 of file gbp_policy_dpo.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gbp_policy_dpo_add_or_lock()

void gbp_policy_dpo_add_or_lock ( dpo_proto_t  dproto,
gbp_scope_t  scope,
sclass_t  sclass,
u32  sw_if_index,
dpo_id_t dpo 
)

Definition at line 97 of file gbp_policy_dpo.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gbp_policy_dpo_get()

static gbp_policy_dpo_t* gbp_policy_dpo_get ( index_t  index)
inlinestatic

Definition at line 82 of file gbp_policy_dpo.h.

+ Here is the caller graph for this function:

◆ gbp_policy_dpo_get_type()

dpo_type_t gbp_policy_dpo_get_type ( void  )

Definition at line 208 of file gbp_policy_dpo.c.

Variable Documentation

◆ gbp_policy_dpo_pool

gbp_policy_dpo_t* gbp_policy_dpo_pool

DPO pool.

Definition at line 31 of file gbp_policy_dpo.c.

◆ gbp_policy_dpo_type

dpo_type_t gbp_policy_dpo_type

Types exposed for the Data-plane.

Types exposed for the Data-plane.

Definition at line 36 of file gbp_policy_dpo.c.

◆ gbp_policy_port_node

vlib_node_registration_t gbp_policy_port_node

(constructor) VLIB_REGISTER_NODE (gbp_policy_port_node)

Definition at line 288 of file gbp_policy_node.c.

◆ ip4_gbp_policy_dpo_node

vlib_node_registration_t ip4_gbp_policy_dpo_node

(constructor) VLIB_REGISTER_NODE (ip4_gbp_policy_dpo_node)

Definition at line 384 of file gbp_policy_dpo.c.

◆ ip6_gbp_policy_dpo_node

vlib_node_registration_t ip6_gbp_policy_dpo_node

(constructor) VLIB_REGISTER_NODE (ip6_gbp_policy_dpo_node)

Definition at line 398 of file gbp_policy_dpo.c.