diff options
author | Matias Elo <matias.elo@nokia.com> | 2021-07-29 10:27:53 +0300 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2021-08-19 15:57:23 +0300 |
commit | 1c27876af5f1cfbfd0fb2f323bd7d8aca4f630f6 (patch) | |
tree | 20f0d066e3fc2de445aa09440ed5e317b3ff014e /platform/linux-dpdk/include | |
parent | b7a02bb136e5c15bac38087bf5608a2a0aaa39c6 (diff) |
Port 4210aeaca "linux-gen: pool: prepare pool type usage with pool_ext"
Port original commit from linux-generic.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
Diffstat (limited to 'platform/linux-dpdk/include')
-rw-r--r-- | platform/linux-dpdk/include/odp_pool_internal.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/platform/linux-dpdk/include/odp_pool_internal.h b/platform/linux-dpdk/include/odp_pool_internal.h index 0db8cf056..b5ce4cdd9 100644 --- a/platform/linux-dpdk/include/odp_pool_internal.h +++ b/platform/linux-dpdk/include/odp_pool_internal.h @@ -1,4 +1,5 @@ /* Copyright (c) 2013-2018, Linaro Limited + * Copyright (c) 2021, Nokia * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause @@ -61,11 +62,16 @@ typedef struct ODP_ALIGNED_CACHE { #else odp_spinlock_t lock ODP_ALIGNED_CACHE; #endif + odp_pool_t pool_hdl; + uint32_t pool_idx; + + /* Everything under this mark is memset() to zero on pool create */ + uint8_t memset_mark; + uint8_t type; + uint8_t pool_ext; char name[ODP_POOL_NAME_LEN]; odp_pool_param_t params; - odp_pool_t pool_hdl; struct rte_mempool *rte_mempool; - uint32_t pool_idx; uint32_t seg_len; } pool_t; |