Re: [ovs-dev] [PATCH net-next v5 02/10] net: openvswitch: convert mask list in mask array

2019-10-30 Thread David Miller
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; > - > -

[ovs-dev] [PATCH net-next v5 02/10] net: openvswitch: convert mask list in mask array

2019-10-29 Thread xiangxia . m . yue
From: Tonghao Zhang Port the codes to linux upstream and with little changes. Pravin B Shelar, says: | mask caches index of mask in mask_list. On packet recv OVS | need to traverse mask-list to get cached mask. Therefore array | is better for retrieving cached mask. This also allows better |