diff options
author | Maor Gottlieb <maorg@nvidia.com> | 2021-03-04 14:45:15 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2021-03-11 20:12:39 -0400 |
commit | 7852546f524595245382a919e752468f73421451 (patch) | |
tree | 50485cdbf1c3dbca4f78350c69ca5b6cd4bfab8c /drivers/infiniband/core | |
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/20210304124517.1100608-2-leon@kernel.org
Signed-off-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/core')
0 files changed, 0 insertions, 0 deletions