diff options
author | 2022-01-18 13:31:54 +0200 | |
---|---|---|
committer | 2022-02-01 20:59:42 -0800 | |
commit | 736dfe4e68b868829a1e89dfef4a44c1580d4478 (patch) | |
tree | ea4194f92065a1cd9bea52f6568f1f53fa466ac9 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net/mlx5: E-Switch, Fix uninitialized variable modact (diff) | |
download | wireguard-linux-736dfe4e68b868829a1e89dfef4a44c1580d4478.tar.xz wireguard-linux-736dfe4e68b868829a1e89dfef4a44c1580d4478.zip |
net/mlx5e: Don't treat small ceil values as unlimited in HTB offload
The hardware spec defines max_average_bw == 0 as "unlimited bandwidth".
max_average_bw is calculated as `ceil / BYTES_IN_MBIT`, which can become
0 when ceil is small, leading to an undesired effect of having no
bandwidth limit.
This commit fixes it by rounding up small values of ceil to 1 Mbit/s.
Fixes: 214baf22870c ("net/mlx5e: Support HTB offload")
Signed-off-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions