[5/6] linux-dpdk: pool: use the right macro for name length check

Message ID 1468857314-12308-6-git-send-email-zoltan.kiss@linaro.org
State New
Headers show

Commit Message

Zoltan Kiss July 18, 2016, 3:55 p.m.
Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
---
 platform/linux-dpdk/include/odp_pool_internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Zoltan Kiss July 21, 2016, 3:20 p.m. | #1
This patch needs to be swapped to another one, as the final fix for this 
problem will be different. I'll post it later on

On 18/07/16 16:55, Zoltan Kiss wrote:
> Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
> ---
>  platform/linux-dpdk/include/odp_pool_internal.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/platform/linux-dpdk/include/odp_pool_internal.h b/platform/linux-dpdk/include/odp_pool_internal.h
> index ee0a5d1..2fd8f1e 100644
> --- a/platform/linux-dpdk/include/odp_pool_internal.h
> +++ b/platform/linux-dpdk/include/odp_pool_internal.h
> @@ -33,7 +33,7 @@ extern "C" {
>  #include <rte_mempool.h>
>  #include <rte_memzone.h>
>
> -ODP_STATIC_ASSERT(ODP_POOL_NAME_LEN == RTE_MEMZONE_NAMESIZE,
> +ODP_STATIC_ASSERT(ODP_POOL_NAME_LEN == RTE_MEMPOOL_NAMESIZE,
>  		  "ERROR: Pool name sizes doesn't match");
>
>  /* Use ticketlock instead of spinlock */
>

Patch hide | download patch | download mbox

diff --git a/platform/linux-dpdk/include/odp_pool_internal.h b/platform/linux-dpdk/include/odp_pool_internal.h
index ee0a5d1..2fd8f1e 100644
--- a/platform/linux-dpdk/include/odp_pool_internal.h
+++ b/platform/linux-dpdk/include/odp_pool_internal.h
@@ -33,7 +33,7 @@  extern "C" {
 #include <rte_mempool.h>
 #include <rte_memzone.h>
 
-ODP_STATIC_ASSERT(ODP_POOL_NAME_LEN == RTE_MEMZONE_NAMESIZE,
+ODP_STATIC_ASSERT(ODP_POOL_NAME_LEN == RTE_MEMPOOL_NAMESIZE,
 		  "ERROR: Pool name sizes doesn't match");
 
 /* Use ticketlock instead of spinlock */