linux/drivers/infiniband/hw/mlx5
Mark Bloch 4b83c3caf2 RDMA/mlx5: Use the proper number of ports
The cited commit allowed the driver to operate over HCAs that have
4 physical ports. Use the number of ports of the RDMA device in the for
loop instead of using the struct size.

Fixes: 4cd14d44b1 ("net/mlx5: Support devices with more than 2 ports")
Link: https://lore.kernel.org/r/a54a56c2ede16044a29d119209b35189c662ac72.1659944855.git.leonro@nvidia.com
Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
2022-08-16 16:14:19 +03:00
..
ah.c
cmd.c
cmd.h
cong.c net/mlx5: Move debugfs entries to separate struct 2022-03-09 13:33:02 -08:00
counters.c
counters.h
cq.c RDMA/mlx5: Add a umr recovery flow 2022-06-07 12:57:41 +03:00
devx.c v5.18 merge window pull request 2022-03-24 19:17:39 -07:00
devx.h
dm.c RDMA/mlx5: Support handling of modify-header pattern ICM area 2022-06-13 14:58:01 -07:00
dm.h
doorbell.c
fs.c RDMA/mlx5: Add missing check for return value in get namespace flow 2022-08-02 13:57:27 -03:00
fs.h
gsi.c net/mlx5: Lag, expose number of lag ports 2022-05-09 22:54:00 -07:00
ib_rep.c
ib_rep.h
ib_virt.c RDMA/mlx5: Delete useless module.h include 2022-01-28 13:03:12 -04:00
Kconfig
mad.c IB/mlx5: Expose NDR speed through MAD 2022-01-05 16:40:35 -04:00
main.c RDMA/mlx5: Use the proper number of ports 2022-08-16 16:14:19 +03:00
Makefile RDMA/mlx5: Move init and cleanup of UMR to umr.c 2022-04-25 11:52:59 -03:00
mem.c RDMA/mlx5: Delete useless module.h include 2022-01-28 13:03:12 -04:00
mlx5_ib.h RDMA/mlx5: Rename the mkey cache variables and functions 2022-07-27 14:45:48 -03:00
mr.c RDMA/mlx5: Rename the mkey cache variables and functions 2022-07-27 14:45:48 -03:00
odp.c RDMA/mlx5: Rename the mkey cache variables and functions 2022-07-27 14:45:48 -03:00
qos.c
qp.c v5.19 pull request 2022-05-26 21:08:40 -07:00
qp.h
qpc.c net/mlx5: Use mlx5_cmd_do() in core create_{cq,dct} 2022-02-23 15:21:59 -08:00
restrack.c
restrack.h
srq.c RDMA/mlx5: Delete useless module.h include 2022-01-28 13:03:12 -04:00
srq.h
srq_cmd.c
std_types.c
umr.c RDMA/mlx5: Add a umr recovery flow 2022-06-07 12:57:41 +03:00
umr.h RDMA/mlx5: Clean UMR QP type flow from mlx5_ib_post_send() 2022-04-25 12:00:10 -03:00
wr.c RDMA/mlx5: Clean UMR QP type flow from mlx5_ib_post_send() 2022-04-25 12:00:10 -03:00
wr.h RDMA/mlx5: Expose wqe posting helpers outside of wr.c 2022-04-25 11:53:00 -03:00