aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorMaxim Mikityanskiy <[email protected]>2022-01-18 13:31:54 +0200
committerSaeed Mahameed <[email protected]>2022-02-01 20:59:42 -0800
commit736dfe4e68b868829a1e89dfef4a44c1580d4478 (patch)
treeea4194f92065a1cd9bea52f6568f1f53fa466ac9 /net/lapb/lapb_timer.c
parentd8e5883d694bb053b19c4142a2d1f43a34f6fe2c (diff)
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 <[email protected]> Reviewed-by: Tariq Toukan <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions