112 return (
format(s,
"dpo-l3_proxy DELETED"));
119 return (
format(s,
"dpo-l3_proxy: %U",
125 return (
format(s,
"dpo-l3-proxy"));
dpo_lock_fn_t dv_lock
A reference counting lock function.
A virtual function table regisitered for a DPO type.
static void l3_proxy_dpo_lock(dpo_id_t *dpo)
vnet_main_t * vnet_get_main(void)
void l3_proxy_dpo_module_init(void)
static const char *const l3_proxy_ip4_nodes[]
The per-protocol VLIB graph nodes that are assigned to a l3_proxy object.
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
u32 index_t
A Data-Path Object is an object that represents actions that are applied to packets are they are swit...
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)
The data-path object representing L3 proxy.
#define pool_len(p)
Number of elements in pool vector.
void dpo_register(dpo_type_t type, const dpo_vft_t *vft, const char *const *const *nodes)
For a given DPO type Register:
vl_api_interface_index_t sw_if_index
static l3_proxy_dpo_t * l3_proxy_dpo_get_from_dpo(const dpo_id_t *dpo)
static const char *const *const l3_proxy_nodes[DPO_PROTO_NUM]
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.
enum dpo_proto_t_ dpo_proto_t
Data path protocol.
u32 l3p_sw_if_index
The Software interface index on which traffic is l3_proxyd.
l3_proxy_dpo_t * l3_proxy_dpo_pool
The data-path object representing l3_proxying the packet, i.e.
The identity of a DPO is a combination of its type and its instance number/index of objects of that t...
format_function_t format_vnet_sw_interface_name
dpo_type_t dpoi_type
the type
#define pool_put(P, E)
Free an object E in pool P.
#define pool_get_aligned(P, E, A)
Allocate an object E from a pool P with alignment A.
static l3_proxy_dpo_t * l3_proxy_dpo_alloc(void)
#define pool_is_free_index(P, I)
Use free bitmap to query whether given index is free.
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.
static u32 l3_proxy_dpo_get_urpf(const dpo_id_t *dpo)
static void l3_proxy_dpo_mem_show(void)
static const char *const l3_proxy_ip6_nodes[]
static l3_proxy_dpo_t * l3_proxy_dpo_get(index_t index)
static u8 * format_l3_proxy_dpo(u8 *s, va_list *ap)
u16 l3p_locks
number oflocks.
index_t dpoi_index
the index of objects of that type
#define CLIB_CACHE_LINE_BYTES
void l3_proxy_dpo_add_or_lock(dpo_proto_t proto, u32 sw_if_index, dpo_id_t *dpo)
vl_api_fib_path_nh_proto_t proto
static uword pool_elts(void *v)
Number of active elements in a pool.