FD.io VPP  v19.08.3-2-gbabecb413
Vector Packet Processing
bihash_vec8_8.h File Reference
+ Include dependency graph for bihash_vec8_8.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

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

Macros

#define BIHASH_TYPE   _vec8_8
 
#define BIHASH_KVP_PER_PAGE   4
 

Functions

static int clib_bihash_is_free_vec8_8 (clib_bihash_kv_vec8_8_t *v)
 Decide if a clib_bihash_kv_vec8_8_t instance is free. More...
 
static u64 clib_bihash_hash_vec8_8 (clib_bihash_kv_vec8_8_t *v)
 Hash a clib_bihash_kv_vec8_8_t instance. More...
 
static u8format_bihash_kvp_vec8_8 (u8 *s, va_list *args)
 Format a clib_bihash_kv_vec8_8_t instance. More...
 
static int clib_bihash_key_compare_vec8_8 (u64 a_arg, u64 b_arg)
 Compare two clib_bihash_kv_vec8_8_t instances. More...
 

Macro Definition Documentation

◆ BIHASH_KVP_PER_PAGE

#define BIHASH_KVP_PER_PAGE   4

Definition at line 21 of file bihash_vec8_8.h.

◆ BIHASH_TYPE

#define BIHASH_TYPE   _vec8_8

Definition at line 20 of file bihash_vec8_8.h.

Function Documentation

◆ clib_bihash_hash_vec8_8()

static u64 clib_bihash_hash_vec8_8 ( clib_bihash_kv_vec8_8_t v)
inlinestatic

Hash a clib_bihash_kv_vec8_8_t instance.

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

Definition at line 54 of file bihash_vec8_8.h.

+ Here is the call graph for this function:

◆ clib_bihash_is_free_vec8_8()

static int clib_bihash_is_free_vec8_8 ( clib_bihash_kv_vec8_8_t v)
inlinestatic

Decide if a clib_bihash_kv_vec8_8_t instance is free.

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

Definition at line 43 of file bihash_vec8_8.h.

◆ clib_bihash_key_compare_vec8_8()

static int clib_bihash_key_compare_vec8_8 ( u64  a_arg,
u64  b_arg 
)
inlinestatic

Compare two clib_bihash_kv_vec8_8_t instances.

Parameters
a- first key
b- second key

Definition at line 98 of file bihash_vec8_8.h.

◆ format_bihash_kvp_vec8_8()

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

Format a clib_bihash_kv_vec8_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 84 of file bihash_vec8_8.h.

+ Here is the call graph for this function: