|
@@ -726,6 +726,7 @@ static struct kobj_type rx_queue_ktype = {
|
|
static int rx_queue_add_kobject(struct net_device *net, int index)
|
|
static int rx_queue_add_kobject(struct net_device *net, int index)
|
|
{
|
|
{
|
|
struct netdev_rx_queue *queue = net->_rx + index;
|
|
struct netdev_rx_queue *queue = net->_rx + index;
|
|
|
|
+ struct netdev_rx_queue *first = queue->first;
|
|
struct kobject *kobj = &queue->kobj;
|
|
struct kobject *kobj = &queue->kobj;
|
|
int error = 0;
|
|
int error = 0;
|
|
|
|
|
|
@@ -738,6 +739,7 @@ static int rx_queue_add_kobject(struct net_device *net, int index)
|
|
}
|
|
}
|
|
|
|
|
|
kobject_uevent(kobj, KOBJ_ADD);
|
|
kobject_uevent(kobj, KOBJ_ADD);
|
|
|
|
+ atomic_inc(&first->count);
|
|
|
|
|
|
return error;
|
|
return error;
|
|
}
|
|
}
|