]> git.proxmox.com Git - mirror_ovs.git/commit
datapath-windows: Fix conntrack lookups for reversed keys
authorSairam Venugopal <vsairam@vmware.com>
Tue, 1 Aug 2017 22:01:44 +0000 (15:01 -0700)
committerBen Pfaff <blp@ovn.org>
Thu, 3 Aug 2017 21:37:47 +0000 (14:37 -0700)
commit662975e43c3f65b52d32e12cdff3d9796c9f138b
treee1d2b8b26fb4c10cb198a1ca6733bbfff963d5e0
parente9804ffdf703d27b18ca3a4d81a4599ac2eacc04
datapath-windows: Fix conntrack lookups for reversed keys

The conntrack table needs to be queried for entries in either directions
to determine if the packet is in forward direction or reply direction.

The current behavior ends up reversing the incoming packet's 5-Tuple for
every entry in the loop instead of doing it only once.

Testing Done:
- Verified that ICMP requests are no longer treated as replies
in Conntrack.

Co-authored-by: Sairam Venugopal <vsairam@vmware.com>
Signed-off-by: Anand Kumar <kumaranand@vmware.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Shashank Ram <rams@vmware.com>
Acked-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
datapath-windows/ovsext/Conntrack.c