datapath: use this_cpu_ptr per-cpu helper
authorShan Wei <davidshan@tencent.com>
Fri, 16 Nov 2012 21:21:36 +0000 (13:21 -0800)
committerJesse Gross <jesse@nicira.com>
Fri, 16 Nov 2012 21:25:33 +0000 (13:25 -0800)
commit70dbc259b83796688dcef8593eff5f74f7e36aa1
tree3867bd21e84e66eb4d03f22a0d7cbe6bd1eceab5
parent82d293555a406207b608191cca822c7207e7d8c5
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@tencent.com>
Reviewed-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
datapath/datapath.c
datapath/vport.c