On Sun, Aug 31, 2025 at 11:06:40AM +0300, Carolina Jubran wrote:
> 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.
> 
> Fixes: 23ca32e4ead4 ("selftests: drv-net: Add test for devlink-rate traffic 
> class bandwidth distribution")
> Tested-by: Carolina Jubran <cjub...@nvidia.com>
> Signed-off-by: Carolina Jubran <cjub...@nvidia.com>
> Reviewed-by: Cosmin Ratiu <cra...@nvidia.com>
> Reviewed-by: Nimrod Oren <no...@nvidia.com>

Reviewed-by: Simon Horman <ho...@kernel.org>


Reply via email to