Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202575
b: refs/heads/master
c: 27f39c7
h: refs/heads/master
i:
  202573: 84c932a
  202571: 325f5ad
  202567: bfa0aa9
  202559: 717de54
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed May 31, 2010
1 parent 8b7218c commit a5fc299
Show file tree
Hide file tree
Showing 3 changed files with 3 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: 604c1b1868f16e7b2fc13401d8c9147f167bec0a
refs/heads/master: 27f39c73e63833b4c081a0d681d88b4184a0491d
3 changes: 1 addition & 2 deletions trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -2822,8 +2822,7 @@ static int __netif_receive_skb(struct sk_buff *skb)
skb->dev = master;
}

__get_cpu_var(softnet_data).processed++;

__this_cpu_inc(softnet_data.processed);
skb_reset_network_header(skb);
skb_reset_transport_header(skb);
skb->mac_len = skb->network_header - skb->mac_header;
Expand Down
3 changes: 1 addition & 2 deletions trunk/net/ipv4/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,7 @@ static unsigned rt_hash_mask __read_mostly;
static unsigned int rt_hash_log __read_mostly;

static DEFINE_PER_CPU(struct rt_cache_stat, rt_cache_stat);
#define RT_CACHE_STAT_INC(field) \
(__raw_get_cpu_var(rt_cache_stat).field++)
#define RT_CACHE_STAT_INC(field) __this_cpu_inc(rt_cache_stat.field)

static inline unsigned int rt_hash(__be32 daddr, __be32 saddr, int idx,
int genid)
Expand Down

0 comments on commit a5fc299

Please sign in to comment.