FD.io VPP  v19.01.3-6-g70449b9b9
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_N_NEXT, GBP_FWD_DROP, GBP_FWD_FWD, 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)
 
static uword ip4_gbp_fwd_dpo (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
static uword ip6_gbp_fwd_dpo (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_N_NEXT 
GBP_FWD_DROP 
GBP_FWD_FWD 
GBP_FWD_N_NEXT 

Definition at line 174 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 107 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 247 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 86 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 38 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 48 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 56 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 145 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 182 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 62 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 151 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 71 of file gbp_fwd_dpo.c.

+ Here is the call graph for this function:

◆ ip4_gbp_fwd_dpo()

static uword ip4_gbp_fwd_dpo ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)
static

Definition at line 259 of file gbp_fwd_dpo.c.

+ Here is the call graph for this function:

◆ ip6_gbp_fwd_dpo()

static uword ip6_gbp_fwd_dpo ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)
static

Definition at line 266 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 25 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",
}
#define NULL
Definition: clib.h:58

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 129 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",
}
#define NULL
Definition: clib.h:58

Definition at line 134 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:129
static const char *const gbp_fwd_dpo_ip6_nodes[]
Definition: gbp_fwd_dpo.c:134

Definition at line 139 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 35 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 30 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:107
static void gbp_fwd_dpo_unlock(dpo_id_t *dpo)
Definition: gbp_fwd_dpo.c:71
static void gbp_fwd_dpo_lock(dpo_id_t *dpo)
Definition: gbp_fwd_dpo.c:62

Definition at line 116 of file gbp_fwd_dpo.c.

◆ ip4_gbp_fwd_dpo_node

vlib_node_registration_t ip4_gbp_fwd_dpo_node
Initial value:
= {
.function = ip4_gbp_fwd_dpo,
.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:247
static uword ip4_gbp_fwd_dpo(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: gbp_fwd_dpo.c:259

(constructor) VLIB_REGISTER_NODE (ip4_gbp_fwd_dpo_node)

Definition at line 273 of file gbp_fwd_dpo.c.

◆ ip6_gbp_fwd_dpo_node

vlib_node_registration_t ip6_gbp_fwd_dpo_node
Initial value:
= {
.function = ip6_gbp_fwd_dpo,
.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:247
static uword ip6_gbp_fwd_dpo(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: gbp_fwd_dpo.c:266

(constructor) VLIB_REGISTER_NODE (ip6_gbp_fwd_dpo_node)

Definition at line 285 of file gbp_fwd_dpo.c.