* [dpdk-dev] Question about rte_hash ext flags on mulitithread read/write
@ 2020-03-05 2:01 Lilijun (Jerry)
0 siblings, 0 replies; only message in thread
From: Lilijun (Jerry) @ 2020-03-05 2:01 UTC (permalink / raw)
To: dev, stable
Hi All,
There is some description about RTE hash's multi-thread support in Programmer's Guide. After reading that I still have some questions as follows:
1) There is a sentence " In all modes of operation lookups are thread-safe meaning lookups can be called from multiple threads concurrently.".
But if the extra_flag is only set RTE_HASH_EXTRA_FLAGS_EXT_TABLE, RTE hash will use a link list to store extend buckets due to excessive hash collisions.
So how can we make sure the link list accesses are safe with reading/writing concurrently?
2) Can we support multithread writing with RTE_HASH_EXTRA_FLAGS_RW_CONCURRENCY_LF being set? Do we need add RTE_HASH_EXTRA_FLAGS_MULTI_WRITER_ADD flag?
Any reply will be appreciated very much. Thanks.
Jerry
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-05 2:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-05 2:01 [dpdk-dev] Question about rte_hash ext flags on mulitithread read/write Lilijun (Jerry)
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).