• P
    [PKT_SCHED]: Restore TBF change semantic · 053cfed7
    Patrick McHardy 提交于
    When TBF was converted to a classful qdisc, the semantic of the limit
    parameter was broken. On initilization an inner bfifo qdisc is created
    for backwards compatibility, when changing parameters however the new
    limit is ignored and the current child qdisc remains in place.
    
    Always replace the child qdisc by the default bfifo when limit is above
    zero, otherwise don't touch the inner qdisc. Current tc version enforce
    a limit above zero, other users can avoid creating the inner qdisc by
    using zero.
    Signed-off-by: NPatrick McHardy <kaber@trash.net>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    053cfed7
sch_tbf.c 12.0 KB