From 19536b6a4b2dcf4e469b50eac090bf2442c8dd37 Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Thu, 27 Jul 2017 18:02:26 -0700 Subject: 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 Acked-by: Ben Pfaff --- ofproto/ofproto-dpif-rid.c | 1 - 1 file changed, 1 deletion(-) (limited to 'ofproto') 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); -- cgit v1.2.1