Thread (5 messages) flat view 5 messages, 2 authors, 2012-11-09

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

From: Shan Wei <hidden>
Date: 2012-11-09 01:40:06
Also in: lkml

Christoph Lameter said, at 2012/11/9 1:18:
On Thu, 8 Nov 2012, Shan Wei wrote:
quoted
Christoph Lameter said, at 2012/11/3 1:46:
quoted
quoted
 		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
So they would all have an advantage from the patch.
I will try to do the optimizing next time in another patchset which not included
in this series patchset.

I will submit v3 version of this series after testing today.

Thanks

 
 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help