diff options
author | Anand Kumar <kumaranand@vmware.com> | 2018-06-22 10:09:25 -0700 |
---|---|---|
committer | Alin Gabriel Serdean <aserdean@ovn.org> | 2018-06-24 23:58:13 +0300 |
commit | 9d7c8de9fe557efa9c55bfe4fe8947785f252c3a (patch) | |
tree | 96db441872d357096206009ceef2446202d56172 /datapath-windows/ovsext/Conntrack-tcp.c | |
parent | de759da2dd5086cdb2f0fd49a5f3e50f965d4ad3 (diff) | |
download | openvswitch-9d7c8de9fe557efa9c55bfe4fe8947785f252c3a.tar.gz |
datapath-windows: Use spinlock instead of RW lock for ct entry
This patch mainly changes a ndis RW lock for conntrack entry to a
spinlock along with some minor refactor in conntrack. Using
spinlock instead of RW lock as RW locks causes performance hits
when acquired/released multiple times.
- Use NdisInterlockedXX wrapper api's instead of InterlockedXX.
- Update 'ctTotalRelatedEntries' using interlocked functions.
- Move conntrack lock out of NAT module.
Testing:
Verified loading/unloading the driver with driver verified enabled.
Ran TCP/UDP and ICMP traffic.
Signed-off-by: Anand Kumar <kumaranand@vmware.com>
Acked-by: Alin Gabriel Serdean <aserdean@ovn.org>
Signed-off-by: Alin Gabriel Serdean <aserdean@ovn.org>
Diffstat (limited to 'datapath-windows/ovsext/Conntrack-tcp.c')
0 files changed, 0 insertions, 0 deletions