return s;
}
-vlib_node_registration_t ip6_add_from_cache_hbh_node;
-
#define foreach_ip6_add_from_cache_hbh_error \
_(PROCESSED, "Pkts w/ added ip6 hop-by-hop options")
} ip6_ioam_cache_input_next_t;
-static uword
-ip6_add_from_cache_hbh_node_fn (vlib_main_t * vm,
- vlib_node_runtime_t * node,
- vlib_frame_t * frame)
+VLIB_NODE_FN (ip6_add_from_cache_hbh_node) (vlib_main_t * vm,
+ vlib_node_runtime_t * node,
+ vlib_frame_t * frame)
{
ioam_cache_main_t *cm = &ioam_cache_main;
u32 n_left_from, *from, *to_next;
vlib_put_next_frame (vm, node, next_index, n_left_to_next);
}
- vlib_node_increment_counter (vm, ip6_add_from_cache_hbh_node.index,
+ vlib_node_increment_counter (vm, cm->ip6_add_from_cache_hbh_node_index,
IP6_ADD_FROM_CACHE_HBH_ERROR_PROCESSED,
processed);
return frame->n_vectors;
/* *INDENT-OFF* */
VLIB_REGISTER_NODE (ip6_add_from_cache_hbh_node) =
{
- .function = ip6_add_from_cache_hbh_node_fn,
.name = "ip6-add-from-cache-hop-by-hop",
.vector_size = sizeof (u32),
.format_trace = format_ip6_add_from_cache_hbh_trace,
};
/* *INDENT-ON* */
-VLIB_NODE_FUNCTION_MULTIARCH (ip6_add_from_cache_hbh_node,
- ip6_add_from_cache_hbh_node_fn)
/*
* fd.io coding-style-patch-verification: ON
*
return s;
}
-vlib_node_registration_t ip6_reset_ts_hbh_node;
-
#define foreach_ip6_reset_ts_hbh_error \
_(PROCESSED, "iOAM Syn/Ack Pkts processed") \
_(SAVED, "iOAM Syn Pkts state saved") \
} ip6_ioam_cache_ts_input_next_t;
-static uword
-ip6_reset_ts_hbh_node_fn (vlib_main_t * vm,
- vlib_node_runtime_t * node, vlib_frame_t * frame)
+VLIB_NODE_FN (ip6_reset_ts_hbh_node) (vlib_main_t * vm,
+ vlib_node_runtime_t * node,
+ vlib_frame_t * frame)
{
ioam_cache_main_t *cm = &ioam_cache_main;
u32 n_left_from, *from, *to_next;
vlib_put_next_frame (vm, node, next_index, n_left_to_next);
}
- vlib_node_increment_counter (vm, ip6_reset_ts_hbh_node.index,
+ vlib_node_increment_counter (vm, cm->ip6_reset_ts_hbh_node_index,
IP6_RESET_TS_HBH_ERROR_PROCESSED, processed);
- vlib_node_increment_counter (vm, ip6_reset_ts_hbh_node.index,
+ vlib_node_increment_counter (vm, cm->ip6_reset_ts_hbh_node_index,
IP6_RESET_TS_HBH_ERROR_SAVED, cache_ts_added);
return frame->n_vectors;
/* *INDENT-OFF* */
VLIB_REGISTER_NODE (ip6_reset_ts_hbh_node) =
{
- .function = ip6_reset_ts_hbh_node_fn,
.name = "ip6-add-syn-hop-by-hop",
.vector_size = sizeof (u32),
.format_trace = format_ip6_reset_ts_hbh_trace,
},
};
-VLIB_NODE_FUNCTION_MULTIARCH (ip6_reset_ts_hbh_node, ip6_reset_ts_hbh_node_fn)
/* *INDENT-ON* */
+#ifndef CLIB_MARCH_VARIANT
vlib_node_registration_t ioam_cache_ts_timer_tick_node;
+#endif /* CLIB_MARCH_VARIANT */
typedef struct
{
#undef _
};
+#ifndef CLIB_MARCH_VARIANT
void
ioam_cache_ts_timer_node_enable (vlib_main_t * vm, u8 enable)
{
ioam_cache_ts_timer_tick_node.index,
IOAM_CACHE_TS_TIMER_TICK_ERROR_TIMER, count);
}
+#endif /* CLIB_MARCH_VARIANT */
static uword
ioam_cache_ts_timer_tick_node_fn (vlib_main_t * vm,