6 #ifndef _MEMPOOL_PRIVATE_H_
7 #define _MEMPOOL_PRIVATE_H_
28 #define MEMPOOL_PG_SHIFT_MAX (sizeof(uintptr_t) * CHAR_BIT - 1)
30 #ifndef CNE_MEMPOOL_ALIGN
31 #define CNE_MEMPOOL_ALIGN CNE_CACHE_LINE_SIZE
34 #define CNE_MEMPOOL_ALIGN_MASK (CNE_MEMPOOL_ALIGN - 1)
46 } __cne_cache_aligned;
61 void *
objs[MEMPOOL_CACHE_MAX_SIZE * 3];
62 } __cne_cache_aligned;
71 uint32_t populated_sz;
75 } __cne_cache_aligned;
78 #define __MEMPOOL_STAT_ADD(mp, name, n) do { \
79 int __uid = cne_id(); \
80 mp->stats[__uid].name##_objs += n; \
81 mp->stats[__uid].name##_bulk += 1; \
void * objs[MEMPOOL_CACHE_MAX_SIZE *3]
uint64_t get_success_objs
uint64_t get_success_bulk