summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vnet/vnet/sr/sr.h2
-rw-r--r--vnet/vnet/sr/sr_replicate.c4
2 files changed, 1 insertions, 5 deletions
diff --git a/vnet/vnet/sr/sr.h b/vnet/vnet/sr/sr.h
index 321f49a7321..448d29318ce 100644
--- a/vnet/vnet/sr/sr.h
+++ b/vnet/vnet/sr/sr.h
@@ -188,7 +188,7 @@ format_function_t format_ip6_sr_header_with_length;
vlib_node_registration_t ip6_sr_input_node;
#if DPDK > 0
-vlib_node_registration_t sr_replicate_node;
+extern vlib_node_registration_t sr_replicate_node;
#endif /* DPDK */
int ip6_sr_add_del_tunnel (ip6_sr_add_del_tunnel_args_t * a);
diff --git a/vnet/vnet/sr/sr_replicate.c b/vnet/vnet/sr/sr_replicate.c
index 7486d7c60a1..80d04ba6d75 100644
--- a/vnet/vnet/sr/sr_replicate.c
+++ b/vnet/vnet/sr/sr_replicate.c
@@ -36,8 +36,6 @@ typedef struct {
sr_replicate_main_t sr_replicate_main;
-vlib_node_registration_t sr_replicate_node;
-
typedef struct {
ip6_address_t src, dst;
@@ -76,8 +74,6 @@ static u8 * format_sr_replicate_trace (u8 * s, va_list * args)
}
-vlib_node_registration_t sr_replicate_node;
-
#define foreach_sr_replicate_error \
_(REPLICATED, "sr packets replicated") \
_(NO_BUFFERS, "error allocating buffers for replicas") \