[dpdk-dev] rte_hash thread safe
Stephen Hemminger
stephen at networkplumber.org
Tue Apr 24 03:14:11 CEST 2018
On Mon, 23 Apr 2018 17:48:50 -0700
Jim Murphy <jmurphy at arista.com> wrote:
> Anecdotally I've heard that the urcu hash implementation is slower than
> rte_hash based on pure lookup performance. Has anyone considered adding RCU
> hooks into rte_hash?
Not really possible with DPDK (as I said earlier) because DPDK does not have concept
of thread quiescent period to allow for safe deletion. You could manually use RCU
concepts of RCU and RTE hash; it would require using userspace RCU primitives
inside DPDK. This would cause a dependency that would prevent that from ever
being merged upstream due to license conflict; but since DPDK is liberal BSD
license you are free to do it and maintain it on your own.
More information about the dev
mailing list