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

Numan Siddique nusiddiq at redhat.com
Wed Aug 28 12:33:39 UTC 2019


On Fri, Aug 23, 2019 at 4:54 PM Dumitru Ceara <dceara at redhat.com> wrote:

> Signed-off-by: Dumitru Ceara <dceara at redhat.com>
>

Thanks. I applied this patch to master.

Numan


> ---
>  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;
>  }
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
>


More information about the dev mailing list