From 09397b527d3021e33fc6f10617e6a2d8ee4ea847 Mon Sep 17 00:00:00 2001 From: Hongjun Ni Date: Sat, 2 Jun 2018 02:46:36 +0800 Subject: Harmonize vec/pool_get_aligned object sizes and alignment requests Change-Id: If32a476733f2a0e6c374c2abbea9b694f9754bdd Signed-off-by: Hongjun Ni --- nsh-plugin/nsh/nsh.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nsh-plugin/nsh/nsh.h b/nsh-plugin/nsh/nsh.h index d763f87..1b14567 100644 --- a/nsh-plugin/nsh/nsh.h +++ b/nsh-plugin/nsh/nsh.h @@ -34,6 +34,9 @@ typedef struct { * rewrite and rewrite_size used to support varied nsh header */ typedef struct { + /* Required for pool_get_aligned */ + CLIB_CACHE_LINE_ALIGN_MARK (cacheline0); + nsh_base_header_t nsh_base; union { nsh_md1_data_t md1_data; @@ -54,6 +57,9 @@ typedef struct { } nsh_add_del_entry_args_t; typedef struct { + /* Required for pool_get_aligned */ + CLIB_CACHE_LINE_ALIGN_MARK (cacheline0); + /** Key for nsh_header_t entry: 24bit NSP 8bit NSI */ u32 nsp_nsi; /** Key for nsh_header_t entry to map to. : 24bit NSP 8bit NSI -- cgit 1.2.3-korg