API refactoring : vhost_user
[vpp.git] / vlib / vlib / node.c
index 23f7ea0..c419a13 100644 (file)
@@ -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)