Add key.pad=0 within vnet_nsh_vxlan_gpe_add_del_tunnel
[vpp.git] / vnet / vnet / nsh-vxlan-gpe / nsh_vxlan_gpe.c
index e0661d2..5f49a53 100644 (file)
@@ -238,9 +238,10 @@ 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);
+  key.pad = 0;
 
   p = hash_get_mem (ngm->nsh_vxlan_gpe_tunnel_by_key, &key);