summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorZhiyong Yang <zhiyong.yang@intel.com>2018-08-17 04:36:50 -0400
committerNeale Ranns <nranns@cisco.com>2018-08-20 12:13:18 +0000
commit3575abb79c65fdada241e3dc879e000c0fbe9b55 (patch)
tree367764b7927d8c36141a2bd0249b0617e67e329f /src
parent9f540ed348e3a3ef01951208211603a07fd574d6 (diff)
vxlan_gpe_encap: fix packet len error
Change-Id: I294be184764b45777d6e5e44f5d742b2c8732de4 Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/vnet/vxlan-gpe/encap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/vxlan-gpe/encap.c b/src/vnet/vxlan-gpe/encap.c
index c97972bc4e2..e62a84ed59f 100644
--- a/src/vnet/vxlan-gpe/encap.c
+++ b/src/vnet/vxlan-gpe/encap.c
@@ -242,7 +242,7 @@ vxlan_gpe_encap (vlib_main_t * vm,
pkts_encapsulated += 2;
len0 = vlib_buffer_length_in_chain (vm, b0);
- len1 = vlib_buffer_length_in_chain (vm, b0);
+ len1 = vlib_buffer_length_in_chain (vm, b1);
stats_n_packets += 2;
stats_n_bytes += len0 + len1;