diff options
author | Maor Gottlieb <[email protected]> | 2021-03-04 14:45:15 +0200 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2021-03-11 20:12:39 -0400 |
commit | 7852546f524595245382a919e752468f73421451 (patch) | |
tree | 50485cdbf1c3dbca4f78350c69ca5b6cd4bfab8c /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | 14d05b552b5dbc75d664b8afe875114735673ffc (diff) |
RDMA/mlx5: Fix query RoCE port
mlx5_is_roce_enabled returns the devlink RoCE init value, therefore it
should be used only when driver is loaded. Instead we just need to read
the roce_en field.
In addition, rename mlx5_is_roce_enabled to mlx5_is_roce_init_enabled.
Fixes: 7a58779edd75 ("IB/mlx5: Improve query port for representor port")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Maor Gottlieb <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions