Skip to content

Commit 5bc4bc7

Browse files
chuckleveramschuma-ntap
authored andcommitted
xprtrdma: Remove Tavor MTU setting
Clean up. Remove HCA-specific clutter in xprtrdma, which is supposed to be device-independent. Hal Rosenstock <hal@dev.mellanox.co.il> observes: > Note that there is OpenSM option (enable_quirks) to return 1K MTU > in SA PathRecord responses for Tavor so that can be used for this. > The default setting for enable_quirks is FALSE so that would need > changing. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
1 parent ec62f40 commit 5bc4bc7

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

net/sunrpc/xprtrdma/verbs.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
*/
4949

5050
#include <linux/interrupt.h>
51-
#include <linux/pci.h> /* for Tavor hack below */
5251
#include <linux/slab.h>
5352
#include <asm/bitops.h>
5453

@@ -920,19 +919,6 @@ rpcrdma_ep_connect(struct rpcrdma_ep *ep, struct rpcrdma_ia *ia)
920919
}
921920
}
922921

923-
/* XXX Tavor device performs badly with 2K MTU! */
924-
if (strnicmp(ia->ri_id->device->dma_device->bus->name, "pci", 3) == 0) {
925-
struct pci_dev *pcid = to_pci_dev(ia->ri_id->device->dma_device);
926-
if (pcid->device == PCI_DEVICE_ID_MELLANOX_TAVOR &&
927-
(pcid->vendor == PCI_VENDOR_ID_MELLANOX ||
928-
pcid->vendor == PCI_VENDOR_ID_TOPSPIN)) {
929-
struct ib_qp_attr attr = {
930-
.path_mtu = IB_MTU_1024
931-
};
932-
rc = ib_modify_qp(ia->ri_id->qp, &attr, IB_QP_PATH_MTU);
933-
}
934-
}
935-
936922
ep->rep_connected = 0;
937923

938924
rc = rdma_connect(ia->ri_id, &ep->rep_remote_cma);

0 commit comments

Comments
 (0)