FD.io VPP  v20.09-64-g4f7b92f0a
Vector Packet Processing
drop_dpo.c File Reference
+ Include dependency graph for drop_dpo.c:

Go to the source code of this file.

Functions

const dpo_id_tdrop_dpo_get (dpo_proto_t proto)
 
int dpo_is_drop (const dpo_id_t *dpo)
 The Drop DPO will drop all packets, no questions asked. More...
 
static void drop_dpo_lock (dpo_id_t *dpo)
 
static void drop_dpo_unlock (dpo_id_t *dpo)
 
static u8format_drop_dpo (u8 *s, va_list *ap)
 
void drop_dpo_module_init (void)
 

Variables

static dpo_id_t drop_dpos [DPO_PROTO_NUM]
 The data-path object representing dropping the packet. More...
 
static const dpo_vft_t drop_vft
 
static const char *const drop_ip4_nodes []
 The per-protocol VLIB graph nodes that are assigned to a drop object. More...
 
static const char *const drop_ip6_nodes []
 
static const char *const drop_mpls_nodes []
 
static const char *const drop_ethernet_nodes []
 
static const char *const drop_nsh_nodes []
 
static const char *const drop_bier_nodes []
 
static const char *const *const drop_nodes [DPO_PROTO_NUM]
 

Function Documentation

◆ dpo_is_drop()

int dpo_is_drop ( const dpo_id_t dpo)

The Drop DPO will drop all packets, no questions asked.

It is valid for any packet protocol.

Definition at line 33 of file drop_dpo.c.

+ Here is the caller graph for this function:

◆ drop_dpo_get()

const dpo_id_t* drop_dpo_get ( dpo_proto_t  proto)

Definition at line 25 of file drop_dpo.c.

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

◆ drop_dpo_lock()

static void drop_dpo_lock ( dpo_id_t dpo)
static

Definition at line 39 of file drop_dpo.c.

◆ drop_dpo_module_init()

void drop_dpo_module_init ( void  )

Definition at line 115 of file drop_dpo.c.

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

◆ drop_dpo_unlock()

static void drop_dpo_unlock ( dpo_id_t dpo)
static

Definition at line 48 of file drop_dpo.c.

◆ format_drop_dpo()

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

Definition at line 53 of file drop_dpo.c.

+ Here is the call graph for this function:

Variable Documentation

◆ drop_bier_nodes

const char* const drop_bier_nodes[]
static
Initial value:
=
{
"bier-drop",
NULL,
}

Definition at line 99 of file drop_dpo.c.

◆ drop_dpos

dpo_id_t drop_dpos[DPO_PROTO_NUM]
static

The data-path object representing dropping the packet.

Definition at line 22 of file drop_dpo.c.

◆ drop_ethernet_nodes

const char* const drop_ethernet_nodes[]
static
Initial value:
=
{
"error-drop",
NULL,
}

Definition at line 89 of file drop_dpo.c.

◆ drop_ip4_nodes

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

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

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

Definition at line 74 of file drop_dpo.c.

◆ drop_ip6_nodes

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

Definition at line 79 of file drop_dpo.c.

◆ drop_mpls_nodes

const char* const drop_mpls_nodes[]
static
Initial value:
=
{
"mpls-drop",
NULL,
}

Definition at line 84 of file drop_dpo.c.

◆ drop_nodes

const char* const* const drop_nodes[DPO_PROTO_NUM]
static
Initial value:
=
{
}
static const char *const drop_ethernet_nodes[]
Definition: drop_dpo.c:89
static const char *const drop_nsh_nodes[]
Definition: drop_dpo.c:94
static const char *const drop_bier_nodes[]
Definition: drop_dpo.c:99
static const char *const drop_ip6_nodes[]
Definition: drop_dpo.c:79
static const char *const drop_mpls_nodes[]
Definition: drop_dpo.c:84
static const char *const drop_ip4_nodes[]
The per-protocol VLIB graph nodes that are assigned to a drop object.
Definition: drop_dpo.c:74

Definition at line 104 of file drop_dpo.c.

◆ drop_nsh_nodes

const char* const drop_nsh_nodes[]
static
Initial value:
=
{
"error-drop",
NULL,
}

Definition at line 94 of file drop_dpo.c.

◆ drop_vft

const dpo_vft_t drop_vft
static
Initial value:
= {
.dv_lock = drop_dpo_lock,
.dv_unlock = drop_dpo_unlock,
.dv_format = format_drop_dpo,
}
static u8 * format_drop_dpo(u8 *s, va_list *ap)
Definition: drop_dpo.c:53
static void drop_dpo_lock(dpo_id_t *dpo)
Definition: drop_dpo.c:39
static void drop_dpo_unlock(dpo_id_t *dpo)
Definition: drop_dpo.c:48

Definition at line 61 of file drop_dpo.c.