Shan Wei said, at 2012/11/13 9:52:
> From: Shan Wei
>
> just use more faster this_cpu_ptr instead of per_cpu_ptr(p,
> smp_processor_id());
>
>
> Signed-off-by: Shan Wei
> Reviewed-by: Christoph Lameter
Jesse Gross, would you like to pick it up to your tree?
>
From: Shan Wei
just use more faster this_cpu_ptr instead of per_cpu_ptr(p, smp_processor_id());
Signed-off-by: Shan Wei
Reviewed-by: Christoph Lameter
---
no changes vs v3,v2.
---
net/openvswitch/datapath.c |4 ++--
net/openvswitch/vport.c|5 ++---
2 files changed, 4 insertions
From: Shan Wei
just use more faster this_cpu_ptr instead of per_cpu_ptr(p, smp_processor_id());
Signed-off-by: Shan Wei
---
no changes vs v2.
---
net/openvswitch/datapath.c |4 ++--
net/openvswitch/vport.c|5 ++---
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a
Christoph Lameter said, at 2012/11/9 1:18:
> On Thu, 8 Nov 2012, Shan Wei wrote:
>
>> Christoph Lameter said, at 2012/11/3 1:46:
>>>>u64_stats_update_begin(&stats->sync);
>>>>stats->tx_packets++;
>>>
>>> Us
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 matte
From: Shan Wei
no change vs v1.
Lots of drivers use this kind to read/write per-cpu variable.
stats = this_cpu_ptr(dp->stats_percpu);
u64_stats_update_begin(&stats->sync);
stats->tx_packets++;
u64_stats_update_begin(&stats->sync);
Signed-off-by: Shan Wei
Christoph Lameter said, at 2012/11/1 1:39:
> On Wed, 31 Oct 2012, Shan Wei wrote:
>
>> --- a/net/openvswitch/datapath.c
>> +++ b/net/openvswitch/datapath.c
>> @@ -208,7 +208,7 @@ void ovs_dp_process_received_packet(struct vport *p,
>> struct sk_buff *skb)
>>
From: Shan Wei
Signed-off-by: Shan Wei
---
net/openvswitch/datapath.c |4 ++--
net/openvswitch/vport.c|5 ++---
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c
index 4c4b62c..77d16a5 100644
--- a/net/openvswitch
From: Shan Wei
For net part, remove duplicate included head.
Signed-off-by: Shan Wei
---
net/caif/caif_usb.c|1 -
net/ipv4/udp_diag.c|1 -
net/openvswitch/flow.c |1 -
3 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/net/caif/caif_usb.c b/net/caif