summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSorin Vinturis <svinturis@cloudbasesolutions.com>2015-04-15 17:30:26 +0000
committerBen Pfaff <blp@nicira.com>2015-04-20 15:44:33 -0700
commitb514f972821d2b8ff3de1e90827cf66ef65127ce (patch)
tree6bcba5d3cf2ecde966d7cce7973443520b2c0d1f
parent28e2fa027d8c44f0970e3f2f12911f8c1cdde3a2 (diff)
downloadopenvswitch-b514f972821d2b8ff3de1e90827cf66ef65127ce.tar.gz
datapath-windows: Removed assert from FilterNetPnPEvent handler
I have removed an inappropriate assert from the FilterNetPnPEvent routine, OvsExtNetPnPEvent. When NDIS calls the FilterNetPnPEvent routine, the extension is in paused state and, obviously, the switch is not active. The switch becomes active after FilterRestart routine is called and the restart is successfully complete. Signed-off-by: Sorin Vinturis <svinturis@cloudbasesolutions.com> Acked-by: Eitan Eliahu <eliahue@vmware.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
-rw-r--r--datapath-windows/ovsext/Switch.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/datapath-windows/ovsext/Switch.c b/datapath-windows/ovsext/Switch.c
index 4f4591fca..11092dec1 100644
--- a/datapath-windows/ovsext/Switch.c
+++ b/datapath-windows/ovsext/Switch.c
@@ -582,7 +582,6 @@ OvsExtNetPnPEvent(NDIS_HANDLE filterModuleContext,
switchContext->isActivateFailed = TRUE;
} else {
ASSERT(switchContext->isActivated == FALSE);
- ASSERT(switchActive == TRUE);
if (switchContext->isActivated == FALSE && switchActive == TRUE) {
status = OvsActivateSwitch(switchContext);
OVS_LOG_TRACE("OvsExtNetPnPEvent: activated switch: %p "