OSDN Git Service

IB/srpt: Add RDMA/CM support
authorBart Van Assche <bart.vanassche@wdc.com>
Fri, 2 Mar 2018 21:14:15 +0000 (13:14 -0800)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 7 Mar 2018 22:56:14 +0000 (15:56 -0700)
commit63cf1a902c9dd6b0761861ea87fce3663f59403b
treec4cb86f6b24532d00663b87ec53fcbc8ec039b89
parent63231585a6167840172cf7e9045b43ced8a0b6c2
IB/srpt: Add RDMA/CM support

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>
drivers/infiniband/ulp/srpt/ib_srpt.c
drivers/infiniband/ulp/srpt/ib_srpt.h