Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 215123
b: refs/heads/master
c: 4315d83
h: refs/heads/master
i:
  215121: b3542f9
  215119: f7a6df5
v: v3
  • Loading branch information
Tom Herbert authored and David S. Miller committed Oct 8, 2010
1 parent ecde7ae commit 829f673
Show file tree
Hide file tree
Showing 3 changed files with 3 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: a131d82266e77b8eb8a2dab930a94ed0de9e91b0
refs/heads/master: 4315d834c1496ddca977e9e22002b77c85bfec2c
1 change: 0 additions & 1 deletion trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -5024,7 +5024,6 @@ static int netif_alloc_rx_queues(struct net_device *dev)
return -ENOMEM;
}
dev->_rx = rx;
atomic_set(&rx->count, count);

/*
* Set a pointer to first element in the array which holds the
Expand Down
2 changes: 2 additions & 0 deletions trunk/net/core/net-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,7 @@ static struct kobj_type rx_queue_ktype = {
static int rx_queue_add_kobject(struct net_device *net, int index)
{
struct netdev_rx_queue *queue = net->_rx + index;
struct netdev_rx_queue *first = queue->first;
struct kobject *kobj = &queue->kobj;
int error = 0;

Expand All @@ -738,6 +739,7 @@ static int rx_queue_add_kobject(struct net_device *net, int index)
}

kobject_uevent(kobj, KOBJ_ADD);
atomic_inc(&first->count);

return error;
}
Expand Down

0 comments on commit 829f673

Please sign in to comment.