diff options
author | Roy Novich <royno@nvidia.com> | 2023-03-01 15:47:11 +0200 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2023-03-21 14:06:31 -0700 |
commit | 6e9d51b1a5cb8d750c3daf89db4f4cdfd1051819 (patch) | |
tree | 8c313ae8214e2da08f40b0e680cbdfacfacc2762 /tools/perf/scripts/python/stackcollapse.py | |
parent | 922f56e9a795d6f3dd72d3428ebdd7ee040fa855 (diff) |
net/mlx5e: Initialize link speed to zero
mlx5e_port_max_linkspeed does not guarantee value assignment for speed.
Avoid cases where link_speed might be used uninitialized. In case
mlx5e_port_max_linkspeed fails, a default link speed of 50000 will be
used for the calculations.
Fixes: 3f6d08d196b2 ("net/mlx5e: Add RSS support for hairpin")
Signed-off-by: Roy Novich <royno@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Aya Levin <ayal@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions