FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
lcp_adj.h File Reference
+ Include dependency graph for lcp_adj.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  lcp_adj_key_t_
 
struct  lcp_adj_kv_t_
 

Typedefs

typedef struct lcp_adj_key_t_ lcp_adj_key_t
 
typedef struct lcp_adj_kv_t_ lcp_adj_kv_t
 

Functions

 STATIC_ASSERT (sizeof(lcp_adj_key_t)==32, "LCP ADJ Key size changed")
 
 STATIC_ASSERT (sizeof(lcp_adj_kv_t)==sizeof(BVT(clib_bihash_kv)), "LCP ADJ Key size changed")
 
 BVT (clib_bihash) lcp_adj_tbl
 The table of adjacencies indexed by the rewrite string. More...
 
static_always_inline void lcp_adj_mk_key (const u8 *rewrite, u8 len, u32 sw_if_index, lcp_adj_key_t *key)
 
static_always_inline adj_index_t lcp_adj_lkup (const u8 *rewrite, u8 len, u32 sw_if_index)
 

Typedef Documentation

◆ lcp_adj_key_t

typedef struct lcp_adj_key_t_ lcp_adj_key_t

◆ lcp_adj_kv_t

typedef struct lcp_adj_kv_t_ lcp_adj_kv_t

Function Documentation

◆ BVT()

BVT ( clib_bihash  )

The table of adjacencies indexed by the rewrite string.

Definition at line 1065 of file l2_fib.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lcp_adj_lkup()

static_always_inline adj_index_t lcp_adj_lkup ( const u8 rewrite,
u8  len,
u32  sw_if_index 
)

Definition at line 64 of file lcp_adj.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lcp_adj_mk_key()

static_always_inline void lcp_adj_mk_key ( const u8 rewrite,
u8  len,
u32  sw_if_index,
lcp_adj_key_t key 
)

Definition at line 51 of file lcp_adj.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ STATIC_ASSERT() [1/2]

STATIC_ASSERT ( sizeof(lcp_adj_key_t = =32,
"LCP ADJ Key size changed"   
)

◆ STATIC_ASSERT() [2/2]

STATIC_ASSERT ( sizeof(lcp_adj_kv_t = =sizeof(BVT(clib_bihash_kv)),
"LCP ADJ Key size changed"   
)