|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
38 #ifndef included_phash_h
39 #define included_phash_h
69 b->val_b =
b->water_b = 0;
101 #define PHASH_FLAG_MIX64 (1 << 0)
102 #define PHASH_FLAG_MIX32 (0 << 0)
105 #define PHASH_FLAG_USE_SCRAMBLE (1 << 1)
108 #define PHASH_FLAG_SLOW_MODE (0 << 2)
109 #define PHASH_FLAG_FAST_MODE (1 << 2)
112 #define PHASH_FLAG_NON_MINIMAL (0 << 3)
113 #define PHASH_FLAG_MINIMAL (1 << 3)
129 void (*key_seed1) (
void *
private,
uword key,
void *seed);
132 void (*key_seed2) (
void *
private,
uword key1,
uword key2,
void *seed);
clib_error_t * phash_find_perfect_hash(phash_main_t *pm)
int phash_test_main(unformat_input_t *input)
#define vec_free(V)
Free vector's memory (no header).
static void phash_main_free_working_memory(phash_main_t *pm)
clib_error_t * phash_validate(phash_main_t *pm)
static void phash_main_free(phash_main_t *pm)
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
uword phash_hash_slow(phash_main_t *pm, uword key)
static void phash_tabb_free(phash_tabb_t *b)
#define PHASH_FLAG_USE_SCRAMBLE