DPDK  20.11.10
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 
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 
45 
47  uint32_t seed;
48 };
49 
52 
53 #ifdef __cplusplus
54 }
55 #endif
56 
57 #endif
uint32_t(* rte_hash_function)(const void *key, uint32_t key_len, uint32_t init_val)
Definition: rte_hash.h:66
struct rte_table_ops rte_table_hash_cuckoo_ops