datapath-windows: Removed memory barrier and master lock
authorSorin Vinturis <svinturis@cloudbasesolutions.com>
Wed, 27 May 2015 17:08:00 +0000 (17:08 +0000)
committerBen Pfaff <blp@nicira.com>
Wed, 27 May 2015 19:46:05 +0000 (12:46 -0700)
commit8909c56c467881236b655e5c4f4c5caa63178cd5
tree49994aa5a05060439357e81ff785c2883485a36a
parent68f1df92ce8dab00bbd3bf46819a758e1d193dcf
datapath-windows: Removed memory barrier and master lock

There is no need to enforce Netlink serialization on transactions
sent from userspace. The access to the driver's shared resources
is synchronized anyway. Thus I have removed the master lock.

I also removed the memory barrier from filter dispatch routine. A
memory barrier is already in place in OvsReleaseSwitchContext
function, due to the use of InterlockedCompareExchange function.

Signed-off-by: Sorin Vinturis <svinturis@cloudbasesolutions.com>
Acked-by: Eitan Eliahu <eliahue@vmware.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
datapath-windows/ovsext/Datapath.c
datapath-windows/ovsext/Datapath.h