Re: [vpp-dev] VXLAN Instances Not Freed Properly?

2018-02-23 Thread John Lo (loj)
-dev@lists.fd.io] On Behalf Of John Lo (loj) Sent: Friday, February 23, 2018 5:44 PM To: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] VXLAN Instances Not Freed Properly? Hi Jon, I see the problem in the delete path where the hash_unset() call is using the tunnel instance instead of the user_instance

Re: [vpp-dev] VXLAN Instances Not Freed Properly?

2018-02-23 Thread Jon Loeliger
On Fri, Feb 23, 2018 at 4:43 PM, John Lo (loj) wrote: > Hi Jon, > > > > I see the problem in the delete path where the hash_unset() call is using > the tunnel instance instead of the user_instance of the tunnel starting at > about line 558 of vxlan.c: > > > > vnet_delete_hw_interface (vnm,

Re: [vpp-dev] VXLAN Instances Not Freed Properly?

2018-02-23 Thread John Lo (loj)
Hi Jon, I see the problem in the delete path where the hash_unset() call is using the tunnel instance instead of the user_instance of the tunnel starting at about line 558 of vxlan.c: vnet_delete_hw_interface (vnm, t->hw_if_index); hash_unset (vxm->instance_used, instance); Do you

[vpp-dev] VXLAN Instances Not Freed Properly?

2018-02-23 Thread Jon Loeliger
John, et al, I stumbled across this interesting behavior in VXLAN tunnels: vpp# create vxlan tunnel src 1.2.3.4 dst 10.11.12.13 vni 1 instance 101 vxlan_tunnel101 vpp# create vxlan tunnel src 1.2.3.4 dst 10.11.12.13 vni 1 instance 101 del vpp# create vxlan tunnel src 1.2.3.4 dst 10.11.12.13 vni 1