]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Allow larger MTU without AIP
authorMike Marciniszyn <mike.marciniszyn@cornelisnetworks.com>
Tue, 8 Feb 2022 19:25:09 +0000 (14:25 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 4 Mar 2022 21:22:02 +0000 (17:22 -0400)
commitfe92e01813b0d8b1509ff3d2d1dc84183709ee67
treed1426f13c5688c28d42e059966dd534bcf5ba69f
parent74f6ffc4d8828e1dfb31b2e918292fa796a8d453
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: 632d5aecd676 ("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>
drivers/infiniband/hw/hfi1/verbs.c