From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B02CCA0C41 for ; Thu, 4 Nov 2021 15:11:56 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9AD6A42748; Thu, 4 Nov 2021 15:11:56 +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: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrtdeggdehjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucggtf frrghtthgvrhhnpedugefgvdefudfftdefgeelgffhueekgfffhfeujedtteeutdejueei iedvffegheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 4 Nov 2021 10:11:52 -0400 (EDT) From: Thomas Monjalon To: Syam Prasad N Pearson Cc: users@dpdk.org, dev@dpdk.org, Yipeng Wang , Sameh Gobriel , Bruce Richardson , Vladimir Medvedkin Subject: Re: [dpdk-dev] Doubt regarding DPDK hash Library implementation Date: Thu, 04 Nov 2021 15:11:51 +0100 Message-ID: <35568061.LRaTyjEjOM@thomas> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-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.