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 BE88FA0C41 for ; Thu, 4 Nov 2021 15:10:18 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 30D0442758; Thu, 4 Nov 2021 15:09:58 +0100 (CET) Received: from mail-yb1-f172.google.com (mail-yb1-f172.google.com [209.85.219.172]) by mails.dpdk.org (Postfix) with ESMTP id 9C11B40E28 for ; Mon, 1 Nov 2021 11:55:59 +0100 (CET) Received: by mail-yb1-f172.google.com with SMTP id 131so32029377ybc.7 for ; Mon, 01 Nov 2021 03:55:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gadgeon.com; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=GTwTYsW/2J/JnGKOFkzpMsSavcuI3SYhzJjVKuCCN9o=; b=XRqWVrGSEJEVkT4Jn9TajexoKw9VcbCshC3g5vhHCSolww02ZzyGLsCPxNCvHn6CF4 oLU4xtcgYixs6rScZMU/2YZOphu/RCJZQODq5+MnBP4ofas880r/B6WSd1MWOWbgZ/wH s88Y3wXmyY7jD92tEnoQ4/DdLrXVj9qOYElLGNetNTeUoW5FKv676Y7ormTKYwMRpXsx 6bHNPJNklcqX/OEc3IJJEKyw1qki28RKVEc/Uw95OWN6rjE5H/aRR+Ju5Q/jwHQo6MN6 I6+yy6/i8ASAIAGcy6jzlRyzB6EBmNGQ+uCSjf6Zi7W2Aq5G+5Y3ihx9ZWzw5cavA+cI h4Bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=GTwTYsW/2J/JnGKOFkzpMsSavcuI3SYhzJjVKuCCN9o=; b=PVEbu5KNVu2UZIoOCPOnxBrhPSDRXN2SFIitpaPT8OzX7QKzzuHFgXIpwZ4u0y9XZF f+9D3vryhoAS4X/HIW9QBfc3RlR3xj74RbUFeGSPavTW2wegYLtteVqaJbOUKfN952Li co6NBndV5Xv50HxTPlgUddK2SVE8cZ1MXwndAeinltj5YgxuEnuL7KU9QxB0eZ4lLxk8 hhfXEtqbH6W/GfPmrQ/LX9ho+lKxoxko7Qq7LNlXPYx7MiUXwRgVL3Gd3J8bH7iGR8FE 4X4QdAlPR//l72etBeip6WHsU+mXFPL0I9jNC08JX1Vp+LiRgJa3/oZDN2D5ORM1BD7g erGA== X-Gm-Message-State: AOAM531ZfAcTGkZSdwzOjhdJoxkSd1J49czNimvvL/ilTccLXcCR24hI GnmVSYTKUbQs3R4RpG6Cso+p0vPyFcxB/5mDznB/X7W2QanLHw== X-Google-Smtp-Source: ABdhPJyv8fpf5b6MXLDnW/dTkSfXOzqYIG5xqDRzloDptqKP3SiY0dwkwKAItRTAWEi0C1oXtcGktUNgYbnMXt0tYHY= X-Received: by 2002:a25:ea54:: with SMTP id o20mr17350690ybe.537.1635764158897; Mon, 01 Nov 2021 03:55:58 -0700 (PDT) MIME-Version: 1.0 From: Syam Prasad N Pearson Date: Mon, 1 Nov 2021 16:25:32 +0530 Message-ID: Subject: Doubt regarding DPDK hash Library implementation To: users@dpdk.org, dev@dpdk.org Cc: Syam Prasad N Pearson Content-Type: multipart/alternative; boundary="000000000000a0b2b205cfb805b6" X-Mailman-Approved-At: Thu, 04 Nov 2021 15:09:54 +0100 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 --000000000000a0b2b205cfb805b6 Content-Type: text/plain; charset="UTF-8" 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. -- Regards, Syam Pearson Syam Pearson Gadgeon Smart Systems m: +91-97460-44420 (India) w: www.gadgeon.com www.delpheon.io [image: www.linkedin.com/in/kirankumar-c-32349964] --000000000000a0b2b205cfb805b6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Dear Sir/Madam,
I am a developer trying to = get familiar with the DPDK hash library. I tried to make and use a hash tab= le successfully.
During the development I came across a variable<= /div>

/** 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_ha= sh.h

Why does the library take this value as 8<= /b>, is there any particular reason for this? what if it is 16,32... etc.

I am using DPDK 20.11.3 LTS.

Please help.

--
Regards,
Syam Pearson

--000000000000a0b2b205cfb805b6--
Syam Pearson
Gadgeon Smart Systems
m:+91-97460-4442= 0 (India)
w:www.gadgeon.com
www.delpheon.io=C2=A0=C2=A0
=C2=A0=C2=A03D"www.linkedin.co=