diff options
author | 2021-01-12 16:13:22 +0200 | |
---|---|---|
committer | 2021-01-26 15:38:38 -0800 | |
commit | 1fe3e3166b35240615ab7f8276af2bbf2e51f559 (patch) | |
tree | 25319f1145ecf2b622eee6dee095e1258014694c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net/mlx5: Fix memory leak on flow table creation error flow (diff) | |
download | wireguard-linux-1fe3e3166b35240615ab7f8276af2bbf2e51f559.tar.xz wireguard-linux-1fe3e3166b35240615ab7f8276af2bbf2e51f559.zip |
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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions