diff options
author | Aharon Landau <aharonl@mellanox.com> | 2020-09-17 12:02:21 +0300 |
---|---|---|
committer | Leon Romanovsky <leonro@nvidia.com> | 2020-09-17 19:33:02 +0300 |
commit | 639bf4415cadff4c18e13aa5cb0dba2d443e3aa7 (patch) | |
tree | 406a2c2778ed4335c8426f4dae2610246f5bbb6d /drivers/infiniband/hw/vmw_pvrdma | |
parent | Linux 5.9-rc5 (diff) | |
download | linux-dev-639bf4415cadff4c18e13aa5cb0dba2d443e3aa7.tar.xz linux-dev-639bf4415cadff4c18e13aa5cb0dba2d443e3aa7.zip |
net/mlx5: Refactor query port speed functions
The functions mlx5_query_port_link_width_oper and
mlx5_query_port_ib_proto_oper are always called together, so combine them
to a new function called mlx5_query_port_oper to avoid duplication.
And while the mlx5i_get_port_settings is the same as
mlx5_query_port_oper therefore let's remove it.
According to the IB spec link_width_oper and ib_proto_oper should be u16
and not as written u8, so perform casting as a preparation to cross-RDMA
patch which will fix that type for all drivers in the RDMA subsystem.
Fixes: ada68c31ba9c ("net/mlx5: Introduce a new header file for physical port functions")
Signed-off-by: Aharon Landau <aharonl@mellanox.com>
Reviewed-by: Michael Guralnik <michaelgur@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Diffstat (limited to 'drivers/infiniband/hw/vmw_pvrdma')
0 files changed, 0 insertions, 0 deletions