summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2024-01-17 12:00:16 +0000
committerDamjan Marion <dmarion@0xa5.net>2024-01-19 12:32:55 +0000
commitc60266d1ea9604f4651092d79bed8ec0b571544a (patch)
tree72c4854f7faead3e9a6d07c4a7c5fc85a97e6f21 /src/plugins
parentc3b416c49253bcf3223d2aec8c5ca06f0c78e6f9 (diff)
memif: use VPP cacheline size for memif when compiling within VPP
Type: make memif.h file is independent code which can be used outside of VPP. Hence it uses its own cacheline size MACRO. This patch sets the value of MEMIF_CACHELINE_SIZE in the cmake file for memif plugin to VPP_CACHE_LINE_SIZE. Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com> Change-Id: I8185e78897f4571f1a0430dd7e758816e127444c
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/memif/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/memif/CMakeLists.txt b/src/plugins/memif/CMakeLists.txt
index b86d30adb97..4bbf6ba39db 100644
--- a/src/plugins/memif/CMakeLists.txt
+++ b/src/plugins/memif/CMakeLists.txt
@@ -33,3 +33,5 @@ add_vpp_plugin(memif
INSTALL_HEADERS
memif.h
)
+
+add_compile_definitions(MEMIF_CACHELINE_SIZE=${VPP_CACHE_LINE_SIZE})