From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id D2B4C93B2 for ; Fri, 13 Nov 2015 11:00:53 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP; 13 Nov 2015 02:00:31 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,286,1444719600"; d="scan'208";a="599695753" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.208.62]) by FMSMGA003.fm.intel.com with SMTP; 13 Nov 2015 02:00:26 -0800 Received: by (sSMTP sendmail emulation); Fri, 13 Nov 2015 10:00:25 +0025 Date: Fri, 13 Nov 2015 10:00:25 +0000 From: Bruce Richardson To: kamasamikon Message-ID: <20151113100024.GA3684@bricha3-MOBL3> References: <1447396093-29004-1-git-send-email-kamasamikon@qq.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1447396093-29004-1-git-send-email-kamasamikon@qq.com> Organization: Intel Shannon Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Cc: dev@dpdk.org, Yu Nemo Wenbin Subject: Re: [dpdk-dev] [PATCH] hash: add rte_hash_set_cmp_func() function. X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Nov 2015 10:00:54 -0000 On Fri, Nov 13, 2015 at 02:28:13PM +0800, kamasamikon wrote: > Give user a chance to costomize the hash key compare function. > The default rte_hash_cmp_eq function is set in the rte_hash_create > function, but these builtin ones may not good enough, so the user > may call this to override the default one. > > Signed-off-by: Yu Nemo Wenbin > --- Hi, Just a few small comments: When adding a new function, you'll need to update the map file for the library with the new API so it can be correctly versionned. Also, using function pointers does not work with DPDK multi-process, so, at minimum, you need to add to the doxygen documentation that your new function cannot be used in multi-process mode. /Bruce