[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250312164720.283689-1-jonathan.lennox@8x8.com>
Date: Wed, 12 Mar 2025 16:47:20 +0000
From: Jonathan Lennox <jonathan.lennox42@...il.com>
To: Jakub Kicinski <kuba@...nel.org>,
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: [PATCH net-next v2] tc-tests: Update tc police action tests for tc buffer size rounding fixes.
Before tc's recent change to fix rounding errors, several tests which
specified a burst size of "1m" would translate back to being 1048574
bytes (2b less than 1Mb). sprint_size prints this as "1024Kb".
With the tc fix, the burst size is instead correctly reported as
1048576 bytes (precisely 1Mb), which sprint_size prints as "1Mb".
This updates the expected output in the tests' matchPattern values
to accept either the old or the new output.
Signed-off-by: Jonathan Lennox <jonathan.lennox@....com>
---
.../selftests/tc-testing/tc-tests/actions/police.json | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
View attachment "0001-tc-tests-Update-tc-police-action-tests-for-tc-buffer.patch" of type "text/x-patch" (2910 bytes)
Powered by blists - more mailing lists