Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 66809
b: refs/heads/master
c: 9e0db4b
h: refs/heads/master
i:
  66807: 50cd0f1
v: v3
  • Loading branch information
Eric W. Biederman authored and David S. Miller committed Oct 10, 2007
1 parent e0cc302 commit d54a1bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: fe242cfd3390b1c7d54d60f7ebb6a4054804cd41
refs/heads/master: 9e0db4b12c7deda532ad13d37a84ee41dd691066
4 changes: 3 additions & 1 deletion trunk/drivers/net/loopback.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ static int loopback_xmit(struct sk_buff *skb, struct net_device *dev)
#endif
dev->last_rx = jiffies;

/* it's OK to use per_cpu_ptr() because BHs are off */
pcpu_lstats = netdev_priv(dev);
lb_stats = per_cpu_ptr(pcpu_lstats, smp_processor_id());
lb_stats->bytes += skb->len;
Expand Down Expand Up @@ -221,7 +222,8 @@ static void loopback_dev_free(struct net_device *dev)
}

/*
* The loopback device is special. There is only one instance.
* The loopback device is special. There is only one instance
* per network namespace.
*/
static void loopback_setup(struct net_device *dev)
{
Expand Down

0 comments on commit d54a1bb

Please sign in to comment.