Acked-by: Sairam Venugopal <vsai...@vmware.com>
On 2/26/16, 6:08 AM, "Alin Serdean" <aserd...@cloudbasesolutions.com> wrote: >A PnP(plug and play) event will be triggered before trying to disable >the extension. We could use this PnP event to prepare for detaching >the datapath. > >This patch sets the switch into a paused state so no more net buffers >are queued. > >Also clean some commentaries. > >Signed-off-by: Alin Gabriel Serdean <aserd...@cloudbasesolutions.com> >--- > datapath-windows/ovsext/Switch.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/datapath-windows/ovsext/Switch.c >b/datapath-windows/ovsext/Switch.c >index 77bafb4..882d587 100644 >--- a/datapath-windows/ovsext/Switch.c >+++ b/datapath-windows/ovsext/Switch.c >@@ -352,7 +352,7 @@ OvsExtPause(NDIS_HANDLE filterModuleContext, > NdisMSleep(1000); > } > >- OVS_LOG_TRACE("Exit: OvsDetach Successfully"); >+ OVS_LOG_TRACE("Exit: OvsExtPause Successfully"); > return NDIS_STATUS_SUCCESS; > } > >@@ -605,6 +605,10 @@ OvsExtNetPnPEvent(NDIS_HANDLE filterModuleContext, > } > } > >+ if (netPnPEvent->NetPnPEvent.NetEvent == NetEventFilterPreDetach) { >+ switchContext->dataFlowState = OvsSwitchPaused; >+ } >+ > status = NdisFNetPnPEvent(switchContext->NdisFilterHandle, > netPnPEvent); > OVS_LOG_TRACE("Exit: OvsExtNetPnPEvent"); >-- >1.9.5.msysgit.0 >_______________________________________________ >dev mailing list >dev@openvswitch.org >http://openvswitch.org/mailman/listinfo/dev _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev