FD.io VPP  v16.06
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

always_inline u32 load_partial_u32 (void *d, uword n)
 
always_inline 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)
 
always_inline 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, void *key)
 
hash_pair_tmhash_get_pair (mhash_t *h, 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 378 of file mhash.c.

+ Here is the call graph for this function:

always_inline u32 load_partial_u32 ( void d,
uword  n 
)

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,
void key 
)

Definition at line 257 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 169 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 132 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 149 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 124 of file mhash.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

always_inline u32 mhash_key_sum_inline ( void data,
uword  n_data_bytes,
u32  seed 
)

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 141 of file mhash.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

always_inline void mhash_sanitize_hash_user ( mhash_t mh)

Definition at line 162 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 272 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,
void key 
)
static

Definition at line 230 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 350 of file mhash.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: