Skip to content

Commit

Permalink
datapath-windows: pass NDIS_RWL_AT_DISPATCH_LEVEL instead of BOOLEAN
Browse files Browse the repository at this point in the history
In 'OvsAcquireDatapathRead()' and 'OvsAcquireDatapathWrite()', we seem
to be passing a BOLEAN instead of NDIS_RWL_AT_DISPATCH_LEVEL.

Signed-off-by: Nithin Raju <[email protected]>
Acked-by: Alin Gabriel Serdean <[email protected]>
Tested-by: Alin Gabriel Serdean <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
nithinrajub authored and blp committed Oct 13, 2014
1 parent f36fdc7 commit 1243d57
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions datapath-windows/ovsext/Switch.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
}


Expand Down

0 comments on commit 1243d57

Please sign in to comment.