netdev: The ingress_lock member is no longer needed.
Every qdisc is assosciated with a queue, and in the case of ingress qdiscs that will now be netdev->rx_queue so using that queue's lock is the thing to do. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@ -601,12 +601,11 @@ qdisc_create(struct net_device *dev, struct netdev_queue *dev_queue,
|
||||
|
||||
sch->parent = parent;
|
||||
|
||||
sch->stats_lock = &dev_queue->lock;
|
||||
if (handle == TC_H_INGRESS) {
|
||||
sch->flags |= TCQ_F_INGRESS;
|
||||
sch->stats_lock = &dev->ingress_lock;
|
||||
handle = TC_H_MAKE(TC_H_INGRESS, 0);
|
||||
} else {
|
||||
sch->stats_lock = &dev_queue->lock;
|
||||
if (handle == 0) {
|
||||
handle = qdisc_alloc_handle(dev);
|
||||
err = -ENOMEM;
|
||||
|
Reference in New Issue
Block a user