|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
118 return (
format(s,
"dpo-receive DELETED"));
125 return (
format(s,
"dpo-receive: %U on %U",
132 return (
format(s,
"dpo-receive"));
void receive_dpo_module_init(void)
index_t dpoi_index
the index of objects of that type
static receive_dpo_t * receive_dpo_get(index_t index)
static receive_dpo_t * receive_dpo_alloc(void)
static void receive_dpo_mem_show(void)
enum dpo_proto_t_ dpo_proto_t
Data path protocol.
dpo_type_t dpoi_type
the type
#define pool_get_aligned(P, E, A)
Allocate an object E from a pool P with alignment A.
int dpo_is_receive(const dpo_id_t *dpo)
#define pool_put(P, E)
Free an object E in pool P.
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
static vnet_sw_interface_t * vnet_get_sw_interface(vnet_main_t *vnm, u32 sw_if_index)
u32 rd_sw_if_index
The Software interface index on which traffic is received.
#define dpo_pool_barrier_sync(VM, P, YESNO)
Barrier sync if a dpo pool is about to expand.
#define pool_is_free_index(P, I)
Use free bitmap to query whether given index is free.
const static char *const receive_ip4_nodes[]
The per-protocol VLIB graph nodes that are assigned to a receive object.
vnet_main_t * vnet_get_main(void)
const static char *const *const receive_nodes[DPO_PROTO_NUM]
u32 index_t
A Data-Path Object is an object that represents actions that are applied to packets are they are swit...
void fib_show_memory_usage(const char *name, u32 in_use_elts, u32 allocd_elts, size_t size_elt)
Show the memory usage for a type.
u16 rd_locks
number oflocks.
dpo_lock_fn_t dv_lock
A reference counting lock function.
receive_dpo_t * receive_dpo_pool
The data-path object representing receiveing the packet, i.e.
#define CLIB_CACHE_LINE_BYTES
The data-path object representing receiveing the packet, i.e.
#define pool_len(p)
Number of elements in pool vector.
static void receive_dpo_lock(dpo_id_t *dpo)
const static dpo_vft_t receive_vft
description fragment has unexpected format
static u8 * format_receive_dpo(u8 *s, va_list *ap)
format_function_t format_ip46_address
const static char *const receive_ip6_nodes[]
static uword pool_elts(void *v)
Number of active elements in a pool.
static receive_dpo_t * receive_dpo_get_from_dpo(const dpo_id_t *dpo)
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
void receive_dpo_add_or_lock(dpo_proto_t proto, u32 sw_if_index, const ip46_address_t *nh_addr, dpo_id_t *dpo)
A virtual function table regisitered for a DPO type.
The identity of a DPO is a combination of its type and its instance number/index of objects of that t...
static void receive_dpo_unlock(dpo_id_t *dpo)
ip46_address_t rd_addr
The address on the receive interface.
void dpo_set(dpo_id_t *dpo, dpo_type_t type, dpo_proto_t proto, index_t index)
Set/create a DPO ID The DPO will be locked.
vl_api_interface_index_t sw_if_index
format_function_t format_vnet_sw_interface_name
void dpo_register(dpo_type_t type, const dpo_vft_t *vft, const char *const *const *nodes)
For a given DPO type Register:
#define dpo_pool_barrier_release(VM, YESNO)
Release barrier sync after dpo pool expansion.