Change key.src=a->dst.as_u32 within vnet_nsh_vxlan_gpe_add_del_tunnel 06/706/2
authorHongjun Ni <hongjun.ni@intel.com>
Thu, 7 Apr 2016 00:47:08 +0000 (17:47 -0700)
committerGerrit Code Review <gerrit@fd.io>
Thu, 7 Apr 2016 15:01:36 +0000 (15:01 +0000)
Change-Id: Ica062e532d116cc1806d73f2fa85db89402928a4
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
vnet/vnet/nsh-vxlan-gpe/nsh_vxlan_gpe.c

index e0661d2..8cc46d3 100644 (file)
@@ -238,7 +238,7 @@ int vnet_nsh_vxlan_gpe_add_del_tunnel
   nsh_vxlan_gpe_tunnel_key_t key, *key_copy;
   hash_pair_t *hp;
   
-  key.src = a->src.as_u32; 
+  key.src = a->dst.as_u32; /* decap src in key is encap dst in config */
   key.vni = clib_host_to_net_u32 (a->vni << 8);
   key.spi_si = clib_host_to_net_u32(a->spi_si);