|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
69 return (
format(s,
"%U-classify:[%d]:table:%d",
static void classify_dpo_lock(dpo_id_t *dpo)
index_t dpoi_index
the index of objects of that type
u16 cd_locks
Number of locks/users of the label.
static void classify_dpo_unlock(dpo_id_t *dpo)
enum dpo_proto_t_ dpo_proto_t
Data path protocol.
#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.
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
#define dpo_pool_barrier_sync(VM, P, YESNO)
Barrier sync if a dpo pool is about to expand.
index_t classify_dpo_create(dpo_proto_t proto, u32 classify_table_index)
const static char *const classify_ip6_nodes[]
void classify_dpo_module_init(void)
A representation of an MPLS label for imposition in the data-path.
static classify_dpo_t * classify_dpo_alloc(void)
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.
dpo_lock_fn_t dv_lock
A reference counting lock function.
u8 * format_classify_dpo(u8 *s, va_list *args)
#define CLIB_CACHE_LINE_BYTES
static void classify_dpo_mem_show(void)
#define pool_len(p)
Number of elements in pool vector.
description fragment has unexpected format
static classify_dpo_t * classify_dpo_get(index_t index)
const static char *const *const classify_nodes[DPO_PROTO_NUM]
static uword pool_elts(void *v)
Number of active elements in a pool.
const static char *const classify_ip4_nodes[]
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
A virtual function table regisitered for a DPO type.
u8 * format_dpo_proto(u8 *s, va_list *args)
format a DPO protocol
classify_dpo_t * classify_dpo_pool
The identity of a DPO is a combination of its type and its instance number/index of objects of that t...
static index_t classify_dpo_get_index(classify_dpo_t *cd)
const static dpo_vft_t cd_vft
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.