linux/drivers/infiniband/hw
Aharon Landau 639bf4415c 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: ada68c31ba ("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>
2020-09-17 19:33:02 +03:00
..
bnxt_re RDMA second 5.9-rc pull request 2020-09-11 10:02:36 -07:00
cxgb4 treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
efa RDMA 5.9 merge window pull request 2020-08-06 16:43:36 -07:00
hfi1 treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
hns Revert "RDMA/hns: Reserve one sge in order to avoid local length error" 2020-08-20 08:35:19 -03:00
i40iw treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
mlx4 RDMA second 5.9-rc pull request 2020-09-11 10:02:36 -07:00
mlx5 net/mlx5: Refactor query port speed functions 2020-09-17 19:33:02 +03:00
mthca treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
ocrdma treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
qedr treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
qib treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
usnic RDMA/usnic: Fix spelling mistake "transistion" -> "transition" 2020-08-18 13:18:53 -03:00
vmw_pvrdma treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
Makefile RDMA/iw_cxgb3: Remove the iw_cxgb3 module from kernel 2019-10-04 15:08:59 -03:00