DPDK usage discussions
 help / color / mirror / Atom feed
From: Nadirbek Nurlybekov <nurlybekovnt@gmail.com>
To: users@dpdk.org
Subject: rte_hash implementation details
Date: Thu, 29 Feb 2024 16:41:33 +0600	[thread overview]
Message-ID: <CAJ7sQYo7JCO_=2hQB=Zo9NN9WrND+rA2T3YnJdrfc-d6UX1cpg@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1201 bytes --]

Hello DPDK Users,

I hope this email finds you all in good spirits. My name is Nadirbek, and
I'm currently in the process of understanding the rte_hash table
implementation. As I explore the codebase and its functionalities, I've
encountered a question regarding a specific aspect of the rte_hash
implementation.

In particular, I'm examining the rte_hash_cuckoo_make_space_mw function,
which is responsible for moving an entry to its secondary bucket to
accommodate a new key. However, I've noticed a potential scenario where the
same entry might be moved multiple times, leading to the situation where
the lookup fails to locate the key in either the primary or secondary
bucket.

Upon reviewing the code, I observed that each bucket has a next pointer,
but it seems to be primarily utilized in extendable buckets. This
observation has prompted me to question whether my understanding of the
implementation is correct or if there's a deliberate design choice behind
this behavior.

I kindly request your assistance in shedding light on this matter. Thank
you all for your time and consideration. I eagerly await your responses and
insights.

Best regards,
Nadirbek Nurlybekov
nurlybekovnt@gmail.com

[-- Attachment #2: Type: text/html, Size: 1388 bytes --]

                 reply	other threads:[~2024-02-29 18:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJ7sQYo7JCO_=2hQB=Zo9NN9WrND+rA2T3YnJdrfc-d6UX1cpg@mail.gmail.com' \
    --to=nurlybekovnt@gmail.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).