summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEyal Bari <ebari@cisco.com>2018-10-14 10:54:32 +0300
committerJohn Lo <loj@cisco.com>2018-10-14 23:01:19 +0000
commit6a86ca9627e4064e9689b3890d180cb078ec6726 (patch)
treeb9ba470bd76cc2597d7ed91520d501a6c07fc93e
parent795539326b2224e80940ad381a865ea103c777d1 (diff)
vxlan:fix ip6 tunnel deletion
Change-Id: I70fb7394f85b26f7e632d74fc31ef83597efdd16 Signed-off-by: Eyal Bari <ebari@cisco.com> (cherry picked from commit f8d5e214687c17fba000607336295e054672459d)
-rw-r--r--src/vnet/vxlan/vxlan.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/vxlan/vxlan.c b/src/vnet/vxlan/vxlan.c
index 93a4e263579..4276d6689ac 100644
--- a/src/vnet/vxlan/vxlan.c
+++ b/src/vnet/vxlan/vxlan.c
@@ -599,7 +599,8 @@ int vnet_vxlan_add_del_tunnel
if (!p)
return VNET_API_ERROR_NO_SUCH_ENTRY;
- u32 instance = vxm->tunnel_index_by_sw_if_index[p->sw_if_index];
+ u32 instance = is_ip6 ? key6.value :
+ vxm->tunnel_index_by_sw_if_index[p->sw_if_index];
vxlan_tunnel_t *t = pool_elt_at_index (vxm->tunnels, instance);
sw_if_index = t->sw_if_index;