]> git.baikalelectronics.ru Git - kernel.git/commit
[PKT_SCHED]: Restore TBF change semantic
authorPatrick McHardy <kaber@trash.net>
Tue, 21 Mar 2006 03:01:21 +0000 (19:01 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Mar 2006 03:01:21 +0000 (19:01 -0800)
commit865f0d0e33119982c30b18548cf39e4d8d3c35e7
treeeddf99fddfdb6979c422c427a60a164135e0fc20
parent5aea2c935842ace446717ad79de3d2d4b4a2945c
[PKT_SCHED]: Restore TBF change semantic

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: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_tbf.c