diff options
Diffstat (limited to 'platform/linux-generic/include/odp_pool_internal.h')
-rw-r--r-- | platform/linux-generic/include/odp_pool_internal.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/linux-generic/include/odp_pool_internal.h b/platform/linux-generic/include/odp_pool_internal.h index 201dbebf9..1c5b51c3d 100644 --- a/platform/linux-generic/include/odp_pool_internal.h +++ b/platform/linux-generic/include/odp_pool_internal.h @@ -18,6 +18,7 @@ extern "C" { #endif +#include <odp/api/atomic.h> #include <odp/api/shared_memory.h> #include <odp/api/ticketlock.h> #include <odp/api/align.h> @@ -32,7 +33,7 @@ extern "C" { typedef struct ODP_ALIGNED_CACHE pool_cache_t { /* Number of buffers in cache */ - uint32_t cache_num; + odp_atomic_u32_t cache_num; /* Cached buffers */ _odp_event_hdr_t *event_hdr[CONFIG_POOL_CACHE_MAX_SIZE]; @@ -91,6 +92,7 @@ typedef struct pool_t { uint8_t *uarea_base_addr; odp_pool_type_t type_2; odp_pool_ext_param_t ext_param; + uint32_t ext_head_offset; uint32_t skipped_blocks; uint8_t mem_from_huge_pages; const struct _odp_pool_mem_src_ops_t *mem_src_ops; |