[ovs-dev] [PATCH 1/3] ofproto-dpif-rid: Include action length as part of hash.

Justin Pettit jpettit at ovn.org
Fri Jul 14 06:30:49 UTC 2017


Signed-off-by: Justin Pettit <jpettit at ovn.org>
---
 ofproto/ofproto-dpif-rid.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ofproto/ofproto-dpif-rid.c b/ofproto/ofproto-dpif-rid.c
index d546b150b938..26c2357007b2 100644
--- a/ofproto/ofproto-dpif-rid.c
+++ b/ofproto/ofproto-dpif-rid.c
@@ -146,6 +146,7 @@ frozen_state_hash(const struct frozen_state *state)
         hash = hash_bytes64(ALIGNED_CAST(const uint64_t *, state->action_set),
                             state->action_set_len, hash);
     }
+    hash = hash_int(state->ofpacts_len, hash);
     if (state->ofpacts_len) {
         hash = hash_bytes64(ALIGNED_CAST(const uint64_t *, state->ofpacts),
                             state->ofpacts_len, hash);
-- 
2.7.4



More information about the dev mailing list