• Bart Van Assche's avatar
    IB/srpt: Add RDMA/CM support · 63cf1a90
    Bart Van Assche authored
    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: default avatarBart Van Assche <bart.vanassche@wdc.com>
    Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
    63cf1a90
ib_srpt.h 13.6 KB