summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/pool.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2022-02-25 00:19:26 +0100
committerFlorin Coras <florin.coras@gmail.com>2022-03-14 17:55:19 +0000
commiteb63caea2aacb60e05f956f0720d95267398e3ff (patch)
treea7f96a8d72fdc82e10a743f66ad47ed146623d4d /src/vppinfra/pool.h
parenta9fe20f4b8f7a9bd65cc8ee1b6a0204af7fc3627 (diff)
vppinfra: don't account vec_header_t size twice in the pool header
Type: fix Change-Id: I298d2a5067f7949002e6c010f892553f1eb9f477 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra/pool.h')
-rw-r--r--src/vppinfra/pool.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vppinfra/pool.h b/src/vppinfra/pool.h
index 9dd05a382ab..284e23d8e0a 100644
--- a/src/vppinfra/pool.h
+++ b/src/vppinfra/pool.h
@@ -68,8 +68,8 @@ typedef struct
} pool_header_t;
/** Align pool header so that pointers are naturally aligned. */
-#define pool_aligned_header_bytes \
- vec_aligned_header_bytes (sizeof (pool_header_t), sizeof (void *))
+#define pool_aligned_header_bytes \
+ round_pow2 (sizeof (pool_header_t), sizeof (void *))
/** Get pool header from user pool pointer */
always_inline pool_header_t *