From: xiangxia.m....@gmail.com
Date: Sat, 19 Oct 2019 16:08:36 +0800

> @@ -611,13 +683,8 @@ struct sw_flow *ovs_flow_tbl_lookup_ufid(struct 
> flow_table *tbl,
>  
>  int ovs_flow_tbl_num_masks(const struct flow_table *table)
>  {
> -     struct sw_flow_mask *mask;
> -     int num = 0;
> -
> -     list_for_each_entry(mask, &table->mask_list, list)
> -             num++;
> -
> -     return num;
> +     struct mask_array *ma = rcu_dereference_ovsl(table->mask_array);
> +     return ma->count;
>  }

Please put an empty line between the variable declarations and the start of the
code in this function.
_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to