aboutsummaryrefslogtreecommitdiffstats
path: root/vlib/vlib/node.c
diff options
context:
space:
mode:
authorChristophe Fontaine <christophe.fontaine@qosmos.com>2016-12-19 14:41:52 +0100
committerChristophe Fontaine <christophe.fontaine@qosmos.com>2016-12-21 15:16:44 +0100
commit33e81950cf937ab081c7c591f06e8871b0f00e93 (patch)
tree6589eb085e89c2631b9dc7dcc3126a66c368f604 /vlib/vlib/node.c
parent7e9e6e1f1c1b9f41547899aeff5a05a5a7421103 (diff)
aarch64 compatibility
- lb plugin: compatibility for non x86 platforms. - Add vector_neon.h to support simd instructions, especially 'u16x8_zero_byte_mask' used in "vnet/vnet/ip/ip4_source_and_port_range_check.c" Change-Id: I395546b0e2d5748e73daffa51269a200ef8d1235 Signed-off-by: Christophe Fontaine <christophe.fontaine@qosmos.com>
Diffstat (limited to 'vlib/vlib/node.c')
-rw-r--r--vlib/vlib/node.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vlib/vlib/node.c b/vlib/vlib/node.c
index 23f7ea0239e..c419a13a487 100644
--- a/vlib/vlib/node.c
+++ b/vlib/vlib/node.c
@@ -433,9 +433,9 @@ register_node (vlib_main_t * vm, vlib_node_registration_t * r)
for (i = 0; i < vec_len (rt->errors); i++)
rt->errors[i] = vlib_error_set (n->index, i);
- STATIC_ASSERT (sizeof (vlib_node_runtime_t) == 2 * CLIB_CACHE_LINE_BYTES,
- "Size of vlib_node_runtime_t must be equal to 2 cachelines");
- ASSERT (vec_len (n->runtime_data) <= sizeof (vlib_node_runtime_t) -
+ STATIC_ASSERT_SIZEOF (vlib_node_runtime_t, 128);
+ ASSERT (vec_len (n->runtime_data) <=
+ sizeof (vlib_node_runtime_t) -
STRUCT_OFFSET_OF (vlib_node_runtime_t, runtime_data));
if (vec_len (n->runtime_data) > 0)