linux/drivers/infiniband/hw
Mike Marciniszyn b135e324d7 IB/hfi1: Allow larger MTU without AIP
The AIP code signals the phys_mtu in the following query_port()
fragment:

	props->phys_mtu = HFI1_CAP_IS_KSET(AIP) ? hfi1_max_mtu :
				ib_mtu_enum_to_int(props->max_mtu);

Using the largest MTU possible should not depend on AIP.

Fix by unconditionally using the hfi1_max_mtu value.

Fixes: 6d72344cf6 ("IB/ipoib: Increase ipoib Datagram mode MTU's upper limit")
Link: https://lore.kernel.org/r/1644348309-174874-1-git-send-email-mike.marciniszyn@cornelisnetworks.com
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@cornelisnetworks.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2022-03-04 17:22:02 -04:00
..
bnxt_re RDMA/bnxt_re: Fix endianness warning for req.pkey 2021-12-06 19:56:30 -04:00
cxgb4 RDMA/cxgb4: Set queue pair state when being queried 2022-01-05 15:51:51 -04:00
efa RDMA/efa: Add support for dmabuf memory regions 2021-10-28 08:58:26 -03:00
hfi1 IB/hfi1: Allow larger MTU without AIP 2022-03-04 17:22:02 -04:00
hns Linux 5.16 2022-01-13 13:21:03 -04:00
irdma RDMA/irdma: Remove incorrect masking of PD 2022-02-28 12:07:40 -04:00
mlx4 RDMA/mlx4: remove redundant assignment to variable nreq 2022-02-01 10:55:43 -04:00
mlx5 RDMA/mlx5: Reorder calls to pcie_relaxed_ordering_enabled() 2022-02-23 14:59:13 -04:00
mthca RDMA/mthca: Delete useless module.h include 2022-01-28 13:03:12 -04:00
ocrdma RDMA/ocrdma: Remove unneeded variable 2022-01-05 13:47:43 -04:00
qedr RDMA/qedr: Fix reporting max_{send/recv}_wr attrs 2021-12-07 14:59:26 -04:00
qib RDMA/qib: Delete useless module.h include 2022-01-28 13:03:13 -04:00
usnic RDMA/usnic: Delete useless module.h include 2022-01-28 13:03:13 -04:00
vmw_pvrdma RDMA/pvrdma: Remove useless DMA-32 fallback configuration 2022-01-28 10:49:04 -04:00
Makefile RDMA/irdma: Add irdma Kconfig/Makefile and remove i40iw 2021-06-02 20:06:36 -03:00