[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAM_iQpX194yvGQ5DeT8fpPwpsH1_8bb-U5-t7n5tfv+Yar3TUQ@mail.gmail.com>
Date: Wed, 19 Dec 2018 09:40:03 -0800
From: Cong Wang <xiyou.wangcong@...il.com>
To: Tonghao Zhang <xiangxia.m.yue@...il.com>
Cc: Linux Kernel Network Developers <netdev@...r.kernel.org>
Subject: Re: [PATCH net-next] net: sched: add checks for tbf classid
On Tue, Dec 18, 2018 at 11:08 PM <xiangxia.m.yue@...il.com> wrote:
>
> From: Tonghao Zhang <xiangxia.m.yue@...il.com>
>
> tbf has only one qdisc class. When adding qdisc for it,
> we should check the classid, otherwise the parentid:1
> classid is available, no matter what classid tc specified.
>
> $ tc qdisc add dev eth1 handle 10: root tbf rate 0.5mbit burst 5kb latency 70ms
> $ tc class show dev eth1
> class tbf 10:1 parent 10:
>
> $ tc qdisc add dev eth1 parent 10:2 handle 20: pfifo_fast
> or
> $ tc qdisc add dev eth1 parent 10:0 handle 20: pfifo_fast
> $ tc class show dev eth1
> class tbf 10:1 parent 10: leaf 20:
I think it is the intended behavior of tbf class.
Powered by blists - more mailing lists