Skip to content

Commit

Permalink
IB/srpt: Add RDMA/CM support
Browse files Browse the repository at this point in the history
Add a parameter for configuring the port on which the ib_srpt driver
listens for incoming RDMA/CM connections, namely
/sys/kernel/config/target/srpt/discovery_auth/rdma_cm_port. The default
value for this parameter is 0 which means "do not listen for incoming
RDMA/CM connections". Add RDMA/CM support to all code that handles
connection state changes. Modify srpt_init_nodeacl() such that ACLs can
be configured for IPv4 and IPv6 addresses.

Note: incoming connection requests are only accepted for ports that
have been enabled. See also the "if (!sport->enabled)" code in the
connection request handler. See also the following configfs attribute:
/sys/kernel/config/target/srpt/$port/$port/enable.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
  • Loading branch information
Bart Van Assche authored and Jason Gunthorpe committed Mar 7, 2018
1 parent 6323158 commit 63cf1a9
Show file tree
Hide file tree
Showing 2 changed files with 325 additions and 63 deletions.
Loading

0 comments on commit 63cf1a9

Please sign in to comment.