summaryrefslogtreecommitdiff
path: root/ofproto
diff options
context:
space:
mode:
authorJustin Pettit <jpettit@ovn.org>2017-07-27 18:02:26 -0700
committerJustin Pettit <jpettit@ovn.org>2017-07-28 09:45:30 -0700
commit19536b6a4b2dcf4e469b50eac090bf2442c8dd37 (patch)
tree794508f8d8cb53100c7c22256303173ab1c582e3 /ofproto
parent8014f465e27206638e2deb7bcfbb5aa75906778f (diff)
downloadopenvswitch-19536b6a4b2dcf4e469b50eac090bf2442c8dd37.tar.gz
ofproto-dpif-rid: Don't include action_set_len as part of hash.
It doesn't improve the hashing, since the number of bytes hashed is included in hash_bytes64() hash calculation. Signed-off-by: Justin Pettit <jpettit@ovn.org> Acked-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'ofproto')
-rw-r--r--ofproto/ofproto-dpif-rid.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/ofproto/ofproto-dpif-rid.c b/ofproto/ofproto-dpif-rid.c
index c447167dc..fc5700489 100644
--- a/ofproto/ofproto-dpif-rid.c
+++ b/ofproto/ofproto-dpif-rid.c
@@ -134,7 +134,6 @@ frozen_state_hash(const struct frozen_state *state)
hash = hash_bytes(state->stack, state->stack_size, hash);
}
hash = hash_int(state->mirrors, hash);
- hash = hash_int(state->action_set_len, hash);
if (state->action_set_len) {
hash = hash_bytes64(ALIGNED_CAST(const uint64_t *, state->action_set),
state->action_set_len, hash);