]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net/mlx5e: E-switch, Fix rate calculation division
authorParav Pandit <parav@nvidia.com>
Wed, 17 Feb 2021 06:23:29 +0000 (08:23 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 10 Mar 2021 19:01:57 +0000 (11:01 -0800)
commit8b90d897823b28a51811931f3bdc79f8df79407e
tree914fc4e29e9ed0804ab451221f1fc8bffbee9039
parent8256c69b2d9c35e94d0e424184c0d27b59bdee12
net/mlx5e: E-switch, Fix rate calculation division

do_div() returns reminder, while cited patch wanted to use
quotient.
Fix it by using quotient.

Fixes: 0e22bfb7c046 ("net/mlx5e: E-switch, Fix rate calculation for overflow")
Signed-off-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Maor Dickman <maord@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c