[ovs-dev] [PATCH 2/2] openvswitch: Optimize operations for OvS flow_stats.

Tonghao Zhang xiangxia.m.yue at gmail.com
Tue Jul 18 05:39:36 UTC 2017


> On Jul 18, 2017, at 11:14 AM, Pravin Shelar <pshelar at ovn.org> wrote:
> 
>> 
>> This patch adds cpumask struct, the cpu_used_mask stores the cpu_id
>> that the flow used. And we only check the flow_stats on the cpu we
>> used, and it is unncessary to check all possible cpu when getting,
>> cleaning, and updating the flow_stats. Adding the cpu_used_mask to
>> sw_flow struct does’t increase the cacheline number.
>> 
>> Signed-off-by: Tonghao Zhang <xiangxia.m.yue at gmail.com>
> 
> Patch looks good to me. I have one comment.

Thanks. I will sent v2 and add “Acked-by”.


More information about the dev mailing list