|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
16 #ifndef __LCP_ADJ_DELEGATE_H__
17 #define __LCP_ADJ_DELEGATE_H__
33 BVT (clib_bihash_kv) kv;
43 "LCP ADJ Key size changed");
48 extern BVT (clib_bihash) lcp_adj_tbl;
static_always_inline void lcp_adj_mk_key(const u8 *rewrite, u8 len, u32 sw_if_index, lcp_adj_key_t *key)
#define ADJ_INDEX_INVALID
Invalid ADJ index - used when no adj is known likewise blazoned capitals INVALID speak volumes where ...
static_always_inline void * clib_memcpy_fast(void *restrict dst, const void *restrict src, size_t n)
int clib_bihash_search_inline(clib_bihash *h, clib_bihash_kv *in_out_kv)
Search a bi-hash table.
BVT(clib_bihash) lcp_adj_tbl
The table of adjacencies indexed by the rewrite string.
#define static_always_inline
struct lcp_adj_kv_t_ lcp_adj_kv_t
u32 adj_index_t
An index for adjacencies.
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
struct lcp_adj_key_t_ lcp_adj_key_t
static_always_inline adj_index_t lcp_adj_lkup(const u8 *rewrite, u8 len, u32 sw_if_index)
STATIC_ASSERT(sizeof(lcp_adj_key_t)==32, "LCP ADJ Key size changed")
vl_api_interface_index_t sw_if_index