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.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>

authored by Bart Van Assche and committed by Jason Gunthorpe bec40c26 f8978bd9

+1 -2
+1 -2
drivers/infiniband/ulp/srpt/ib_srpt.c
··· 1013 1013 return -ENOMEM; 1014 1014 1015 1015 attr->qp_state = IB_QPS_INIT; 1016 - attr->qp_access_flags = IB_ACCESS_LOCAL_WRITE | IB_ACCESS_REMOTE_READ | 1017 - IB_ACCESS_REMOTE_WRITE; 1016 + attr->qp_access_flags = IB_ACCESS_LOCAL_WRITE; 1018 1017 attr->port_num = ch->sport->port; 1019 1018 attr->pkey_index = 0; 1020 1019