Re: Deleting child qdisc doesn't reset parent to default qdisc?
From: Eric Dumazet
Date: Fri Apr 15 2016 - 10:58:55 EST
On Fri, 2016-04-15 at 08:42 -0400, Jamal Hadi Salim wrote:
> On 16-04-14 01:49 PM, Eric Dumazet wrote:
>
> > And what would be the chosen behavior ?
> >
>
> TBF is probably a bad example because it started life as
> a classless qdisc. There was only one built-in fifo queue
> that was shaped. Then someone made it classful and changed
> this behavior. To me it sounds reasonable to have the
> default behavior restored. At minimal consistency.
Then you need to save the initial qdisc (bfifo for TBF) in a special
place, to make sure the delete operation is guaranteed to succeed.
Or fail the delete if the bfifo can not be allocated.
I can tell that determinism if far more interesting than usability for
some users occasionally playing with tc.
Surely the silent fallback to noop_qdisc is wrong.
Anyway, we probably need to improve our ability to understand qdisc
hierarchies. Having some hidden qdiscs is the real problem here.
We need to add some hash table so that qdisc_match_from_root() does not
have to scan hundred of qdiscs.