From: <bva...@us...> - 2014-04-16 07:30:38
|
Revision: 5423 http://sourceforge.net/p/scst/svn/5423 Author: bvassche Date: 2014-04-16 07:30:34 +0000 (Wed, 16 Apr 2014) Log Message: ----------- ib_srpt: Disable RDMA access by the initiator With the SRP protocol all RDMA operations are initiated by the target. Since no RDMA operations are initiated by the initiator, do not grant the initiator permission to submit RDMA reads or writes to the target. Modified Paths: -------------- trunk/srpt/src/ib_srpt.c Modified: trunk/srpt/src/ib_srpt.c =================================================================== --- trunk/srpt/src/ib_srpt.c 2014-04-16 06:35:19 UTC (rev 5422) +++ trunk/srpt/src/ib_srpt.c 2014-04-16 07:30:34 UTC (rev 5423) @@ -1121,8 +1121,6 @@ return -ENOMEM; attr->qp_state = IB_QPS_INIT; - attr->qp_access_flags = IB_ACCESS_LOCAL_WRITE | IB_ACCESS_REMOTE_READ | - IB_ACCESS_REMOTE_WRITE; attr->port_num = ch->sport->port; attr->pkey_index = ch->pkey_index; @@ -1156,6 +1154,7 @@ if (ret) goto out; + attr->qp_access_flags = 0; attr->max_dest_rd_atomic = 4; ret = ib_modify_qp(qp, attr, attr_mask); @@ -1189,6 +1188,7 @@ if (ret) goto out; + attr->qp_access_flags = 0; attr->max_rd_atomic = 4; /* This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |