aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/core/flow.c4
-rw-r--r--net/ipv4/ip_input.c2
-rw-r--r--net/ipv4/tcp.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/net/core/flow.c b/net/core/flow.c
index 161900674009..8c7c91a32f18 100644
--- a/net/core/flow.c
+++ b/net/core/flow.c
@@ -222,7 +222,7 @@ flow_cache_lookup(struct net *net, struct flowi *key, u16 family, u8 dir,
222 unsigned int hash; 222 unsigned int hash;
223 223
224 local_bh_disable(); 224 local_bh_disable();
225 fcp = per_cpu_ptr(fc->percpu, smp_processor_id()); 225 fcp = this_cpu_ptr(fc->percpu);
226 226
227 fle = NULL; 227 fle = NULL;
228 flo = NULL; 228 flo = NULL;
@@ -302,7 +302,7 @@ static void flow_cache_flush_tasklet(unsigned long data)
302 LIST_HEAD(gc_list); 302 LIST_HEAD(gc_list);
303 int i, deleted = 0; 303 int i, deleted = 0;
304 304
305 fcp = per_cpu_ptr(fc->percpu, smp_processor_id()); 305 fcp = this_cpu_ptr(fc->percpu);
306 for (i = 0; i < flow_cache_hash_size(fc); i++) { 306 for (i = 0; i < flow_cache_hash_size(fc); i++) {
307 hlist_for_each_entry_safe(fle, entry, tmp, 307 hlist_for_each_entry_safe(fle, entry, tmp,
308 &fcp->hash_table[i], u.hlist) { 308 &fcp->hash_table[i], u.hlist) {
diff --git a/net/ipv4/ip_input.c b/net/ipv4/ip_input.c
index db47a5a00ed2..d859bcc26cb7 100644
--- a/net/ipv4/ip_input.c
+++ b/net/ipv4/ip_input.c
@@ -342,7 +342,7 @@ static int ip_rcv_finish(struct sk_buff *skb)
342 342
343#ifdef CONFIG_NET_CLS_ROUTE 343#ifdef CONFIG_NET_CLS_ROUTE
344 if (unlikely(skb_dst(skb)->tclassid)) { 344 if (unlikely(skb_dst(skb)->tclassid)) {
345 struct ip_rt_acct *st = per_cpu_ptr(ip_rt_acct, smp_processor_id()); 345 struct ip_rt_acct *st = this_cpu_ptr(ip_rt_acct);
346 u32 idx = skb_dst(skb)->tclassid; 346 u32 idx = skb_dst(skb)->tclassid;
347 st[idx&0xFF].o_packets++; 347 st[idx&0xFF].o_packets++;
348 st[idx&0xFF].o_bytes += skb->len; 348 st[idx&0xFF].o_bytes += skb->len;
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
index d5f84bd5a455..4e6ddfbab09e 100644
--- a/net/ipv4/tcp.c
+++ b/net/ipv4/tcp.c
@@ -2962,7 +2962,7 @@ struct tcp_md5sig_pool *tcp_get_md5sig_pool(void)
2962 spin_unlock(&tcp_md5sig_pool_lock); 2962 spin_unlock(&tcp_md5sig_pool_lock);
2963 2963
2964 if (p) 2964 if (p)
2965 return *per_cpu_ptr(p, smp_processor_id()); 2965 return *this_cpu_ptr(p);
2966 2966
2967 local_bh_enable(); 2967 local_bh_enable();
2968 return NULL; 2968 return NULL;