aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongjun Ni <hongjun.ni@intel.com>2018-06-02 02:46:36 +0800
committerHongjun Ni <hongjun.ni@intel.com>2018-06-01 10:21:56 +0000
commit09397b527d3021e33fc6f10617e6a2d8ee4ea847 (patch)
tree5fe3d1c1cada2e9aea45e6814b490f85c70cded3
parent992245a6ad339c11db6883fd0c108e5995ea1609 (diff)
Harmonize vec/pool_get_aligned object sizes and alignment requestsstable/1804
Change-Id: If32a476733f2a0e6c374c2abbea9b694f9754bdd Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
-rw-r--r--nsh-plugin/nsh/nsh.h6
1 files changed, 6 insertions, 0 deletions
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