diff options
| author | Carolina Jubran <cjubran@nvidia.com> | 2025-11-30 11:19:38 +0200 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-12-01 17:18:41 -0800 |
| commit | 5cc1bddcfeb298fe7e67952a50894de8afa46db5 (patch) | |
| tree | e4401ff564f172f2a4a695ae3bca2b5d71f1452a /tools/lib/python/abi/helpers.py | |
| parent | 9ecd05a2c872d5eb2ae360d2907cf9375cf2ef5a (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/lib/python/abi/helpers.py')
0 files changed, 0 insertions, 0 deletions
