Commit 00346226 authored by Pavel Emelyanov's avatar Pavel Emelyanov Committed by David S. Miller

[PKT_SCHED]: Fix sch_prio.c build with CONFIG_NETDEVICES_MULTIQUEUE

Fix one more user of netiff_subqueue_stopped. To check for the
queue id one must use the __netiff_subqueue_stoped call.

This run out of my sight when I made the:

668f895a
[NET]: Hide the queue_mapping field inside netif_subqueue_stopped

commit :(
Signed-off-by: default avatarPavel Emelyanov <xemul@openvz.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6a5f44d7
...@@ -136,7 +136,7 @@ prio_dequeue(struct Qdisc* sch) ...@@ -136,7 +136,7 @@ prio_dequeue(struct Qdisc* sch)
* pulling an skb. This way we avoid excessive requeues * pulling an skb. This way we avoid excessive requeues
* for slower queues. * for slower queues.
*/ */
if (!netif_subqueue_stopped(sch->dev, (q->mq ? prio : 0))) { if (!__netif_subqueue_stopped(sch->dev, (q->mq ? prio : 0))) {
qdisc = q->queues[prio]; qdisc = q->queues[prio];
skb = qdisc->dequeue(qdisc); skb = qdisc->dequeue(qdisc);
if (skb) { if (skb) {
...@@ -165,7 +165,7 @@ static struct sk_buff *rr_dequeue(struct Qdisc* sch) ...@@ -165,7 +165,7 @@ static struct sk_buff *rr_dequeue(struct Qdisc* sch)
* for slower queues. If the queue is stopped, try the * for slower queues. If the queue is stopped, try the
* next queue. * next queue.
*/ */
if (!netif_subqueue_stopped(sch->dev, if (!__netif_subqueue_stopped(sch->dev,
(q->mq ? q->curband : 0))) { (q->mq ? q->curband : 0))) {
qdisc = q->queues[q->curband]; qdisc = q->queues[q->curband];
skb = qdisc->dequeue(qdisc); skb = qdisc->dequeue(qdisc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment