DPDK
21.11.8
lib
table
rte_table_hash_cuckoo.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-3-Clause
2
* Copyright(c) 2018 Intel Corporation
3
*/
4
5
#ifndef __INCLUDE_RTE_TABLE_HASH_CUCKOO_H__
6
#define __INCLUDE_RTE_TABLE_HASH_CUCKOO_H__
7
8
#ifdef __cplusplus
9
extern
"C"
{
10
#endif
11
17
#include <stdint.h>
18
19
#include <
rte_hash.h
>
20
21
#include "
rte_table.h
"
22
24
struct
rte_table_hash_cuckoo_params
{
26
const
char
*
name
;
27
29
uint32_t
key_size
;
30
32
uint32_t
key_offset
;
33
35
uint8_t *
key_mask
;
36
38
uint32_t
n_keys
;
39
41
uint32_t
n_buckets
;
42
44
rte_hash_function
f_hash
;
45
47
uint32_t
seed
;
48
};
49
51
extern
struct
rte_table_ops
rte_table_hash_cuckoo_ops
;
52
53
#ifdef __cplusplus
54
}
55
#endif
56
57
#endif
rte_hash_function
uint32_t(* rte_hash_function)(const void *key, uint32_t key_len, uint32_t init_val)
Definition:
rte_hash.h:66
rte_table_hash_cuckoo_params::n_buckets
uint32_t n_buckets
Definition:
rte_table_hash_cuckoo.h:41
rte_table_hash_cuckoo_params::n_keys
uint32_t n_keys
Definition:
rte_table_hash_cuckoo.h:38
rte_table_ops
Definition:
rte_table.h:257
rte_table_hash_cuckoo_params
Definition:
rte_table_hash_cuckoo.h:24
rte_table_hash_cuckoo_params::seed
uint32_t seed
Definition:
rte_table_hash_cuckoo.h:47
rte_table_hash_cuckoo_params::key_mask
uint8_t * key_mask
Definition:
rte_table_hash_cuckoo.h:35
rte_table.h
rte_hash.h
rte_table_hash_cuckoo_params::name
const char * name
Definition:
rte_table_hash_cuckoo.h:26
rte_table_hash_cuckoo_ops
struct rte_table_ops rte_table_hash_cuckoo_ops
rte_table_hash_cuckoo_params::key_offset
uint32_t key_offset
Definition:
rte_table_hash_cuckoo.h:32
rte_table_hash_cuckoo_params::key_size
uint32_t key_size
Definition:
rte_table_hash_cuckoo.h:29
rte_table_hash_cuckoo_params::f_hash
rte_hash_function f_hash
Definition:
rte_table_hash_cuckoo.h:44
Generated by
1.8.13