FD.io VPP  v20.05.1-5-g09f167997
Vector Packet Processing
mhash.c File Reference
+ Include dependency graph for mhash.c:

Go to the source code of this file.

Data Structures

struct  mhash_string_key_t
 

Macros

#define foreach_mhash_key_size
 

Functions

static u32 load_partial_u32 (void *d, uword n)
 
static u32 mhash_key_sum_inline (void *data, uword n_data_bytes, u32 seed)
 
static foreach_mhash_key_size uword mhash_key_sum_c_string (hash_t *h, uword key)
 
static uword mhash_key_equal_c_string (hash_t *h, uword key1, uword key2)
 
static uword mhash_key_sum_vec_string (hash_t *h, uword key)
 
static uword mhash_key_equal_vec_string (hash_t *h, uword key1, uword key2)
 
static void mhash_sanitize_hash_user (mhash_t *mh)
 
void mhash_init (mhash_t *h, uword n_value_bytes, uword n_key_bytes)
 
static uword mhash_set_tmp_key (mhash_t *h, const void *key)
 
hash_pair_tmhash_get_pair (mhash_t *h, const void *key)
 
uword mhash_set_mem (mhash_t *h, void *key, uword *new_value, uword *old_value)
 
uword mhash_unset (mhash_t *h, void *key, uword *old_value)
 
u8format_mhash_key (u8 *s, va_list *va)
 

Macro Definition Documentation

◆ foreach_mhash_key_size

#define foreach_mhash_key_size
Value:
_ (2) _ (3) _ (4) _ (5) _ (6) _ (7) \
_ (8) _ (12) _ (16) _ (20) \
_ (24) _ (28) _ (32) _ (36) \
_ (40) _ (44) _ (48) _ (52) \
_ (56) _ (60) _ (64)

Definition at line 93 of file mhash.c.

Function Documentation

◆ format_mhash_key()

u8* format_mhash_key ( u8 s,
va_list *  va 
)

Definition at line 375 of file mhash.c.

+ Here is the call graph for this function:

◆ load_partial_u32()

static u32 load_partial_u32 ( void *  d,
uword  n 
)
inlinestatic

Definition at line 41 of file mhash.c.

+ Here is the caller graph for this function:

◆ mhash_get_pair()

hash_pair_t* mhash_get_pair ( mhash_t h,
const void *  key 
)

Definition at line 247 of file mhash.c.

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

◆ mhash_init()

void mhash_init ( mhash_t h,
uword  n_value_bytes,
uword  n_key_bytes 
)

Definition at line 168 of file mhash.c.

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

◆ mhash_key_equal_c_string()

static uword mhash_key_equal_c_string ( hash_t h,
uword  key1,
uword  key2 
)
static

Definition at line 130 of file mhash.c.

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

◆ mhash_key_equal_vec_string()

static uword mhash_key_equal_vec_string ( hash_t h,
uword  key1,
uword  key2 
)
static

Definition at line 147 of file mhash.c.

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

◆ mhash_key_sum_c_string()

static foreach_mhash_key_size uword mhash_key_sum_c_string ( hash_t h,
uword  key 
)
static

Definition at line 122 of file mhash.c.

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

◆ mhash_key_sum_inline()

static u32 mhash_key_sum_inline ( void *  data,
uword  n_data_bytes,
u32  seed 
)
inlinestatic

Definition at line 56 of file mhash.c.

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

◆ mhash_key_sum_vec_string()

static uword mhash_key_sum_vec_string ( hash_t h,
uword  key 
)
static

Definition at line 139 of file mhash.c.

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

◆ mhash_sanitize_hash_user()

static void mhash_sanitize_hash_user ( mhash_t mh)
inlinestatic

Definition at line 160 of file mhash.c.

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

◆ mhash_set_mem()

uword mhash_set_mem ( mhash_t h,
void *  key,
uword new_value,
uword old_value 
)

Definition at line 264 of file mhash.c.

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

◆ mhash_set_tmp_key()

static uword mhash_set_tmp_key ( mhash_t h,
const void *  key 
)
static

Definition at line 220 of file mhash.c.

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

◆ mhash_unset()

uword mhash_unset ( mhash_t h,
void *  key,
uword old_value 
)

Definition at line 346 of file mhash.c.

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