DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Padam J. Singh" <padam.singh@inventum.net>
To: dev@dpdk.org
Subject: [dpdk-dev] Purge all entries in a rte_hash
Date: Thu, 22 Jan 2015 16:37:53 +0530	[thread overview]
Message-ID: <44856217-077B-48C0-A527-3C6FB49A34E0@inventum.net> (raw)

Hello,

Is there some way to purge all keys in an rte_hash while maintaining read concurrency?

I am assuming that I can’t do a free/create step while other threads may still be doing lookups on it.

What I can do is store the key as part of the value in the array of user data, iterate this array and call delete on the hash with the key. Would this be the most optimal way?

Thanks,
Padam

                 reply	other threads:[~2015-01-22 11:07 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=44856217-077B-48C0-A527-3C6FB49A34E0@inventum.net \
    --to=padam.singh@inventum.net \
    --cc=dev@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).