diff options
Diffstat (limited to 'src/vppinfra')
-rw-r--r-- | src/vppinfra/cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vppinfra/cache.h b/src/vppinfra/cache.h index e8e89ba8556..e2c406d8432 100644 --- a/src/vppinfra/cache.h +++ b/src/vppinfra/cache.h @@ -58,6 +58,7 @@ #define CLIB_CACHE_LINE_BYTES (1 << CLIB_LOG2_CACHE_LINE_BYTES) #define CLIB_CACHE_LINE_ALIGN_MARK(mark) u8 mark[0] __attribute__((aligned(CLIB_CACHE_LINE_BYTES))) +#define CLIB_CACHE_LINE_ROUND(x) ((x + CLIB_CACHE_LINE_BYTES - 1) & ~(CLIB_CACHE_LINE_BYTES - 1)) /* Default cache line fill buffers. */ #ifndef CLIB_N_PREFETCHES |