On Mon, Aug 08, 2022 at 10:48:06AM +0300, Leon Romanovsky wrote: > From: Mark Bloch <mbloch@xxxxxxxxxx> > > 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: 4cd14d44b11d ("net/mlx5: Support devices with more than 2 ports") > Signed-off-by: Mark Bloch <mbloch@xxxxxxxxxx> > Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxx> > --- > drivers/infiniband/hw/mlx5/main.c | 34 +++++++++++++++---------------- > 1 file changed, 16 insertions(+), 18 deletions(-) > Thanks, applied.