Typos. A bunch of typos I've been collecting.
[vpp.git] / src / vnet / adj / adj_nsh.c
index 128570b..19851b1 100644 (file)
@@ -17,7 +17,9 @@
 #include <vnet/adj/adj_nsh.h>
 #include <vnet/ip/ip.h>
 
+#ifndef CLIB_MARCH_VARIANT
 nsh_main_dummy_t nsh_main_dummy;
+#endif /* CLIB_MARCH_VARIANT */
 
 /**
  * @brief Trace data for a NSH Midchain
@@ -104,14 +106,16 @@ adj_nsh_rewrite_inline (vlib_main_t * vm,
                               adj0[0].rewrite_header.max_l3_packet_bytes)))
             {
                 /* Don't adjust the buffer for ttl issue; icmp-error node wants
-                 * to see the IP headerr */
+                 * to see the IP header */
                 p0->current_data -= rw_len0;
                 p0->current_length += rw_len0;
                 tx_sw_if_index0 = adj0[0].rewrite_header.sw_if_index;
 
                 if (is_midchain)
                 {
-                    adj0->sub_type.midchain.fixup_func(vm, adj0, p0);
+                    adj0->sub_type.midchain.fixup_func(
+                        vm, adj0, p0,
+                        adj0->sub_type.midchain.fixup_data);
                 }
 
                 vnet_buffer (p0)->sw_if_index[VLIB_TX] = tx_sw_if_index0;
@@ -147,16 +151,14 @@ adj_nsh_rewrite_inline (vlib_main_t * vm,
     return frame->n_vectors;
 }
 
-static uword
-adj_nsh_rewrite (vlib_main_t * vm,
+VLIB_NODE_FN (adj_nsh_rewrite_node) (vlib_main_t * vm,
                 vlib_node_runtime_t * node,
                 vlib_frame_t * frame)
 {
     return adj_nsh_rewrite_inline (vm, node, frame, 0);
 }
 
-static uword
-adj_nsh_midchain (vlib_main_t * vm,
+VLIB_NODE_FN (adj_nsh_midchain_node) (vlib_main_t * vm,
                  vlib_node_runtime_t * node,
                  vlib_frame_t * frame)
 {
@@ -164,7 +166,6 @@ adj_nsh_midchain (vlib_main_t * vm,
 }
 
 VLIB_REGISTER_NODE (adj_nsh_rewrite_node) = {
-    .function = adj_nsh_rewrite,
     .name = "adj-nsh-rewrite",
     .vector_size = sizeof (u32),
 
@@ -176,10 +177,7 @@ VLIB_REGISTER_NODE (adj_nsh_rewrite_node) = {
     },
 };
 
-VLIB_NODE_FUNCTION_MULTIARCH (adj_nsh_rewrite_node, adj_nsh_rewrite)
-
 VLIB_REGISTER_NODE (adj_nsh_midchain_node) = {
-    .function = adj_nsh_midchain,
     .name = "adj-nsh-midchain",
     .vector_size = sizeof (u32),
 
@@ -191,8 +189,6 @@ VLIB_REGISTER_NODE (adj_nsh_midchain_node) = {
     },
 };
 
-VLIB_NODE_FUNCTION_MULTIARCH (adj_nsh_midchain_node, adj_nsh_midchain)
-
 /* Built-in ip4 tx feature path definition */
 /* *INDENT-OFF* */
 VNET_FEATURE_ARC_INIT (nsh_output, static) =