From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuanhan Liu Subject: Re: [PATCH 1/3] lib/librte_table: enabling cuckoo hash into table library Date: Tue, 13 Sep 2016 12:43:20 +0800 Message-ID: <20160913044320.GN23158@yliu-dev.sh.intel.com> References: <1472256076-145311-1-git-send-email-sankarx.chokkalingam@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org, cristian.dumitrescu@intel.com, Guruprasad Rao To: Sankar Chokkalingam Return-path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id A8ACA558C for ; Tue, 13 Sep 2016 06:42:54 +0200 (CEST) Content-Disposition: inline In-Reply-To: <1472256076-145311-1-git-send-email-sankarx.chokkalingam@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 > Signed-off-by: Guruprasad Rao 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