summaryrefslogtreecommitdiff
path: root/lib/ofp-util.c
diff options
context:
space:
mode:
authorJarno Rajahalme <jarno@ovn.org>2016-07-29 16:52:03 -0700
committerJarno Rajahalme <jarno@ovn.org>2016-07-29 16:52:03 -0700
commit362a2ebb5ba2c105930391ce931558a56474701b (patch)
tree834ec2605597f2e0b3b44ee0edb37efb1645e703 /lib/ofp-util.c
parentaff49b8c66beaf509f6d165164696c14bba4247f (diff)
downloadopenvswitch-362a2ebb5ba2c105930391ce931558a56474701b.tar.gz
ofproto-dpif-xlate: Hash only fields specified for 'hash' selection method.
The mask for non-present fields in struct field_array is always zero, so hashing a prerequisite field that was not also specified for the "hash" selection method boiled down to hashing a all-zeroes value and unwildcarding the prerequisite field. Now that mf_are_prereqs_ok() already takes care of unwildcarding, we can simplify the code by hashing only the specified fields. Also change the test case to include fields that have prerequisities. Signed-off-by: Jarno Rajahalme <jarno@ovn.org> Acked-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'lib/ofp-util.c')
0 files changed, 0 insertions, 0 deletions