Skip to content
Permalink
Browse files

Temporary fixes for Diffserv-LLT bandwidth and incorrect stats in unl…

…imited mode.
  • Loading branch information
chromi committed Apr 27, 2017
1 parent 8742ff9 commit 14cbb5e76785b488c290f27c9f9523a9a71f6196
Showing with 4 additions and 4 deletions.
  1. +4 −4 sch_cake.c
@@ -1644,11 +1644,11 @@ static int cake_config_diffserv_llt(struct Qdisc *sch)
q->tin_order = normal_order;

/* class characteristics */
cake_set_rate(&q->tins[0], rate >> 1, mtu,
cake_set_rate(&q->tins[0], rate, mtu,
US2TIME(q->target * 4), US2TIME(q->interval * 4));
cake_set_rate(&q->tins[1], rate >> 1, mtu,
cake_set_rate(&q->tins[1], rate, mtu,
US2TIME(q->target), US2TIME(q->interval));
cake_set_rate(&q->tins[2], rate >> 1, mtu,
cake_set_rate(&q->tins[2], rate, mtu,
US2TIME(q->target), US2TIME(q->target));
cake_set_rate(&q->tins[3], rate >> 4, mtu,
US2TIME(q->target), US2TIME(q->interval));
@@ -1721,7 +1721,7 @@ static void cake_reconfigure(struct Qdisc *sch)
q->buffer_limit = ~0;
}

if (q->rate_bps)
if (1 || q->rate_bps)
sch->flags &= ~TCQ_F_CAN_BYPASS;
else
sch->flags |= TCQ_F_CAN_BYPASS;

0 comments on commit 14cbb5e

Please sign in to comment.
You can’t perform that action at this time.