patch-2.3.99-pre7 linux/net/sched/sch_tbf.c
Next file: linux/net/sched/sch_teql.c
Previous file: linux/net/sched/sch_generic.c
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Fri Apr 28 22:50:14 2000
- Orig file:
v2.3.99-pre6/linux/net/sched/sch_tbf.c
- Orig date:
Sun Feb 20 21:12:40 2000
diff -u --recursive --new-file v2.3.99-pre6/linux/net/sched/sch_tbf.c linux/net/sched/sch_tbf.c
@@ -232,9 +232,7 @@
if (delay == 0)
delay = 1;
- del_timer(&q->wd_timer);
- q->wd_timer.expires = jiffies + delay;
- add_timer(&q->wd_timer);
+ mod_timer(&q->wd_timer, jiffies+delay);
}
/* Maybe we have a shorter packet in the queue,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)