summaryrefslogtreecommitdiff
path: root/datapath-windows/ovsext/Switch.c
diff options
context:
space:
mode:
authorNithin Raju <nithin@vmware.com>2016-10-10 17:48:53 -0700
committerGurucharan Shetty <guru@ovn.org>2016-11-11 14:03:04 -0800
commite3204488d016f9eaabc6ac3b06a100a412ffe3bb (patch)
tree85854998658ceb4282520f277e2271c6401d7d0b /datapath-windows/ovsext/Switch.c
parent6e83dfd9c77d83c873f9a51455a90d273e3ee157 (diff)
downloadopenvswitch-e3204488d016f9eaabc6ac3b06a100a412ffe3bb.tar.gz
datapath-windows: else-if block in OvsExtNetPnPEvent
Signed-off-by: Nithin Raju <nithin@vmware.com> Acked-by: Sairam Venugopal <vsairam@vmware.com> Signed-off-by: Gurucharan Shetty <guru@ovn.org>
Diffstat (limited to 'datapath-windows/ovsext/Switch.c')
-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();
}