FD.io VPP  v19.08.3-2-gbabecb413
Vector Packet Processing
gbp_fwd_dpo.c File Reference
+ Include dependency graph for gbp_fwd_dpo.c:

Go to the source code of this file.

Data Structures

struct  gbp_fwd_dpo_trace_t_
 

Typedefs

typedef struct gbp_fwd_dpo_trace_t_ gbp_fwd_dpo_trace_t
 

Enumerations

enum  gbp_fwd_next_t { GBP_FWD_DROP, GBP_FWD_FWD, GBP_FWD_N_NEXT, GBP_FWD_N_NEXT }
 

Functions

static gbp_fwd_dpo_tgbp_fwd_dpo_alloc (void)
 
static gbp_fwd_dpo_tgbp_fwd_dpo_get_from_dpo (const dpo_id_t *dpo)
 
static index_t gbp_fwd_dpo_get_index (gbp_fwd_dpo_t *gfd)
 
static void gbp_fwd_dpo_lock (dpo_id_t *dpo)
 
static void gbp_fwd_dpo_unlock (dpo_id_t *dpo)
 
void gbp_fwd_dpo_add_or_lock (dpo_proto_t dproto, dpo_id_t *dpo)
 
u8format_gbp_fwd_dpo (u8 *s, va_list *ap)
 
dpo_type_t gbp_fwd_dpo_get_type (void)
 
static clib_error_tgbp_fwd_dpo_module_init (vlib_main_t *vm)
 
static uword gbp_fwd_dpo_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame, fib_protocol_t fproto)
 
static u8format_gbp_fwd_dpo_trace (u8 *s, va_list *args)
 
VLIB_NODE_FN() ip4_gbp_fwd_dpo_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
VLIB_NODE_FN() ip6_gbp_fwd_dpo_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 

Variables

static index_t gbp_fwd_dpo_db [DPO_PROTO_NUM] = { INDEX_INVALID }
 The 'DB' of GBP FWD DPOs. More...
 
static dpo_type_t gbp_fwd_dpo_type
 DPO type registered for these GBP FWD. More...
 
gbp_fwd_dpo_tgbp_fwd_dpo_pool
 pool of all interface DPOs More...
 
static const dpo_vft_t gbp_fwd_dpo_vft
 
static const char *const gbp_fwd_dpo_ip4_nodes []
 The per-protocol VLIB graph nodes that are assigned to a glean object. More...
 
static const char *const gbp_fwd_dpo_ip6_nodes []
 
static const char *const *const gbp_fwd_dpo_nodes [DPO_PROTO_NUM]
 
vlib_node_registration_t ip4_gbp_fwd_dpo_node
 (constructor) VLIB_REGISTER_NODE (ip4_gbp_fwd_dpo_node) More...
 
vlib_node_registration_t ip6_gbp_fwd_dpo_node
 (constructor) VLIB_REGISTER_NODE (ip6_gbp_fwd_dpo_node) More...
 

Typedef Documentation

◆ gbp_fwd_dpo_trace_t

Enumeration Type Documentation

◆ gbp_fwd_next_t

Enumerator
GBP_FWD_DROP 
GBP_FWD_FWD 
GBP_FWD_N_NEXT 
GBP_FWD_N_NEXT 

Definition at line 177 of file gbp_fwd_dpo.c.

Function Documentation

◆ format_gbp_fwd_dpo()

u8* format_gbp_fwd_dpo ( u8 s,
va_list *  ap 
)

Definition at line 109 of file gbp_fwd_dpo.c.

+ Here is the call graph for this function:

◆ format_gbp_fwd_dpo_trace()

static u8* format_gbp_fwd_dpo_trace ( u8 s,
va_list *  args 
)
static

Definition at line 250 of file gbp_fwd_dpo.c.

+ Here is the call graph for this function:

◆ gbp_fwd_dpo_add_or_lock()

void gbp_fwd_dpo_add_or_lock ( dpo_proto_t  dproto,
dpo_id_t dpo 
)

Definition at line 88 of file gbp_fwd_dpo.c.

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

◆ gbp_fwd_dpo_alloc()

static gbp_fwd_dpo_t* gbp_fwd_dpo_alloc ( void  )
static

Definition at line 40 of file gbp_fwd_dpo.c.

+ Here is the caller graph for this function:

◆ gbp_fwd_dpo_get_from_dpo()

static gbp_fwd_dpo_t* gbp_fwd_dpo_get_from_dpo ( const dpo_id_t dpo)
inlinestatic

Definition at line 50 of file gbp_fwd_dpo.c.

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

◆ gbp_fwd_dpo_get_index()

static index_t gbp_fwd_dpo_get_index ( gbp_fwd_dpo_t gfd)
inlinestatic

Definition at line 58 of file gbp_fwd_dpo.c.

+ Here is the caller graph for this function:

◆ gbp_fwd_dpo_get_type()

dpo_type_t gbp_fwd_dpo_get_type ( void  )

Definition at line 147 of file gbp_fwd_dpo.c.

◆ gbp_fwd_dpo_inline()

static uword gbp_fwd_dpo_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame,
fib_protocol_t  fproto 
)
inlinestatic

Definition at line 185 of file gbp_fwd_dpo.c.

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

◆ gbp_fwd_dpo_lock()

static void gbp_fwd_dpo_lock ( dpo_id_t dpo)
static

Definition at line 64 of file gbp_fwd_dpo.c.

+ Here is the call graph for this function:

◆ gbp_fwd_dpo_module_init()

static clib_error_t* gbp_fwd_dpo_module_init ( vlib_main_t vm)
static

Definition at line 153 of file gbp_fwd_dpo.c.

+ Here is the call graph for this function:

◆ gbp_fwd_dpo_unlock()

static void gbp_fwd_dpo_unlock ( dpo_id_t dpo)
static

Definition at line 73 of file gbp_fwd_dpo.c.

+ Here is the call graph for this function:

◆ ip4_gbp_fwd_dpo_node()

VLIB_NODE_FN() ip4_gbp_fwd_dpo_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)

Definition at line 261 of file gbp_fwd_dpo.c.

+ Here is the call graph for this function:

◆ ip6_gbp_fwd_dpo_node()

VLIB_NODE_FN() ip6_gbp_fwd_dpo_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)

Definition at line 268 of file gbp_fwd_dpo.c.

+ Here is the call graph for this function:

Variable Documentation

◆ gbp_fwd_dpo_db

index_t gbp_fwd_dpo_db[DPO_PROTO_NUM] = { INDEX_INVALID }
static

The 'DB' of GBP FWD DPOs.

There is one per-proto

Definition at line 27 of file gbp_fwd_dpo.c.

◆ gbp_fwd_dpo_ip4_nodes

const char* const gbp_fwd_dpo_ip4_nodes[]
static
Initial value:
= {
"ip4-gbp-fwd-dpo",
NULL,
}

The per-protocol VLIB graph nodes that are assigned to a glean object.

this means that these graph nodes are ones from which a glean is the parent object in the DPO-graph.

Definition at line 131 of file gbp_fwd_dpo.c.

◆ gbp_fwd_dpo_ip6_nodes

const char* const gbp_fwd_dpo_ip6_nodes[]
static
Initial value:
= {
"ip6-gbp-fwd-dpo",
NULL,
}

Definition at line 136 of file gbp_fwd_dpo.c.

◆ gbp_fwd_dpo_nodes

const char* const* const gbp_fwd_dpo_nodes[DPO_PROTO_NUM]
static
Initial value:
= {
}
static const char *const gbp_fwd_dpo_ip4_nodes[]
The per-protocol VLIB graph nodes that are assigned to a glean object.
Definition: gbp_fwd_dpo.c:131
static const char *const gbp_fwd_dpo_ip6_nodes[]
Definition: gbp_fwd_dpo.c:136

Definition at line 141 of file gbp_fwd_dpo.c.

◆ gbp_fwd_dpo_pool

gbp_fwd_dpo_t* gbp_fwd_dpo_pool

pool of all interface DPOs

Definition at line 37 of file gbp_fwd_dpo.c.

◆ gbp_fwd_dpo_type

dpo_type_t gbp_fwd_dpo_type
static

DPO type registered for these GBP FWD.

Definition at line 32 of file gbp_fwd_dpo.c.

◆ gbp_fwd_dpo_vft

const dpo_vft_t gbp_fwd_dpo_vft
static
Initial value:
= {
.dv_lock = gbp_fwd_dpo_lock,
.dv_unlock = gbp_fwd_dpo_unlock,
.dv_format = format_gbp_fwd_dpo,
}
u8 * format_gbp_fwd_dpo(u8 *s, va_list *ap)
Definition: gbp_fwd_dpo.c:109
static void gbp_fwd_dpo_unlock(dpo_id_t *dpo)
Definition: gbp_fwd_dpo.c:73
static void gbp_fwd_dpo_lock(dpo_id_t *dpo)
Definition: gbp_fwd_dpo.c:64

Definition at line 118 of file gbp_fwd_dpo.c.

◆ ip4_gbp_fwd_dpo_node

vlib_node_registration_t ip4_gbp_fwd_dpo_node
Initial value:
= {
.name = "ip4-gbp-fwd-dpo",
.vector_size = sizeof (u32),
.format_trace = format_gbp_fwd_dpo_trace,
.n_next_nodes = GBP_FWD_N_NEXT,
.next_nodes =
{
[GBP_FWD_DROP] = "ip4-drop",
[GBP_FWD_FWD] = "ip4-dvr-dpo",
}
}
unsigned int u32
Definition: types.h:88
static u8 * format_gbp_fwd_dpo_trace(u8 *s, va_list *args)
Definition: gbp_fwd_dpo.c:250

(constructor) VLIB_REGISTER_NODE (ip4_gbp_fwd_dpo_node)

Definition at line 276 of file gbp_fwd_dpo.c.

◆ ip6_gbp_fwd_dpo_node

vlib_node_registration_t ip6_gbp_fwd_dpo_node
Initial value:
= {
.name = "ip6-gbp-fwd-dpo",
.vector_size = sizeof (u32),
.format_trace = format_gbp_fwd_dpo_trace,
.n_next_nodes = GBP_FWD_N_NEXT,
.next_nodes =
{
[GBP_FWD_DROP] = "ip6-drop",
[GBP_FWD_FWD] = "ip6-dvr-dpo",
}
}
unsigned int u32
Definition: types.h:88
static u8 * format_gbp_fwd_dpo_trace(u8 *s, va_list *args)
Definition: gbp_fwd_dpo.c:250

(constructor) VLIB_REGISTER_NODE (ip6_gbp_fwd_dpo_node)

Definition at line 287 of file gbp_fwd_dpo.c.