summaryrefslogtreecommitdiff
path: root/datapath-windows/ovsext/Vport.c
diff options
context:
space:
mode:
authorSorin Vinturis <svinturis@cloudbasesolutions.com>2015-07-10 08:26:51 +0000
committerBen Pfaff <blp@nicira.com>2015-07-15 08:53:32 -0700
commitf18390b7fc36f160e163e4b24516e42598426cfb (patch)
tree6cafc4dd8f5802936e89cae8b621d2df2dac37ae /datapath-windows/ovsext/Vport.c
parent210045a4b42f34c15297542f3cf50bc60596d7c2 (diff)
downloadopenvswitch-f18390b7fc36f160e163e4b24516e42598426cfb.tar.gz
datapath-windows: Solved BSOD when cleaning up the VXLAN tunnel
When removing vport also remove the vxlan tunnel port. Signed-off-by: Sorin Vinturis <svinturis@cloudbasesolutions.com> Reported-by: Sorin Vinturis <svinturis@cloudbasesolutions.com> Reported-at: https://github.com/openvswitch/ovs-issues/issues/94 Acked-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'datapath-windows/ovsext/Vport.c')
-rw-r--r--datapath-windows/ovsext/Vport.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/datapath-windows/ovsext/Vport.c b/datapath-windows/ovsext/Vport.c
index 43154641f..d692a6dc7 100644
--- a/datapath-windows/ovsext/Vport.c
+++ b/datapath-windows/ovsext/Vport.c
@@ -2531,6 +2531,12 @@ OvsTunnelVportPendingRemove(PVOID context,
RemoveEntryList(&vport->ovsNameLink);
RemoveEntryList(&vport->portNoLink);
RemoveEntryList(&vport->tunnelVportLink);
+
+ if (vport->priv) {
+ OvsFreeMemoryWithTag(vport->priv, OVS_VXLAN_POOL_TAG);
+ vport->priv = NULL;
+ }
+
OvsFreeMemoryWithTag(vport, OVS_VPORT_POOL_TAG);
NdisReleaseRWLock(switchContext->dispatchLock, &lockState);