Loading net/core/flow.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -222,7 +222,7 @@ flow_cache_lookup(struct net *net, struct flowi *key, u16 family, u8 dir, unsigned int hash; unsigned int hash; local_bh_disable(); local_bh_disable(); fcp = per_cpu_ptr(fc->percpu, smp_processor_id()); fcp = this_cpu_ptr(fc->percpu); fle = NULL; fle = NULL; flo = NULL; flo = NULL; Loading Loading @@ -302,7 +302,7 @@ static void flow_cache_flush_tasklet(unsigned long data) LIST_HEAD(gc_list); LIST_HEAD(gc_list); int i, deleted = 0; int i, deleted = 0; fcp = per_cpu_ptr(fc->percpu, smp_processor_id()); fcp = this_cpu_ptr(fc->percpu); for (i = 0; i < flow_cache_hash_size(fc); i++) { for (i = 0; i < flow_cache_hash_size(fc); i++) { hlist_for_each_entry_safe(fle, entry, tmp, hlist_for_each_entry_safe(fle, entry, tmp, &fcp->hash_table[i], u.hlist) { &fcp->hash_table[i], u.hlist) { Loading net/ipv4/ip_input.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -342,7 +342,7 @@ static int ip_rcv_finish(struct sk_buff *skb) #ifdef CONFIG_NET_CLS_ROUTE #ifdef CONFIG_NET_CLS_ROUTE if (unlikely(skb_dst(skb)->tclassid)) { if (unlikely(skb_dst(skb)->tclassid)) { struct ip_rt_acct *st = per_cpu_ptr(ip_rt_acct, smp_processor_id()); struct ip_rt_acct *st = this_cpu_ptr(ip_rt_acct); u32 idx = skb_dst(skb)->tclassid; u32 idx = skb_dst(skb)->tclassid; st[idx&0xFF].o_packets++; st[idx&0xFF].o_packets++; st[idx&0xFF].o_bytes += skb->len; st[idx&0xFF].o_bytes += skb->len; Loading net/ipv4/tcp.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -2962,7 +2962,7 @@ struct tcp_md5sig_pool *tcp_get_md5sig_pool(void) spin_unlock(&tcp_md5sig_pool_lock); spin_unlock(&tcp_md5sig_pool_lock); if (p) if (p) return *per_cpu_ptr(p, smp_processor_id()); return *this_cpu_ptr(p); local_bh_enable(); local_bh_enable(); return NULL; return NULL; Loading Loading
net/core/flow.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -222,7 +222,7 @@ flow_cache_lookup(struct net *net, struct flowi *key, u16 family, u8 dir, unsigned int hash; unsigned int hash; local_bh_disable(); local_bh_disable(); fcp = per_cpu_ptr(fc->percpu, smp_processor_id()); fcp = this_cpu_ptr(fc->percpu); fle = NULL; fle = NULL; flo = NULL; flo = NULL; Loading Loading @@ -302,7 +302,7 @@ static void flow_cache_flush_tasklet(unsigned long data) LIST_HEAD(gc_list); LIST_HEAD(gc_list); int i, deleted = 0; int i, deleted = 0; fcp = per_cpu_ptr(fc->percpu, smp_processor_id()); fcp = this_cpu_ptr(fc->percpu); for (i = 0; i < flow_cache_hash_size(fc); i++) { for (i = 0; i < flow_cache_hash_size(fc); i++) { hlist_for_each_entry_safe(fle, entry, tmp, hlist_for_each_entry_safe(fle, entry, tmp, &fcp->hash_table[i], u.hlist) { &fcp->hash_table[i], u.hlist) { Loading
net/ipv4/ip_input.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -342,7 +342,7 @@ static int ip_rcv_finish(struct sk_buff *skb) #ifdef CONFIG_NET_CLS_ROUTE #ifdef CONFIG_NET_CLS_ROUTE if (unlikely(skb_dst(skb)->tclassid)) { if (unlikely(skb_dst(skb)->tclassid)) { struct ip_rt_acct *st = per_cpu_ptr(ip_rt_acct, smp_processor_id()); struct ip_rt_acct *st = this_cpu_ptr(ip_rt_acct); u32 idx = skb_dst(skb)->tclassid; u32 idx = skb_dst(skb)->tclassid; st[idx&0xFF].o_packets++; st[idx&0xFF].o_packets++; st[idx&0xFF].o_bytes += skb->len; st[idx&0xFF].o_bytes += skb->len; Loading
net/ipv4/tcp.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -2962,7 +2962,7 @@ struct tcp_md5sig_pool *tcp_get_md5sig_pool(void) spin_unlock(&tcp_md5sig_pool_lock); spin_unlock(&tcp_md5sig_pool_lock); if (p) if (p) return *per_cpu_ptr(p, smp_processor_id()); return *this_cpu_ptr(p); local_bh_enable(); local_bh_enable(); return NULL; return NULL; Loading