patch-2.3.47 linux/net/sched/sch_cbq.c

Next file: linux/net/sched/sch_generic.c
Previous file: linux/net/sched/sch_api.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.46/linux/net/sched/sch_cbq.c linux/net/sched/sch_cbq.c
@@ -1053,7 +1053,7 @@
 
 	if (sch->q.qlen) {
 		sch->stats.overlimits++;
-		if (q->wd_expires && !test_bit(LINK_STATE_XOFF, &sch->dev->state)) {
+		if (q->wd_expires && !netif_queue_stopped(sch->dev)) {
 			long delay = PSCHED_US2JIFFIE(q->wd_expires);
 			del_timer(&q->wd_timer);
 			if (delay <= 0)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)