[ovs-dev] [PATCH v3] datapath-windows: Use OVS_DEFAULT_PORT_NO instead of 0 in a few places

Ben Pfaff blp at nicira.com
Fri Aug 22 17:54:48 UTC 2014


Applied, thanks!

On Wed, Aug 20, 2014 at 01:38:45PM +0000, Saurabh Shah wrote:
> 
> Acked-by: Saurabh Shah <ssaurabh at vmware.com>
> 
> From:  Nithin Raju <nithin at vmware.com>
> Date:  Thursday, August 14, 2014 at 9:02 PM
> To:  "dev at openvswitch.org" <dev at openvswitch.org>
> Subject:  [ovs-dev] [PATCH v3] datapath-windows: Use
> OVS_DEFAULT_PORT_NO	instead of 0 in a few places
> 
> 
> >Signed-off-by: Nithin Raju <nithin at vmware.com>
> >---
> > datapath-windows/ovsext/OvsActions.c |    2 +-
> > datapath-windows/ovsext/OvsUser.c    |    3 ++-
> > 2 files changed, 3 insertions(+), 2 deletions(-)
> >
> >diff --git a/datapath-windows/ovsext/OvsActions.c
> >b/datapath-windows/ovsext/OvsActions.c
> >index 635becc..321f53a 100644
> >--- a/datapath-windows/ovsext/OvsActions.c
> >+++ b/datapath-windows/ovsext/OvsActions.c
> >@@ -273,7 +273,7 @@ OvsDetectTunnelPkt(OvsForwardingContext *ovsFwdCtx,
> >          * If the packet will not be encapsulated, consume the tunnel
> >context
> >          * by clearing it.
> >          */
> >-        if (ovsFwdCtx->srcVportNo != 0 &&
> >+        if (ovsFwdCtx->srcVportNo != OVS_DEFAULT_PORT_NO &&
> >             !OvsIsVifVportNo(ovsFwdCtx->srcVportNo)) {
> >             ovsFwdCtx->tunKey.dst = 0;
> >         }
> >diff --git a/datapath-windows/ovsext/OvsUser.c
> >b/datapath-windows/ovsext/OvsUser.c
> >index 5093f20..658fe0d 100644
> >--- a/datapath-windows/ovsext/OvsUser.c
> >+++ b/datapath-windows/ovsext/OvsUser.c
> >@@ -369,7 +369,8 @@ OvsExecuteDpIoctl(PVOID inputBuffer,
> >         NdisAcquireRWLockRead(gOvsSwitchContext->dispatchLock,
> >&lockState,
> >                               NDIS_RWL_AT_DISPATCH_LEVEL);
> >         ndisStatus = OvsActionsExecute(gOvsSwitchContext, NULL, pNbl,
> >-                                       vport ? vport->portNo : 0,
> >+                                       vport ? vport->portNo :
> >+                                               OVS_DEFAULT_PORT_NO,
> >                  
> >NDIS_SEND_FLAGS_SWITCH_DESTINATION_GROUP,
> >                                        &key, NULL, &layers, actions,
> >                                        execute->actionsLen);
> >-- 
> >1.7.4.1
> >
> >_______________________________________________
> >dev mailing list
> >dev at openvswitch.org
> >https://urldefense.proofpoint.com/v1/url?u=http://openvswitch.org/mailman/
> >listinfo/dev&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=pEkjsHfytvHEWufeZPpgqSO
> >JMdMjuZPbesVsNhCUc0E%3D%0A&m=8S9IkvFs8s8qg6F30WWX%2FWaQuKfJgFctNjUQRhPsC%2
> >Fg%3D%0A&s=204bffbd785e5908786e02b68380ddf18069b1c38f0032cdbea3a4964e102c6
> >3
> 
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev



More information about the dev mailing list