X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Fnat%2Fnat_det_out2in.c;h=45fba18b2485676363a413aa682cbb4b3baf7be9;hb=e69e423743630b52e13db58c3f0229df8a46c07f;hp=9e8ba27285bd7939d1d6205fdcf840a86be89b8b;hpb=7dcb80a202f1ce075434a17ace3334a7a311e84e;p=vpp.git diff --git a/src/plugins/nat/nat_det_out2in.c b/src/plugins/nat/nat_det_out2in.c index 9e8ba27285b..45fba18b248 100644 --- a/src/plugins/nat/nat_det_out2in.c +++ b/src/plugins/nat/nat_det_out2in.c @@ -62,8 +62,6 @@ static char *nat_det_out2in_error_strings[] = { #undef _ }; -vlib_node_registration_t snat_det_out2in_node; - static u8 * format_nat_det_out2in_trace (u8 * s, va_list * args) { @@ -78,6 +76,7 @@ format_nat_det_out2in_trace (u8 * s, va_list * args) return s; } +#ifndef CLIB_MARCH_VARIANT /** * Get address and port values to be used for ICMP packet translation * and create session if needed @@ -217,10 +216,11 @@ out: *(snat_det_map_t **) e = dm0; return next0; } +#endif -static uword -snat_det_out2in_node_fn (vlib_main_t * vm, - vlib_node_runtime_t * node, vlib_frame_t * frame) +VLIB_NODE_FN (snat_det_out2in_node) (vlib_main_t * vm, + vlib_node_runtime_t * node, + vlib_frame_t * frame) { u32 n_left_from, *from, *to_next; nat_det_out2in_next_t next_index; @@ -680,7 +680,7 @@ snat_det_out2in_node_fn (vlib_main_t * vm, vlib_put_next_frame (vm, node, next_index, n_left_to_next); } - vlib_node_increment_counter (vm, snat_det_out2in_node.index, + vlib_node_increment_counter (vm, sm->det_out2in_node_index, NAT_DET_OUT2IN_ERROR_OUT2IN_PACKETS, pkts_processed); return frame->n_vectors; @@ -688,7 +688,6 @@ snat_det_out2in_node_fn (vlib_main_t * vm, /* *INDENT-OFF* */ VLIB_REGISTER_NODE (snat_det_out2in_node) = { - .function = snat_det_out2in_node_fn, .name = "nat44-det-out2in", .vector_size = sizeof (u32), .format_trace = format_nat_det_out2in_trace, @@ -706,8 +705,6 @@ VLIB_REGISTER_NODE (snat_det_out2in_node) = { }; /* *INDENT-ON* */ -VLIB_NODE_FUNCTION_MULTIARCH (snat_det_out2in_node, snat_det_out2in_node_fn); - /* * fd.io coding-style-patch-verification: ON *