lkml.org 
[lkml]   [2017]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH 2/2] iproute2: add support for invisible qdisc dumping
On Mon, 27 Feb 2017, Phil Sutter wrote:

> > Support the new TCA_DUMP_INVISIBLE netlink attribute that allows asking
> > kernel to perform 'full qdisc dump', as for historical reasons some of the
> > default qdiscs are being hidden by the kernel.
> >
> > The command syntax is being extended by voluntary 'invisible' argument to
> > 'tc qdisc show'.
> >
> > Signed-off-by: Jiri Kosina <jkosina@suse.cz>
> > ---
> > tc/tc_qdisc.c | 25 +++++++++++++++++++++++--
> > 1 file changed, 23 insertions(+), 2 deletions(-)
>
> Would you mind adding a description of the new keyword to tc man page as
> well?

Seems like tc manpage would need more updates, as it doesn't seem to
reflect the '[ ingress | clsact ]' possibility either. So I'll send this
as a followup patch, fixing all these at once.

> > diff --git a/tc/tc_qdisc.c b/tc/tc_qdisc.c
> > index 3a3701c2..29da9269 100644
> > --- a/tc/tc_qdisc.c
> > +++ b/tc/tc_qdisc.c
> > @@ -34,7 +34,7 @@ static int usage(void)
> > fprintf(stderr, " [ stab [ help | STAB_OPTIONS] ]\n");
> > fprintf(stderr, " [ [ QDISC_KIND ] [ help | OPTIONS ] ]\n");
> > fprintf(stderr, "\n");
> > - fprintf(stderr, " tc qdisc show [ dev STRING ] [ ingress | clsact ]\n");
> > + fprintf(stderr, " tc qdisc show [ dev STRING ] [ ingress | clsact | invisible ]\n");
>
> Doesn't look like these are mutually exclusive. Therefore I would
> suggest fixing the syntax to:
>
> | + fprintf(stderr, " tc qdisc show [ dev STRING ] [ ingress | clsact ] [ invisible ]\n");

Makes sense, will include this in v2.

Thanks,

--
Jiri Kosina
SUSE Labs

\
 
 \ /
  Last update: 2017-03-08 11:57    [W:0.052 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site