summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--datapath-windows/ovsext/Switch.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/datapath-windows/ovsext/Switch.c b/datapath-windows/ovsext/Switch.c
index bb296fadc..db023e987 100644
--- a/datapath-windows/ovsext/Switch.c
+++ b/datapath-windows/ovsext/Switch.c
@@ -600,8 +600,8 @@ OvsExtNetPnPEvent(NDIS_HANDLE filterModuleContext,
OVS_LOG_TRACE("Enter: filterModuleContext: %p, NetEvent: %d",
filterModuleContext, (netPnPEvent->NetPnPEvent).NetEvent);
/*
- * The only interesting event is the NetEventSwitchActivate. It provides
- * an asynchronous notification of the switch completing activation.
+ * NetEventSwitchActivate provides an asynchronous notification of
+ * the switch completing activation.
*/
if (netPnPEvent->NetPnPEvent.NetEvent == NetEventSwitchActivate) {
ASSERT(switchContext->isActivated == FALSE);
@@ -611,9 +611,7 @@ OvsExtNetPnPEvent(NDIS_HANDLE filterModuleContext,
"status: %s", switchContext,
status ? "TRUE" : "FALSE");
}
- }
-
- if (netPnPEvent->NetPnPEvent.NetEvent == NetEventFilterPreDetach) {
+ } else if (netPnPEvent->NetPnPEvent.NetEvent == NetEventFilterPreDetach) {
switchContext->dataFlowState = OvsSwitchPaused;
KeMemoryBarrier();
}