Re: [PATCH net-next] net: sched: add checks for tbf classid

2018-12-19 Thread Tonghao Zhang
On Thu, Dec 20, 2018 at 1:40 AM Cong Wang wrote: > > On Tue, Dec 18, 2018 at 11:08 PM wrote: > > > > From: Tonghao Zhang > > > > 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 s

Re: [PATCH net-next] net: sched: add checks for tbf classid

2018-12-19 Thread Cong Wang
On Tue, Dec 18, 2018 at 11:08 PM wrote: > > From: Tonghao Zhang > > 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.5

[PATCH net-next] net: sched: add checks for tbf classid

2018-12-18 Thread xiangxia . m . yue
From: Tonghao Zhang 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 cl