Harmonize vec/pool_get_aligned object sizes and alignment requests 43/12843/1 stable/1804
authorHongjun Ni <[email protected]>
Fri, 1 Jun 2018 18:46:36 +0000 (02:46 +0800)
committerHongjun Ni <[email protected]>
Fri, 1 Jun 2018 10:21:56 +0000 (10:21 +0000)
Change-Id: If32a476733f2a0e6c374c2abbea9b694f9754bdd
Signed-off-by: Hongjun Ni <[email protected]>
nsh-plugin/nsh/nsh.h

index d763f87..1b14567 100644 (file)
@@ -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