[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAM0EoMnmWXRWWEwanzTOZ_dLBoeCr7UM4DYwFkDmLfS93ijM2g@mail.gmail.com>
Date: Tue, 11 Mar 2025 07:15:26 -0400
From: Jamal Hadi Salim <jhs@...atatu.com>
To: Jakub Kicinski <kuba@...nel.org>
Cc: Jonathan Lennox <jonathan.lennox42@...il.com>, Paolo Abeni <pabeni@...hat.com>,
Jonathan Lennox <jonathan.lennox@....com>, David Ahern <dsahern@...nel.org>, netdev@...r.kernel.org,
Stephen Hemminger <stephen@...workplumber.org>, Cong Wang <xiyou.wangcong@...il.com>,
Jiri Pirko <jiri@...nulli.us>, Pedro Tammela <pctammela@...atatu.com>
Subject: Re: [PATCH net-next] tc-tests: Update tc police action tests for tc
buffer size rounding fixes.
On Tue, Mar 11, 2025 at 5:49 AM Jakub Kicinski <kuba@...nel.org> wrote:
>
> On Tue, 11 Mar 2025 10:16:14 +0100 Paolo Abeni wrote:
> > AFAICS this fix will break the tests when running all version of
> > iproute2 except the upcoming one. I think this is not good enough; you
> > should detect the tc tool version and update expected output accordingly.
> >
> > If that is not possible, I think it would be better to simply revert the
> > TC commit.
>
> Alternatively since it's a regex match, maybe we could accept both?
>
> - "matchPattern": "action order [0-9]*: police 0x1 rate 7Mbit burst 1024Kb mtu 2Kb action reclassify",
> + "matchPattern": "action order [0-9]*: police 0x1 rate 7Mbit burst (1Mb|1024Kb) mtu 2Kb action reclassify",
>
> ? Not sure which option is most "correct" from TDC's perspective..
It should work. Paolo's suggestion is also reasonable.
cheers,
jamal
Powered by blists - more mailing lists