FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
receive_dpo.c File Reference
+ Include dependency graph for receive_dpo.c:

Go to the source code of this file.

Functions

int dpo_is_receive (const dpo_id_t *dpo)
 
static receive_dpo_treceive_dpo_alloc (void)
 
static receive_dpo_treceive_dpo_get_from_dpo (const dpo_id_t *dpo)
 
void receive_dpo_add_or_lock (dpo_proto_t proto, u32 sw_if_index, const ip46_address_t *nh_addr, dpo_id_t *dpo)
 
static void receive_dpo_lock (dpo_id_t *dpo)
 
static void receive_dpo_unlock (dpo_id_t *dpo)
 
static u8format_receive_dpo (u8 *s, va_list *ap)
 
static void receive_dpo_mem_show (void)
 
void receive_dpo_module_init (void)
 

Variables

receive_dpo_treceive_dpo_pool
 The data-path object representing receiveing the packet, i.e. More...
 
const static dpo_vft_t receive_vft
 
const static char *const receive_ip4_nodes []
 The per-protocol VLIB graph nodes that are assigned to a receive object. More...
 
const static char *const receive_ip6_nodes []
 
const static char *const *const receive_nodes [DPO_PROTO_NUM]
 

Function Documentation

◆ dpo_is_receive()

int dpo_is_receive ( const dpo_id_t dpo)

Definition at line 29 of file receive_dpo.c.

+ Here is the caller graph for this function:

◆ format_receive_dpo()

static u8* format_receive_dpo ( u8 s,
va_list *  ap 
)
static

Definition at line 109 of file receive_dpo.c.

+ Here is the call graph for this function:

◆ receive_dpo_add_or_lock()

void receive_dpo_add_or_lock ( dpo_proto_t  proto,
u32  sw_if_index,
const ip46_address_t *  nh_addr,
dpo_id_t dpo 
)

Definition at line 67 of file receive_dpo.c.

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

◆ receive_dpo_alloc()

static receive_dpo_t* receive_dpo_alloc ( void  )
static

Definition at line 35 of file receive_dpo.c.

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

◆ receive_dpo_get_from_dpo()

static receive_dpo_t* receive_dpo_get_from_dpo ( const dpo_id_t dpo)
static

Definition at line 51 of file receive_dpo.c.

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

◆ receive_dpo_lock()

static void receive_dpo_lock ( dpo_id_t dpo)
static

Definition at line 86 of file receive_dpo.c.

+ Here is the call graph for this function:

◆ receive_dpo_mem_show()

static void receive_dpo_mem_show ( void  )
static

Definition at line 137 of file receive_dpo.c.

+ Here is the call graph for this function:

◆ receive_dpo_module_init()

void receive_dpo_module_init ( void  )

Definition at line 178 of file receive_dpo.c.

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

◆ receive_dpo_unlock()

static void receive_dpo_unlock ( dpo_id_t dpo)
static

Definition at line 95 of file receive_dpo.c.

+ Here is the call graph for this function:

Variable Documentation

◆ receive_dpo_pool

receive_dpo_t* receive_dpo_pool

The data-path object representing receiveing the packet, i.e.

pool of all receive DPOs

it's for-us

pool of all receive DPOs

Definition at line 26 of file receive_dpo.c.

◆ receive_ip4_nodes

const static char* const receive_ip4_nodes[]
static
Initial value:
=
{
"ip4-local",
NULL,
}

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

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

Definition at line 159 of file receive_dpo.c.

◆ receive_ip6_nodes

const static char* const receive_ip6_nodes[]
static
Initial value:
=
{
"ip6-local",
NULL,
}

Definition at line 164 of file receive_dpo.c.

◆ receive_nodes

const static char* const * const receive_nodes[DPO_PROTO_NUM]
static
Initial value:

Definition at line 170 of file receive_dpo.c.

◆ receive_vft

const static dpo_vft_t receive_vft
static
Initial value:
= {
.dv_lock = receive_dpo_lock,
.dv_unlock = receive_dpo_unlock,
.dv_format = format_receive_dpo,
.dv_mem_show = receive_dpo_mem_show,
}

Definition at line 145 of file receive_dpo.c.

receive_dpo_mem_show
static void receive_dpo_mem_show(void)
Definition: receive_dpo.c:137
receive_ip4_nodes
const static char *const receive_ip4_nodes[]
The per-protocol VLIB graph nodes that are assigned to a receive object.
Definition: receive_dpo.c:159
receive_dpo_lock
static void receive_dpo_lock(dpo_id_t *dpo)
Definition: receive_dpo.c:86
format_receive_dpo
static u8 * format_receive_dpo(u8 *s, va_list *ap)
Definition: receive_dpo.c:109
DPO_PROTO_IP6
@ DPO_PROTO_IP6
Definition: dpo.h:65
DPO_PROTO_MPLS
@ DPO_PROTO_MPLS
Definition: dpo.h:66
receive_ip6_nodes
const static char *const receive_ip6_nodes[]
Definition: receive_dpo.c:164
DPO_PROTO_IP4
@ DPO_PROTO_IP4
Definition: dpo.h:64
receive_dpo_unlock
static void receive_dpo_unlock(dpo_id_t *dpo)
Definition: receive_dpo.c:95