From 3749ca972b08e40f28239e413442a78d7b76c878 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 14 Dec 2016 12:31:23 +0000 Subject: [PATCH] ib_srpt: Create QP on the RDMA port the initiator logged in to git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7050 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 52a66b8bf..2d4f7340a 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -2267,6 +2267,7 @@ retry: sdev->dev_attr.max_sge - max_sge_delta)); qp_init->cap.max_send_sge = ch->max_sge; qp_init->cap.max_recv_sge = ch->max_sge; + qp_init->port_num = ch->sport->port; if (sdev->use_srq) { qp_init->srq = sdev->srq; } else {