Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203193
b: refs/heads/master
c: 7a9b2d5
h: refs/heads/master
i:
  203191: 3b0f563
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Jun 29, 2010
1 parent 58185ec commit dc87d12
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b6b3ecc71a0664d44ed8d087d583aee98fbf492a
refs/heads/master: 7a9b2d59507d85569b8a456688ef40cf2ac73e48
4 changes: 2 additions & 2 deletions trunk/net/core/flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ flow_cache_lookup(struct net *net, struct flowi *key, u16 family, u8 dir,
unsigned int hash;

local_bh_disable();
fcp = per_cpu_ptr(fc->percpu, smp_processor_id());
fcp = this_cpu_ptr(fc->percpu);

fle = NULL;
flo = NULL;
Expand Down Expand Up @@ -302,7 +302,7 @@ static void flow_cache_flush_tasklet(unsigned long data)
LIST_HEAD(gc_list);
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++) {
hlist_for_each_entry_safe(fle, entry, tmp,
&fcp->hash_table[i], u.hlist) {
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/ipv4/ip_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ static int ip_rcv_finish(struct sk_buff *skb)

#ifdef CONFIG_NET_CLS_ROUTE
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;
st[idx&0xFF].o_packets++;
st[idx&0xFF].o_bytes += skb->len;
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/ipv4/tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2962,7 +2962,7 @@ struct tcp_md5sig_pool *tcp_get_md5sig_pool(void)
spin_unlock(&tcp_md5sig_pool_lock);

if (p)
return *per_cpu_ptr(p, smp_processor_id());
return *this_cpu_ptr(p);

local_bh_enable();
return NULL;
Expand Down

0 comments on commit dc87d12

Please sign in to comment.