[ovs-dev] [PATCH] datapath-windows: else-if block in OvsExtNetPnPEvent
Guru Shetty
guru at ovn.org
Fri Nov 11 22:03:28 UTC 2016
On 10 October 2016 at 17:48, Nithin Raju <nithin at vmware.com> wrote:
> Signed-off-by: Nithin Raju <nithin at vmware.com>
>
Applied, thanks
> ---
> datapath-windows/ovsext/Switch.c | 8 +++-----
> 1 file changed, 3 insertions(+), 5 deletions(-)
>
> diff --git a/datapath-windows/ovsext/Switch.c b/datapath-windows/ovsext/
> Switch.c
> index 825fa3c..87dbc5e 100644
> --- a/datapath-windows/ovsext/Switch.c
> +++ b/datapath-windows/ovsext/Switch.c
> @@ -599,8 +599,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);
> @@ -610,9 +610,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();
> }
> --
> 2.6.2
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev
>
More information about the dev
mailing list