Re: [ovs-dev] [PATCH] datapath-windows: Removed gOvsCtrlLock global spinlock

2015-04-14 Thread Sorin Vinturis
: Monday, 13 April, 2015 18:52 To: Sorin Vinturis Cc: dev@openvswitch.org Subject: Re: [ovs-dev] [PATCH] datapath-windows: Removed gOvsCtrlLock global spinlock Sorin, In general, ‘gOvsControlLock’ is there to protect ‘gOvsSwitchContext’. Basically, while we are accessing ‘gOvsSwitchContext’ from the

Re: [ovs-dev] [PATCH] datapath-windows: Removed gOvsCtrlLock global spinlock

2015-04-13 Thread Nithin Raju
Sorin, In general, ‘gOvsControlLock’ is there to protect ‘gOvsSwitchContext’. Basically, while we are accessing ‘gOvsSwitchContext’ from the netlink path or even during an NDIS switch callback, we want to make sure ‘gOvsSwitchContext’ doesn’t get deallocated under the rug in another context. Al

[ovs-dev] [PATCH] datapath-windows: Removed gOvsCtrlLock global spinlock

2015-03-23 Thread Sorin Vinturis
There is no need to use gOvsCtrlLock spinlock to guard the switch context, as there is now the switch context's reference count used for this purpose. Now the gOvsCtrlLock spinlock guards only one shared resource, the OVS_OPEN_INSTANCE global instance array. Signed-off-by: Sorin Vinturis --- da