summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net/lib/py/utils.py
diff options
context:
space:
mode:
authorCarolina Jubran <cjubran@nvidia.com>2025-11-30 11:19:38 +0200
committerJakub Kicinski <kuba@kernel.org>2025-12-01 17:18:41 -0800
commit5cc1bddcfeb298fe7e67952a50894de8afa46db5 (patch)
treee4401ff564f172f2a4a695ae3bca2b5d71f1452a /tools/testing/selftests/net/lib/py/utils.py
parent9ecd05a2c872d5eb2ae360d2907cf9375cf2ef5a (diff)
selftests: drv-net: Fix tolerance calculation in devlink_rate_tc_bw.py
Currently, tolerance is computed against the TC’s expected percentage, making TC3 (20%) validation overly strict and TC4 (80%) overly loose. Update BandwidthValidator to take a dict of shares and compute bounds relative to the overall total, so that all shares are validated consistently. Signed-off-by: Carolina Jubran <cjubran@nvidia.com> Reviewed-by: Cosmin Ratiu <cratiu@nvidia.com> Reviewed-by: Nimrod Oren <noren@nvidia.com> Link: https://patch.msgid.link/20251130091938.4109055-7-cjubran@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions