Re: [PATCH rdma-rc] RDMA/mlx5: Use the proper number of ports

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux