mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
net: sched: red: notify drivers about RED's limit parameter
RED qdisc's limit parameter changes the behaviour of the qdisc, for instance if it's set to 0 qdisc will drop all the packets. When replace operation happens and parameter is set to non-0 a new fifo qdisc will be instantiated and replace the old child qdisc which will be destroyed. Drivers need to know the parameter, even if they don't impose the actual limit to be able to reliably reconstruct the Qdisc hierarchy. Signed-off-by: Jakub Kicinski <[email protected]> Reviewed-by: John Hurley <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
6b8417b7e6
commit
c0b7490b19
2 changed files with 2 additions and 0 deletions
|
|
@ -166,6 +166,7 @@ static int red_offload(struct Qdisc *sch, bool enable)
|
|||
opt.set.min = q->parms.qth_min >> q->parms.Wlog;
|
||||
opt.set.max = q->parms.qth_max >> q->parms.Wlog;
|
||||
opt.set.probability = q->parms.max_P;
|
||||
opt.set.limit = q->limit;
|
||||
opt.set.is_ecn = red_use_ecn(q);
|
||||
opt.set.is_harddrop = red_use_harddrop(q);
|
||||
opt.set.qstats = &sch->qstats;
|
||||
|
|
|
|||
Loading…
Reference in a new issue