All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit a901af0b authored by Sorin Vinturis's avatar Sorin Vinturis Committed by Ben Pfaff

datapath-windows: Solved BSOD when cleaning up the VXLAN tunnel

When removing vport also remove the vxlan tunnel port.
Signed-off-by: default avatarSorin Vinturis <svinturis@cloudbasesolutions.com>
Reported-by: default avatarSorin Vinturis <svinturis@cloudbasesolutions.com>
Reported-at: https://github.com/openvswitch/ovs-issues/issues/94Acked-by: default avatarAlin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Signed-off-by: default avatarBen Pfaff <blp@nicira.com>
parent e21a4c02
......@@ -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);
......
......@@ -154,11 +154,11 @@ OvsCleanupVxlanTunnel(PIRP irp,
vxlanPort->filterID,
callback,
tunnelContext);
} else {
OvsFreeMemoryWithTag(vport->priv, OVS_VXLAN_POOL_TAG);
vport->priv = NULL;
}
OvsFreeMemoryWithTag(vport->priv, OVS_VXLAN_POOL_TAG);
vport->priv = NULL;
return status;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment