From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <dev-bounces@dpdk.org> Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id EA742A0C41; Thu, 4 Nov 2021 15:12:01 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 81D464275D; Thu, 4 Nov 2021 15:11:57 +0100 (CET) Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by mails.dpdk.org (Postfix) with ESMTP id 99A9942742; Thu, 4 Nov 2021 15:11:55 +0100 (CET) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id F2A163201905; Thu, 4 Nov 2021 10:11:53 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 04 Nov 2021 10:11:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=fm2; bh= HU2rnV8oGhWx8x3ig4iPz2JS1LdVKzlpiwiCx75WKbU=; b=bO+HCakbjxnpyH1T cynVcjd9oi+ax9tXfrD1yDM1MQcjCDdXHQ2Gtdzx6YeqpKAn4uuEko+JyLRM31cT fgPl4ZO97XsHCoPDJm8tO9BJwqaAoZg+wbXR6YiLbByT3LdIn6RZv2OwJWd9hYww 8fJK6rCix3+EFs8wEvmF+IQIy+LJmtj1u3kBuPKtSGoH+LznG03Fv8xMX2O1yxW/ DtvoSnkJ2oiev9Yb9zfKdNO++YIAhd6jY8m6miYfz86SWo9n77QezNjjzXbiU8ET bvHab5iz1t60yfz3tjUbdhE/7k+5k0mdRpwyR1b6sECw/QhvxxEn6Z8k4Kp7KO+x Zv1AaQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=HU2rnV8oGhWx8x3ig4iPz2JS1LdVKzlpiwiCx75WK bU=; b=EZhQXMt9xYQ/d4aHhL7rdA7FmSX6UCnEntmUoJ5Qz95Uq6Ey382zBlxWs LINuil4uVuRD6F8fa/s583g7g/SsJ1PYF2x3uHHaLcfJ21mt9u6AnxtnAGPPSKUV TGK+KPcSxxx95k4MR7IGTFcXEIAqNch9CbeFELmW7ZsTzRcFNsmj0EsTOOqPhlXP CRGGBHYfr81davx1UuItWcOy8a7+xY/kr7Q30l7+qFuBZAbg79J9dK9yp5Rj0zGZ ozlNR3H2SwiMqxTNJQjQOJ4w+SnsGIPMYi6BfHM8zvpJVwNQrDe7RCHIoCsUNIWk Q4q3SR1eoGoko3Bg32OmpFQrI/+EQ== X-ME-Sender: <xms:KeqDYdOWjts_UyeDD_nzR4lyWFDiMoeTWzO_dZrLNrv1p--Hm-Zm9Q> <xme:KeqDYf_lseMa5njh9ZVjN836nFwM_LFn3hwxPIfq8llPQZWiv2ytMQlmJwTaxkp88 GJp5ykjX_g8MgAvjQ> X-ME-Received: <xmr:KeqDYcRf1uc2HMP66D3pD6yoBwnpssW2P-lynCwYKcYoDIawOh7RNT17B80ros5rZ2Q-3YrumMQscFPDQfnWaqnuOw> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrtdeggdehjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucggtf frrghtthgvrhhnpedugefgvdefudfftdefgeelgffhueekgfffhfeujedtteeutdejueei iedvffegheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: <xmx:KeqDYZtK5NU23hb-yZSUgzVSyz8wRM9-q0nujC99sJoJswseY9hDJg> <xmx:KeqDYVfKYprL-fTGcY9PWJehSkhUPS51fA1-fkZoa2D0BNxI2NMhdw> <xmx:KeqDYV3t9Ph4ogwkkJ8eQNx5XGzKLNA7pmxo_j1qh_aeBG05yMlXEA> <xmx:KeqDYeGoz6BZGB3WAKRjhdzu2z--hhIwziUmTFfRMZisuAMp-jZ1yA> Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 4 Nov 2021 10:11:52 -0400 (EDT) From: Thomas Monjalon <thomas@monjalon.net> To: Syam Prasad N Pearson <syam.pearson@gadgeon.com> Cc: users@dpdk.org, dev@dpdk.org, Yipeng Wang <yipeng1.wang@intel.com>, Sameh Gobriel <sameh.gobriel@intel.com>, Bruce Richardson <bruce.richardson@intel.com>, Vladimir Medvedkin <vladimir.medvedkin@intel.com> Date: Thu, 04 Nov 2021 15:11:51 +0100 Message-ID: <35568061.LRaTyjEjOM@thomas> In-Reply-To: <CAA2VcQjJPvz63p=gzM+Sh4J7UCRSUaHg5NBgB0o-pmq3m=kmmg@mail.gmail.com> References: <CAA2VcQjJPvz63p=gzM+Sh4J7UCRSUaHg5NBgB0o-pmq3m=kmmg@mail.gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] Doubt regarding DPDK hash Library implementation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> +Cc hash lib maintainers 01/11/2021 11:55, Syam Prasad N Pearson: > Dear Sir/Madam, > I am a developer trying to get familiar with the DPDK hash library. I tried > to make and use a hash table successfully. > During the development I came across a variable > > /** Number of items per bucket. */ > *#define RTE_HASH_BUCKET_ENTRIES 8* > > defined inside: > dpdk-20.11.3/dpdk-stable-20.11.3/lib/librte_hash /rte_cuckoo_hash.h > > Why does the library take this value as *8*, is there any particular reason > for this? what if it is 16,32... etc. > > I am using DPDK 20.11.3 LTS. > > Please help.