]> git.proxmox.com Git - mirror_ovs.git/commit - tests/ofproto-dpif.at
tests: Fix conntrack tests on windows.
authorDaniele Di Proietto <diproiettod@vmware.com>
Tue, 2 Aug 2016 18:45:54 +0000 (11:45 -0700)
committerDaniele Di Proietto <diproiettod@vmware.com>
Tue, 2 Aug 2016 23:13:01 +0000 (16:13 -0700)
commita103c1f4a4e30c3ccccef3a2f06c3cabe506f187
tree906728559be386ac9f5ba197eb99ea2854d72737
parentdd34473cbe4f05aefb1b9e6d779f0e04d84b8df8
tests: Fix conntrack tests on windows.

The conntrack unit tests seem to generate different megaflow masks on
Windows.  The megaflow masks depend on the internal ordering of the
subtables, which are sorted using qsort(), based on their max priority.
If two subtables have the same priority the ordering between them
depends on the stability properties of qsort(), which apparently are
different between Windows and Linux/*BSD.

This commit uses multiple OpenFlow tables to build our conntrack
pipelines in the tests, which gives us more control over the visited
subtables and also improves clarity.

Reported-by: Alin Serdean <aserdean@cloudbasesolutions.com>
Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
Acked-by: Joe Stringer <joe@ovn.org>
tests/ofproto-dpif.at