Fix decap's second-loop failure issue within nsh-vxlan-gpe 76/876/2
authorHongjun Ni <hongjun.ni@intel.com>
Mon, 25 Apr 2016 18:15:53 +0000 (11:15 -0700)
committerKeith Burns <alagalah@gmail.com>
Tue, 26 Apr 2016 12:32:04 +0000 (12:32 +0000)
Change-Id: I7c5c93b6490baa05b9b203b6d065d9c31f36d531
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
vnet/vnet/nsh-vxlan-gpe/decap.c

index a5a85c6..76003e6 100644 (file)
@@ -288,9 +288,9 @@ nsh_vxlan_gpe_input (vlib_main_t * vm,
               nsh_vxlan_gpe_tunnel_t  * next_t1;
               nsh_vxlan_gpe_tunnel_key_t next_key1;
 
-              next_key1.src = iuvn0->ip4.dst_address.as_u32;
-              next_key1.vni = iuvn0->vxlan.vni_res;
-              next_key1.spi_si = iuvn0->nsh.spi_si;
+              next_key1.src = iuvn1->ip4.dst_address.as_u32;
+              next_key1.vni = iuvn1->vxlan.vni_res;
+              next_key1.spi_si = iuvn1->nsh.spi_si;
               next_key1.pad = 0;
 
               next_p1 = hash_get_mem (ngm->nsh_vxlan_gpe_tunnel_by_key, &next_key1);