From 3575abb79c65fdada241e3dc879e000c0fbe9b55 Mon Sep 17 00:00:00 2001 From: Zhiyong Yang Date: Fri, 17 Aug 2018 04:36:50 -0400 Subject: vxlan_gpe_encap: fix packet len error Change-Id: I294be184764b45777d6e5e44f5d742b2c8732de4 Signed-off-by: Zhiyong Yang --- src/vnet/vxlan-gpe/encap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vnet/vxlan-gpe') 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; -- cgit 1.2.3-korg