|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
112 return (
format(s,
"dpo-l3_proxy DELETED"));
119 return (
format(s,
"dpo-l3_proxy: %U",
125 return (
format(s,
"dpo-l3-proxy"));
index_t dpoi_index
the index of objects of that type
static void l3_proxy_dpo_lock(dpo_id_t *dpo)
enum dpo_proto_t_ dpo_proto_t
Data path protocol.
dpo_type_t dpoi_type
the type
u16 l3p_locks
number oflocks.
#define pool_get_aligned(P, E, A)
Allocate an object E from a pool P with alignment A.
#define pool_put(P, E)
Free an object E in pool P.
static vnet_sw_interface_t * vnet_get_sw_interface(vnet_main_t *vnm, u32 sw_if_index)
static void l3_proxy_dpo_unlock(dpo_id_t *dpo)
const static dpo_vft_t l3_proxy_vft
#define pool_is_free_index(P, I)
Use free bitmap to query whether given index is free.
const static char *const l3_proxy_ip4_nodes[]
The per-protocol VLIB graph nodes that are assigned to a l3_proxy object.
vnet_main_t * vnet_get_main(void)
static l3_proxy_dpo_t * l3_proxy_dpo_get(index_t index)
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.
static u32 l3_proxy_dpo_get_urpf(const dpo_id_t *dpo)
The data-path object representing L3 proxy.
static l3_proxy_dpo_t * l3_proxy_dpo_alloc(void)
dpo_lock_fn_t dv_lock
A reference counting lock function.
#define CLIB_CACHE_LINE_BYTES
static l3_proxy_dpo_t * l3_proxy_dpo_get_from_dpo(const dpo_id_t *dpo)
l3_proxy_dpo_t * l3_proxy_dpo_pool
The data-path object representing l3_proxying the packet, i.e.
#define pool_len(p)
Number of elements in pool vector.
u32 l3p_sw_if_index
The Software interface index on which traffic is l3_proxyd.
const static char *const *const l3_proxy_nodes[DPO_PROTO_NUM]
description fragment has unexpected format
void l3_proxy_dpo_add_or_lock(dpo_proto_t proto, u32 sw_if_index, dpo_id_t *dpo)
static uword pool_elts(void *v)
Number of active elements in a pool.
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
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 l3_proxy_dpo_mem_show(void)
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.
const static char *const l3_proxy_ip6_nodes[]
static u8 * format_l3_proxy_dpo(u8 *s, va_list *ap)
vl_api_interface_index_t sw_if_index
void l3_proxy_dpo_module_init(void)
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: