FD.io VPP  v16.06
Vector Packet Processing
phash.h File Reference
+ Include dependency graph for phash.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  phash_key_t
 
struct  phash_tabb_t
 
struct  phash_tabq_t
 
struct  phash_main_t
 

Macros

#define PHASH_FLAG_MIX64   (1 << 0)
 
#define PHASH_FLAG_MIX32   (0 << 0)
 
#define PHASH_FLAG_USE_SCRAMBLE   (1 << 1)
 
#define PHASH_FLAG_SLOW_MODE   (0 << 2)
 
#define PHASH_FLAG_FAST_MODE   (1 << 2)
 
#define PHASH_FLAG_NON_MINIMAL   (0 << 3)
 
#define PHASH_FLAG_MINIMAL   (1 << 3)
 

Functions

always_inline void phash_tabb_free (phash_tabb_t *b)
 
always_inline void phash_main_free_working_memory (phash_main_t *pm)
 
always_inline void phash_main_free (phash_main_t *pm)
 
uword phash_hash_slow (phash_main_t *pm, uword key)
 
clib_error_tphash_find_perfect_hash (phash_main_t *pm)
 
clib_error_tphash_validate (phash_main_t *pm)
 
int phash_test_main (unformat_input_t *input)
 

Macro Definition Documentation

#define PHASH_FLAG_FAST_MODE   (1 << 2)

Definition at line 106 of file phash.h.

#define PHASH_FLAG_MINIMAL   (1 << 3)

Definition at line 110 of file phash.h.

#define PHASH_FLAG_MIX32   (0 << 0)

Definition at line 99 of file phash.h.

#define PHASH_FLAG_MIX64   (1 << 0)

Definition at line 98 of file phash.h.

#define PHASH_FLAG_NON_MINIMAL   (0 << 3)

Definition at line 109 of file phash.h.

#define PHASH_FLAG_SLOW_MODE   (0 << 2)

Definition at line 105 of file phash.h.

#define PHASH_FLAG_USE_SCRAMBLE   (1 << 1)

Definition at line 102 of file phash.h.

Function Documentation

clib_error_t* phash_find_perfect_hash ( phash_main_t pm)

Definition at line 776 of file phash.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uword phash_hash_slow ( phash_main_t pm,
uword  key 
)

Definition at line 877 of file phash.c.

+ Here is the caller graph for this function:

always_inline void phash_main_free ( phash_main_t pm)

Definition at line 163 of file phash.h.

+ Here is the call graph for this function:

always_inline void phash_main_free_working_memory ( phash_main_t pm)

Definition at line 152 of file phash.h.

+ Here is the caller graph for this function:

always_inline void phash_tabb_free ( phash_tabb_t b)

Definition at line 64 of file phash.h.

+ Here is the caller graph for this function:

int phash_test_main ( unformat_input_t input)

+ Here is the caller graph for this function:

clib_error_t* phash_validate ( phash_main_t pm)

Definition at line 930 of file phash.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: