FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
bihash_8_8_stats.h File Reference
+ Include dependency graph for bihash_8_8_stats.h:

Go to the source code of this file.

Data Structures

struct  clib_bihash_kv_8_8_stats_t
 8 octet key, 8 octet key value pair More...
 

Macros

#define BIHASH_TYPE   _8_8_stats
 
#define BIHASH_KVP_PER_PAGE   4
 
#define BIHASH_ENABLE_STATS   1
 
#define BIHASH_KVP_AT_BUCKET_LEVEL   0
 
#define BIHASH_LAZY_INSTANTIATE   1
 
#define BIHASH_BUCKET_PREFETCH_CACHE_LINES   1
 
#define BIHASH_USE_HEAP   1
 

Functions

static int clib_bihash_is_free_8_8_stats (clib_bihash_kv_8_8_stats_t *v)
 Decide if a clib_bihash_kv_8_8_t instance is free. More...
 
static u64 clib_bihash_hash_8_8_stats (clib_bihash_kv_8_8_stats_t *v)
 Hash a clib_bihash_kv_8_8_t instance. More...
 
static u8format_bihash_kvp_8_8_stats (u8 *s, va_list *args)
 Format a clib_bihash_kv_8_8_t instance. More...
 
static int clib_bihash_key_compare_8_8_stats (u64 a, u64 b)
 Compare two clib_bihash_kv_8_8_t instances. More...
 

Macro Definition Documentation

◆ BIHASH_BUCKET_PREFETCH_CACHE_LINES

#define BIHASH_BUCKET_PREFETCH_CACHE_LINES   1

Definition at line 29 of file bihash_8_8_stats.h.

◆ BIHASH_ENABLE_STATS

#define BIHASH_ENABLE_STATS   1

Definition at line 26 of file bihash_8_8_stats.h.

◆ BIHASH_KVP_AT_BUCKET_LEVEL

#define BIHASH_KVP_AT_BUCKET_LEVEL   0

Definition at line 27 of file bihash_8_8_stats.h.

◆ BIHASH_KVP_PER_PAGE

#define BIHASH_KVP_PER_PAGE   4

Definition at line 25 of file bihash_8_8_stats.h.

◆ BIHASH_LAZY_INSTANTIATE

#define BIHASH_LAZY_INSTANTIATE   1

Definition at line 28 of file bihash_8_8_stats.h.

◆ BIHASH_TYPE

#define BIHASH_TYPE   _8_8_stats

Definition at line 24 of file bihash_8_8_stats.h.

◆ BIHASH_USE_HEAP

#define BIHASH_USE_HEAP   1

Definition at line 30 of file bihash_8_8_stats.h.

Function Documentation

◆ clib_bihash_hash_8_8_stats()

static u64 clib_bihash_hash_8_8_stats ( clib_bihash_kv_8_8_stats_t v)
inlinestatic

Hash a clib_bihash_kv_8_8_t instance.

Parameters
v- pointer to the (key,value) pair, hash the key (only)

Definition at line 63 of file bihash_8_8_stats.h.

+ Here is the call graph for this function:

◆ clib_bihash_is_free_8_8_stats()

static int clib_bihash_is_free_8_8_stats ( clib_bihash_kv_8_8_stats_t v)
inlinestatic

Decide if a clib_bihash_kv_8_8_t instance is free.

Parameters
v-pointer to the (key,value) pair

Definition at line 52 of file bihash_8_8_stats.h.

◆ clib_bihash_key_compare_8_8_stats()

static int clib_bihash_key_compare_8_8_stats ( u64  a,
u64  b 
)
inlinestatic

Compare two clib_bihash_kv_8_8_t instances.

Parameters
a- first key
b- second key

Definition at line 93 of file bihash_8_8_stats.h.

◆ format_bihash_kvp_8_8_stats()

static u8* format_bihash_kvp_8_8_stats ( u8 s,
va_list *  args 
)
inlinestatic

Format a clib_bihash_kv_8_8_t instance.

Parameters
s- u8 * vector under construction
args(vararg) - the (key,value) pair to format
Returns
s - the u8 * vector under construction

Definition at line 79 of file bihash_8_8_stats.h.