* [dpdk-dev] Purge all entries in a rte_hash
@ 2015-01-22 11:07 Padam J. Singh
0 siblings, 0 replies; only message in thread
From: Padam J. Singh @ 2015-01-22 11:07 UTC (permalink / raw)
To: dev
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-01-22 11:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-22 11:07 [dpdk-dev] Purge all entries in a rte_hash Padam J. Singh
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).