[ovs-dev] [PATCH 4/9] net: openvswitch: use this_cpu_ptr per-cpu helper

Shan Wei shanwei88 at gmail.com
Thu Nov 8 14:22:30 UTC 2012


Christoph Lameter said, at 2012/11/3 1:46:
>>  		u64_stats_update_begin(&stats->sync);
>>  		stats->tx_packets++;
> 
> Use this_cpu_inc(vport->percpu_stats->packets) here?
 
Lots of network drivers use u64_stats_sync infrastructure for statistics
on 32bit or 64bit hosts no matter how many members in per-cpu variable. 

keep them be consistent, so no plan to change them.

Thanks 




More information about the dev mailing list