[ovs-dev] [PATCH net-next v5 02/10] net: openvswitch: convert mask list in mask array
David Miller
davem at davemloft.net
Wed Oct 30 21:18:34 UTC 2019
From: xiangxia.m.yue at 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.
More information about the dev
mailing list