[ovs-dev] [PATCH v2 ovn 1/3] ofctrl: Avoid recomputing match hash in ofctrl_dup_flow().

Dumitru Ceara dceara at redhat.com
Fri Aug 23 11:23:23 UTC 2019


Signed-off-by: Dumitru Ceara <dceara at redhat.com>
---
 controller/ofctrl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/controller/ofctrl.c b/controller/ofctrl.c
index 8928205..3131baf 100644
--- a/controller/ofctrl.c
+++ b/controller/ofctrl.c
@@ -743,7 +743,7 @@ ofctrl_dup_flow(struct ovn_flow *src)
     dst->ofpacts = xmemdup(src->ofpacts, src->ofpacts_len);
     dst->ofpacts_len = src->ofpacts_len;
     dst->sb_uuid = src->sb_uuid;
-    dst->match_hmap_node.hash = ovn_flow_match_hash(dst);
+    dst->match_hmap_node.hash = src->match_hmap_node.hash;
     dst->uuid_hindex_node.hash = uuid_hash(&src->sb_uuid);
     return dst;
 }



More information about the dev mailing list