diff options
author | Matias Elo <matias.elo@nokia.com> | 2022-06-20 17:40:58 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-20 17:40:58 +0300 |
commit | 6cf762f28a96dc61db44697b9254327e41580a7f (patch) | |
tree | a1de51fcf09a60bd14c260bb7c5dd44630193828 /platform/linux-dpdk/odp_queue_basic.c | |
parent | 929cd75ba6654e5f635295953cbb20ffdca20c3e (diff) | |
parent | 6d365eb66573c4cd7fab868bd69395cc9acdc123 (diff) |
Merge ODP v1.37.0.0v1.37.0.0_DPDK_19.11
Merge ODP linux-generic v1.37.0.0 into linux-dpdk
Diffstat (limited to 'platform/linux-dpdk/odp_queue_basic.c')
-rw-r--r-- | platform/linux-dpdk/odp_queue_basic.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/platform/linux-dpdk/odp_queue_basic.c b/platform/linux-dpdk/odp_queue_basic.c index 5f07bb620..c6970930d 100644 --- a/platform/linux-dpdk/odp_queue_basic.c +++ b/platform/linux-dpdk/odp_queue_basic.c @@ -18,6 +18,7 @@ #include <odp_config_internal.h> #include <odp_packet_io_internal.h> #include <odp_debug_internal.h> +#include <odp_macros_internal.h> #include <odp/api/hints.h> #include <odp/api/sync.h> #include <odp/api/plat/sync_inlines.h> @@ -995,11 +996,11 @@ static int queue_init(queue_entry_t *queue, const char *name, } /* Ring size must larger than queue_size */ - if (CHECK_IS_POWER2(queue_size)) + if (_ODP_CHECK_IS_POWER2(queue_size)) queue_size++; /* Round up if not already a power of two */ - queue_size = ROUNDUP_POWER2_U32(queue_size); + queue_size = _ODP_ROUNDUP_POWER2_U32(queue_size); /* Single-producer / single-consumer plain queue has simple and * lock-free implementation */ |