From: Bruce Richardson <bruce.richardson@intel.com>
To: Yari Adan Petralanda <yari.adan.petralanda@ericsson.com>
Cc: pablo.de.lara.guarch@intel.com,
Juan Antonio Montesinos Delgado
<juan.antonio.montesinos.delgado@ericsson.com>,
dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH] hash: new function to retrieve a key given its position
Date: Thu, 16 Jun 2016 10:50:26 +0100 [thread overview]
Message-ID: <20160616095026.GD11016@bricha3-MOBL3> (raw)
In-Reply-To: <576261C6.2050600@ericsson.com>
On Thu, Jun 16, 2016 at 10:22:30AM +0200, Yari Adan Petralanda wrote:
> The function rte_hash_get_key_with_position is added in this patch.
> As the position returned when adding a key is frequently used as an offset
> into an array of user data, this function performs the operation of
> retrieving a key given this offset.
>
> A possible use case would be to delete a key from the hash table when its
> entry in the array of data has certain value. For instance, the key could be
> a flow 5-tuple, and the value stored in the array a time stamp.
>
I have my doubts that this will work. With cuckoo hashing, a hash table entry
can change position multiple times after it is added, as the table is reorganised
to make room for new entries.
Regards,
/Bruce
next parent reply other threads:[~2016-06-16 9:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <576261C6.2050600@ericsson.com>
2016-06-16 9:50 ` Bruce Richardson [this message]
[not found] ` <3781680C02E745459CFC91251B914AEB5F099E@ESESSMB207.ericsson.se>
2016-06-16 10:55 ` Bruce Richardson
2016-06-16 12:23 ` De Lara Guarch, Pablo
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=20160616095026.GD11016@bricha3-MOBL3 \
--to=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
--cc=juan.antonio.montesinos.delgado@ericsson.com \
--cc=pablo.de.lara.guarch@intel.com \
--cc=yari.adan.petralanda@ericsson.com \
/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).