[dpdk-dev] [PATCH 1/3] lib/librte_table: enabling cuckoo hash into table library

Yuanhan Liu yuanhan.liu at linux.intel.com
Tue Sep 13 06:43:20 CEST 2016


On Fri, Aug 26, 2016 at 05:01:16PM -0700, Sankar Chokkalingam wrote:
> This patch provides table apis for dosig version of cuckoo hash via
>  rte_table_hash_cuckoo_dosig_ops
> 
> The following apis are implemented for cuckoo hash
> 	rte_table_hash_cuckoo_create
> 	rte_table_hash_cuckoo_free
> 	rte_table_hash_cuckoo_entry_add
> 	rte_table_hash_cuckoo_entry_delete
> 	rte_table_hash_cuckoo_lookup_dosig
> 	rte_table_hash_cuckoo_stats_read
> 
> Signed-off-by: Sankar Chokkalingam <sankarx.chokkalingam at intel.com>
> Signed-off-by: Guruprasad Rao <guruprasadx.rao at intel.com>

Hi,

FYI, my robot caught a clang build error (gcc builds fine).

	--yliu

---
x86_64-native-linuxapp-clang: config-all-yes
============================================
lib/librte_table/rte_table_hash_cuckoo.c:304:22: error: cast from 'uint8_t **' (aka 'unsigned char **') to 'const void **' must have all intermediate pointers const qualified to be safe [-Werror,-Wcast-qual]
                                        (const void **) keys,
                                                        ^
1 error generated.
make[5]: *** [rte_table_hash_cuckoo.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[4]: *** [librte_table] Error 2
make[3]: *** [lib] Error 2
make[2]: *** [all] Error 2
make[1]: *** [pre_install] Error 2
make: *** [install] Error 2
error: build failed


More information about the dev mailing list