[dpdk-dev] [PATCH v3 1/3] rcu: add RCU library supporting QSBR mechanism
Ananyev, Konstantin
konstantin.ananyev at intel.com
Tue Apr 2 12:53:51 CEST 2019
>
> > Add RCU library supporting quiescent state based memory reclamation method.
> > This library helps identify the quiescent state of the reader threads so
> > that the writers can free the memory associated with the lock less data
> > structures.
> >
> > Signed-off-by: Honnappa Nagarahalli <honnappa.nagarahalli at arm.com>
> > Reviewed-by: Steve Capper <steve.capper at arm.com>
> > Reviewed-by: Gavin Hu <gavin.hu at arm.com>
> > Reviewed-by: Ola Liljedahl <ola.liljedahl at arm.com>
> > ---
> > --
>
> Acked-by: Konstantin Ananyev <konstantin.ananyev at intel.com>
>
> > 2.17.1
Actually one small thing:
while doing make all seeing the following error after patch #2:
In file included from /local/kananye1/dpdk.rcu1/app/test/test_rcu_qsbr_perf.c:8:0:
/local/kananye1/dpdk.rcu1/x86_64-native-linuxapp-gcc-aesmb/include/rte_rcu_qsbr.h: In function ârte_rcu_qsbr_thread_onlineâ:
/local/kananye1/dpdk.rcu1/x86_64-native-linuxapp-gcc-aesmb/include/rte_rcu_qsbr.h:235:2: error: implicit declaration of function ârte_smp_mbâ [-Werror=implicit-function-declaration]
rte_smp_mb();
^~~~~~~~~~
Fixed by
--- a/lib/librte_rcu/rte_rcu_qsbr.h
+++ b/lib/librte_rcu/rte_rcu_qsbr.h
@@ -31,6 +31,7 @@ extern "C" {
#include <rte_memory.h>
#include <rte_lcore.h>
#include <rte_debug.h>
+#include <rte_atomic.h>
More information about the dev
mailing list