[ovs-git] Open vSwitch: datapath: use this_cpu_ptr per-cpu helper (master)

dev at openvswitch.org dev at openvswitch.org
Fri Nov 16 21:53:31 UTC 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  70dbc259b83796688dcef8593eff5f74f7e36aa1 (commit)
       via  82d293555a406207b608191cca822c7207e7d8c5 (commit)
      from  a088a1ffeba3d113c1be918969085a5c0de0d518 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 70dbc259b83796688dcef8593eff5f74f7e36aa1
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=70dbc259b83796688dcef8593eff5f74f7e36aa1
Author: Shan Wei <davidshan at tencent.com>
		
datapath: use this_cpu_ptr per-cpu helper
		
just use more faster this_cpu_ptr instead of per_cpu_ptr(p, smp_processor_id());

Signed-off-by: Shan Wei <davidshan at tencent.com>
Reviewed-by: Christoph Lameter <cl at linux.com>
Signed-off-by: Jesse Gross <jesse at nicira.com>


commit 82d293555a406207b608191cca822c7207e7d8c5
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=82d293555a406207b608191cca822c7207e7d8c5
Author: Jesse Gross <jesse at nicira.com>
		
datapath: Backport this_cpu_ptr to kernels < 2.6.33
		
An upstream commit uses this_cpu_ptr for a small performance benefit,
so this provides an equivalent to kernels that don't have that
function.

Signed-off-by: Jesse Gross <jesse at nicira.com>


-----------------------------------------------------------------------

Summary of changes:
 datapath/datapath.c                        |    4 ++--
 datapath/linux/Modules.mk                  |    1 +
 datapath/linux/compat/include/asm/percpu.h |   10 ++++++++++
 datapath/vport.c                           |    5 ++---
 4 files changed, 15 insertions(+), 5 deletions(-)
 create mode 100644 datapath/linux/compat/include/asm/percpu.h


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list