diff options
author | Parav Pandit <parav@nvidia.com> | 2021-01-12 17:13:22 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2021-02-12 05:50:09 +0300 |
commit | 0e22bfb7c046e7c8ae339f396e78a0976633698c (patch) | |
tree | 818443c291b65816b853894ff025b0461514694d /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 9c899aa6ac6ba1e28feac82871d44af0b0e7e05c (diff) | |
download | linux-0e22bfb7c046e7c8ae339f396e78a0976633698c.tar.xz |
net/mlx5e: E-switch, Fix rate calculation for overflow
rate_bytes_ps is a 64-bit field. It passed as 32-bit field to
apply_police_params(). Due to this when police rate is higher
than 4Gbps, 32-bit calculation ignores the carry. This results
in incorrect rate configurationn the device.
Fix it by performing 64-bit calculation.
Fixes: fcb64c0f5640 ("net/mlx5: E-Switch, add ingress rate support")
Signed-off-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Eli Cohen <elic@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions