summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-09-24 21:02:13 +0200
committerDamjan Marion <dmarion@me.com>2018-09-24 20:02:48 +0000
commitedb3a9bca826ddaaf5f3c7ee83f9e474bd2a2e11 (patch)
treeb3dfaed696902a28c224e6def5e62f1ba00b900c
parent983cc7da8566fcbe2647ed2d3921e7683bd8d325 (diff)
nsim: fix multiple definitions of nsim_node
Change-Id: Iedd79eeba35fb7385c03a177f8ac7d3ddfeb6a84 Signed-off-by: Damjan Marion <damarion@cisco.com>
-rw-r--r--src/plugins/nsim/node.c2
-rw-r--r--src/plugins/nsim/nsim_input.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/nsim/node.c b/src/plugins/nsim/node.c
index 69dc9be919b..e78e74482ff 100644
--- a/src/plugins/nsim/node.c
+++ b/src/plugins/nsim/node.c
@@ -45,9 +45,9 @@ format_nsim_trace (u8 * s, va_list * args)
return s;
}
-#endif /* CLIB_MARCH_VARIANT */
vlib_node_registration_t nsim_node;
+#endif /* CLIB_MARCH_VARIANT */
#define foreach_nsim_error \
_(BUFFERED, "Packets buffered") \
diff --git a/src/plugins/nsim/nsim_input.c b/src/plugins/nsim/nsim_input.c
index 50dbcb97d6b..38c3891fd95 100644
--- a/src/plugins/nsim/nsim_input.c
+++ b/src/plugins/nsim/nsim_input.c
@@ -42,8 +42,6 @@ format_nsim_tx_trace (u8 * s, va_list * args)
}
#endif /* CLIB_MARCH_VARIANT */
-vlib_node_registration_t nsim_node;
-
#define foreach_nsim_tx_error \
_(TX, "Packets transmitted") \
_(DROPPED, "No buffer drops")