Skip to content
Commit 595e3616 authored by Paul Durrant's avatar Paul Durrant Committed by Greg Kroah-Hartman
Browse files

xen-netback: only remove 'hotplug-status' when the vif is actually destroyed

[ Upstream commit c55f34b6 ]

Removing 'hotplug-status' in backend_disconnected() means that it will be
removed even in the case that the frontend unilaterally disconnects (which
it is free to do at any time). The consequence of this is that, when the
frontend attempts to re-connect, the backend gets stuck in 'InitWait'
rather than moving straight to 'Connected' (which it can do because the
hotplug script has already run).
Instead, the 'hotplug-status' mode should be removed in netback_remove()
i.e. when the vif really is going away.

Fixes: 0f4558ae

 ("Revert "xen-netback: remove 'hotplug-status' once it has served its purpose"")
Signed-off-by: default avatarPaul Durrant <pdurrant@amazon.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent c3efe896
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