aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Lo <loj@cisco.com>2016-08-09 19:20:51 -0400
committerJohn Lo <loj@cisco.com>2016-08-09 19:20:51 -0400
commit13e3d450975f48cac2c2e4172f2945deedf30f2d (patch)
tree0a5e38b683547f12a74996eb5456bcac1e006d29
parent3a9b5d97ca2ea400c4e4ed8231915dbca79c430f (diff)
VPP-314: Vxlan wrong name of decap node
Fix VXLAN decap node counter update using the correct node index. Change-Id: Iebfd2bfd97747bc6d0758f4c5829e23ef9899d74 Signed-off-by: John Lo <loj@cisco.com>
-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);