From: Eyal Bari Date: Thu, 6 Apr 2017 00:26:59 +0000 (+0300) Subject: VXLAN:fix tunnel delete not returning sw_if_index X-Git-Tag: v17.07-rc1~355 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F64%2F6064%2F2;p=vpp.git VXLAN:fix tunnel delete not returning sw_if_index when tunnel is deleted reply should include the tunnel's sw_if_index instead of ~0 Change-Id: Ie5e04f4feab9cf2c90f0e155ec0fb9ca839a956d Signed-off-by: Eyal Bari --- diff --git a/src/vnet/vxlan/vxlan.c b/src/vnet/vxlan/vxlan.c index 58c7becb5d7..61cb13c97d4 100644 --- a/src/vnet/vxlan/vxlan.c +++ b/src/vnet/vxlan/vxlan.c @@ -576,6 +576,7 @@ int vnet_vxlan_add_del_tunnel t = pool_elt_at_index (vxm->tunnels, p[0]); + sw_if_index = t->sw_if_index; vnet_sw_interface_set_flags (vnm, t->sw_if_index, 0 /* down */); vnet_sw_interface_t * si = vnet_get_sw_interface (vnm, t->sw_if_index); si->flags |= VNET_SW_INTERFACE_FLAG_HIDDEN;