diff options
author | Hongjun Ni <hongjun.ni@intel.com> | 2016-04-06 16:20:22 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2016-04-08 14:38:43 +0000 |
commit | b2cdd2f5f040dc45cb54d2d3fc2dedc19833fcf9 (patch) | |
tree | 250b8fa56cecdbd238d96c68ed36495d88791daa /vnet/vnet/vxlan/encap.c | |
parent | 639b4bded649dd510b7c1c288bda413ce1d98613 (diff) |
Add Rx and Tx statistics within nsh-vxlan-gpe node
PatchSet2: Modify the code according to review comments.
PatchSet3: modify sw_if_index1 in encap.c.
Change-Id: Ic4d3ee19a0ba0fa10568e570a79a3cb85cfbc9ab
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
Diffstat (limited to 'vnet/vnet/vxlan/encap.c')
-rw-r--r-- | vnet/vnet/vxlan/encap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vnet/vnet/vxlan/encap.c b/vnet/vnet/vxlan/encap.c index dfa3bf7707c..90854ad097e 100644 --- a/vnet/vnet/vxlan/encap.c +++ b/vnet/vnet/vxlan/encap.c @@ -246,7 +246,7 @@ vxlan_encap (vlib_main_t * vm, and admin-down tunnel where packets are dropped. It is not worthwhile to check for this rare case and affect normal path performance. */ if (PREDICT_FALSE ((sw_if_index0 != stats_sw_if_index) || - (sw_if_index0 != stats_sw_if_index))) + (sw_if_index1 != stats_sw_if_index))) { stats_n_packets -= 2; stats_n_bytes -= len0 + len1; |