diff options
author | Roy Novich <[email protected]> | 2023-03-01 15:47:11 +0200 |
---|---|---|
committer | Saeed Mahameed <[email protected]> | 2023-03-21 14:06:31 -0700 |
commit | 6e9d51b1a5cb8d750c3daf89db4f4cdfd1051819 (patch) | |
tree | 8c313ae8214e2da08f40b0e680cbdfacfacc2762 /tools/perf/scripts/python/syscall-counts-by-pid.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 <[email protected]>
Reviewed-by: Tariq Toukan <[email protected]>
Reviewed-by: Aya Levin <[email protected]>
Signed-off-by: Saeed Mahameed <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions