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

2012-11-16 Thread Shan Wei
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? >

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

2012-11-12 Thread Shan Wei
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

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

2012-11-08 Thread Shan Wei
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

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

2012-11-08 Thread Shan Wei
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

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

2012-11-08 Thread Shan Wei
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

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

2012-11-02 Thread Shan Wei
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

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

2012-11-01 Thread 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) >>

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

2012-10-31 Thread Shan Wei
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

[ovs-dev] [PATCH] net: kill duplicate included head

2012-01-16 Thread Shan Wei
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