On Tue, Sep 09, 2025 at 01:13:53PM +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 <[email protected]>
> Signed-off-by: Carolina Jubran <[email protected]>
> Reviewed-by: Cosmin Ratiu <[email protected]>
> Reviewed-by: Nimrod Oren <[email protected]>
Reviewed-by: Simon Horman <[email protected]>