linux/drivers/infiniband
Parav Pandit 131796524f IB/mlx5: Use rdma_for_each_port for port iteration
Instead of open coding the loop for port iteration, use rdma_for_each_port
macro provided by core.

To use such macro, early initialization of phys_port_cnt is needed.
Hence, initialize such constant early enough in the init stage.

Whichever functions are called with port using rdma_for_each_port(),
convert their port type from u8 to unsigned int to match the core API.

Link: https://lore.kernel.org/r/20210203130133.4057329-6-leon@kernel.org
Signed-off-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2021-02-05 12:06:01 -04:00
..
core RDMA/core: Introduce and use API to read port immutable data 2021-02-05 12:06:01 -04:00
hw IB/mlx5: Use rdma_for_each_port for port iteration 2021-02-05 12:06:01 -04:00
sw RDMA/sw/rdmavt/qp: Fix kernel-doc formatting problem 2021-01-28 15:42:27 -04:00
ulp IB/iser: Simplify prot_caps setting 2021-01-19 20:02:07 -04:00
Kconfig RDMA/umem: Support importing dma-buf as user memory region 2021-01-20 16:07:52 -04:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00