aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-dpdk/odp_shared_memory.c
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2022-06-06 14:05:05 +0300
committerMatias Elo <matias.elo@nokia.com>2022-06-20 16:13:53 +0300
commit7b8debc5093683d2bfde0c226e793e11276540ce (patch)
tree7494824cdfc45e9a0da36453c208017db8a97a13 /platform/linux-dpdk/odp_shared_memory.c
parent51fef12d7f7b436816bd8eb97b481a4138fa0023 (diff)
Port 82d0da39f "linux-gen: macros: prefix implementation internal macro names"
Port original commit from linux-generic. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
Diffstat (limited to 'platform/linux-dpdk/odp_shared_memory.c')
-rw-r--r--platform/linux-dpdk/odp_shared_memory.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/linux-dpdk/odp_shared_memory.c b/platform/linux-dpdk/odp_shared_memory.c
index 645ee49ef..9e2151a0d 100644
--- a/platform/linux-dpdk/odp_shared_memory.c
+++ b/platform/linux-dpdk/odp_shared_memory.c
@@ -13,9 +13,9 @@
#include <odp/api/shared_memory.h>
#include <odp/api/spinlock.h>
-#include <odp_align_internal.h>
#include <odp_config_internal.h>
#include <odp_debug_internal.h>
+#include <odp_macros_internal.h>
#include <odp_shm_internal.h>
#include <string.h>
@@ -266,8 +266,8 @@ odp_shm_t odp_shm_reserve(const char *name, uint64_t size, uint64_t align,
}
/* DPDK requires alignment to be power of two */
- if (!rte_is_power_of_2(align))
- align = ROUNDUP_POWER2_U32(align);
+ if (!_ODP_CHECK_IS_POWER2(align))
+ align = _ODP_ROUNDUP_POWER2_U32(align);
odp_spinlock_lock(&shm_tbl->lock);