summaryrefslogtreecommitdiffstats
path: root/src/vppinfra
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-11-17 18:42:38 -0800
committerDave Barach <openvpp@barachs.net>2020-11-19 23:53:19 +0000
commitd01d2ce4498dae4cbcba65784babe91d56d4bae9 (patch)
tree6537bd4e3e5d774c3ddea01e3813169356ca6b1f /src/vppinfra
parent52dd29ff5107b7db9f3ee892d1827ff76f5d017f (diff)
svm: move chunk locks to linked list
Type: improvement We only need to protect the linked lists. Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Ie1542073f3993acfc66d99096b08bf9ecd10a49b
Diffstat (limited to 'src/vppinfra')
-rw-r--r--src/vppinfra/atomics.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vppinfra/atomics.h b/src/vppinfra/atomics.h
index ce2177df5c2..d6616a94ba3 100644
--- a/src/vppinfra/atomics.h
+++ b/src/vppinfra/atomics.h
@@ -54,4 +54,7 @@
#define clib_atomic_fetch_add_rel(a, b) __atomic_fetch_add((a), (b), __ATOMIC_RELEASE)
#define clib_atomic_fetch_sub_rel(a, b) __atomic_fetch_sub((a), (b), __ATOMIC_RELEASE)
+#define clib_atomic_fetch_add_relax(a, b) __atomic_fetch_add((a), (b), __ATOMIC_RELAXED)
+#define clib_atomic_fetch_sub_relax(a, b) __atomic_fetch_sub((a), (b), __ATOMIC_RELAXED)
+
#endif /* included_clib_atomics_h */