FAQ
1.为什么我的QoS规则都是正确的,但是跑出来的速率不对。
ifconfig INTERFACE txqueuelen SIZE
|
2.htb queue对于IP分片包的速率计算bug
Kenerl 2.6.21
--- trunk/bcm963xx_4.02L.03/kernel/linux/net/sched/sch_htb.c 2009/10/28 08:42:58 1190 +++ trunk/bcm963xx_4.02L.03/kernel/linux/net/sched/sch_htb.c 2009/10/29 03:14:34 1191 @@ -155,14 +155,20 @@
static inline long L2T(struct htb_class *cl, struct qdisc_rate_table *rate, int size) { int slot = size >> rate->rate.cell_log; - if (slot > 255) { - cl->xstats.giants++; - slot = 255; + if (slot > 255){ + cl->xstats.giants++; + /* compute the time if slot is greater than 255 */ + return (rate->data[1]*slot); } return rate->data[slot]; }
|
阅读(2514) | 评论(1) | 转发(0) |