FD.io VPP  v17.07.01-10-g3be13f0
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

#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

u8* format_mhash_key ( u8 s,
va_list *  va 
)

Definition at line 382 of file mhash.c.

+ Here is the call graph for this function:

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:

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

Definition at line 254 of file mhash.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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:

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:

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:

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:

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:

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:

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:

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

Definition at line 271 of file mhash.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 226 of file mhash.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 353 of file mhash.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: