Acked-by: Alin Gabriel Serdean <aserd...@cloudbasesolutions.com> Tested-by: Alin Gabriel Serdean <aserd...@cloudbasesolutions.com>
-----Mesaj original----- De la: dev [mailto:dev-boun...@openvswitch.org] În numele Nithin Raju Trimis: Monday, October 13, 2014 6:56 AM Către: dev@openvswitch.org Subiect: [ovs-dev] [PATCH 4/6] datpath-windows: pass NDIS_RWL_AT_DISPATCH_LEVEL instead of BOOLEAN In 'OvsAcquireDatapathRead()' and 'OvsAcquireDatapathWrite()', we seem to be passing a BOLEAN instead of NDIS_RWL_AT_DISPATCH_LEVEL. Signed-off-by: Nithin Raju <nit...@vmware.com> --- datapath-windows/ovsext/Switch.h | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/datapath-windows/ovsext/Switch.h b/datapath-windows/ovsext/Switch.h index 4591c11..ac708b7 100644 --- a/datapath-windows/ovsext/Switch.h +++ b/datapath-windows/ovsext/Switch.h @@ -138,7 +138,8 @@ OvsAcquireDatapathRead(OVS_DATAPATH *datapath, BOOLEAN dispatch) { ASSERT(datapath); - NdisAcquireRWLockRead(datapath->lock, lockState, dispatch); + NdisAcquireRWLockRead(datapath->lock, lockState, + dispatch ? NDIS_RWL_AT_DISPATCH_LEVEL : 0); } static __inline VOID @@ -147,7 +148,8 @@ OvsAcquireDatapathWrite(OVS_DATAPATH *datapath, BOOLEAN dispatch) { ASSERT(datapath); - NdisAcquireRWLockWrite(datapath->lock, lockState, dispatch); + NdisAcquireRWLockWrite(datapath->lock, lockState, + dispatch ? NDIS_RWL_AT_DISPATCH_LEVEL : 0); } -- 1.7.4.1 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev