Re: [PATCH iproute2-next v2 2/2] tc: implement support for terse dump
From: Jamal Hadi Salim <jhs@mojatatu.com>
Date: 2020-10-08 12:58:13
On 2020-10-07 9:40 p.m., David Ahern wrote:
On 9/30/20 9:59 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 (-br for 'brief'):quoted
tc -s -br filter show dev ens1f0 ingressIn terse mode dump only outputs essential data needed to identify the filter and action (handle, cookie, etc.) and stats, if requested by the user. The intention is to significantly improve rule dump rate by omitting all static data that do not change after rule is created.I really want to get agreement from other heavy tc users about what the right information is for a brief mode.
Vlad, would have been helpful in your commit log to show both terse vs no terse (or at least the terse output). Cant tell short of patching and testing. Having said that: The differentiation via TCA_DUMP_FLAGS_TERSE in the request is in my opinion sufficient to accept the patch. Also, assuming you have tested with outstanding tc tests for the first patch i think it looks reasoan cheers, jamal