This test ensures that, when the selection criteria for a select group are the same from packet to packet, the same bucket is always selected. However, it hardcoded the bucket that was selected to the one that happens to be selected with the current OVS hash function on little-endian systems. On big-endian systems, the current OVS hash functions turns out to select the other bucket. That's fine (it's consistent, it just consistently makes the other choice), so this commit fixes the problem by allowing either bucket to be selected.
Signed-off-by: Ben Pfaff <b...@ovn.org> --- tests/ofproto-dpif.at | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/ofproto-dpif.at b/tests/ofproto-dpif.at index 9c5e016..f1a8ac5 100644 --- a/tests/ofproto-dpif.at +++ b/tests/ofproto-dpif.at @@ -437,12 +437,12 @@ Datapath actions: 11 # Try a bunch of different flows and make sure that they are not distributed # as they only vary a field that is not hashed for d in 0 1 2 3 4 5 6 7 8 9 a b c d e f; do - AT_CHECK([ovs-appctl ofproto/trace br0 "in_port=1,dl_src=50:54:00:00:00:$d,dl_dst=50:54:00:00:00:07,dl_type=0x0800,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_proto=1,nw_tos=0,nw_ttl=128,icmp_type=8,icmp_code=0"], [0], [stdout]) + AT_CHECK([ovs-appctl ofproto/trace br0 "in_port=1,dl_src=50:54:00:00:00:0$d,dl_dst=50:54:00:00:00:07,dl_type=0x0800,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_proto=1,nw_tos=0,nw_ttl=128,icmp_type=8,icmp_code=0"], [0], [stdout]) tail -1 stdout >> results done sort results | uniq -c -AT_CHECK([sort results | uniq], [0], - [Datapath actions: 10 +AT_CHECK([sort results | uniq | sed 's/1[[01]]/1?/'], [0], + [Datapath actions: 1? ]) OVS_VSWITCHD_STOP -- 2.1.3 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev