aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vnet/vnet/vxlan/decap.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/vnet/vnet/vxlan/decap.c b/vnet/vnet/vxlan/decap.c
index 899b3318bb1..2b74ce22dfe 100644
--- a/vnet/vnet/vxlan/decap.c
+++ b/vnet/vnet/vxlan/decap.c
@@ -19,7 +19,8 @@
#include <vnet/pg/pg.h>
#include <vnet/vxlan/vxlan.h>
-vlib_node_registration_t vxlan_input_node;
+vlib_node_registration_t vxlan4_input_node;
+vlib_node_registration_t vxlan6_input_node;
typedef struct {
u32 next_index;
@@ -493,7 +494,8 @@ vxlan_input (vlib_main_t * vm,
vlib_put_next_frame (vm, node, next_index, n_left_to_next);
}
/* Do we still need this now that tunnel tx stats is kept? */
- vlib_node_increment_counter (vm, vxlan_input_node.index,
+ vlib_node_increment_counter (vm, is_ip4?
+ vxlan4_input_node.index:vxlan6_input_node.index,
VXLAN_ERROR_DECAPSULATED,
pkts_decapsulated);