Thread (8 messages) 8 messages, 5 authors, 2020-09-30

Re: [RESEND PATCH iproute2-next 2/2] tc: implement support for terse dump

From: Vlad Buslov <hidden>
Date: 2020-09-30 20:11:31

On Wed 30 Sep 2020 at 20:33, Stephen Hemminger [off-list ref] wrote:
On Wed, 30 Sep 2020 08:57:20 -0700
David Ahern [off-list ref] wrote:
quoted
On 9/30/20 12:36 AM, Vlad Buslov wrote:
quoted
From: Vlad Buslov <redacted>

Implement support for classifier/action terse dump using new TCA_DUMP_FLAGS
tlv with only available flag value TCA_DUMP_FLAGS_TERSE. Set the flag when
user requested it with following example CLI:
  
quoted
tc -s filter show terse dev ens1f0 ingress  
this should be consistent with ip command which has -br for 'brief'
output. so this should be

   tc -s -br filter show dev ens1f0 ingress

Other tc maintainers should weigh in on what data should be presented
for this mode.
Current ip brief mode is good, one line per interface. Something similar with tc
would be best.
Hi Stephen,

My proposed implementation is very simple because it relies on existing
infrastructure that omits printing data that is not included in the
netlink packet. Making terse/brief dump output one line per filter would
require extending every single classifier with either standalone
callback for such print or dedicated block in existing print_op().
Moreover, it would be complicated for me to decide what should be
included in such output for many classifiers that I don't have
experience using.

Do you think complicating implementation like that is worth it?

Regards,
Vlad
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help