linux_dsm_epyc7002/drivers/infiniband/ulp
Bart Van Assche b470c154c6 IB/srp: Disallow duplicate RDMA/CM connections
According to the SRP standard the INITIATOR and TARGET PORT IDENTIFIER
fields from the login request specify the I_T nexus. Whether or not an
SRP target closes an existing connection for an I_T nexus when a login
request is received depends on the value of the MULTICHANNEL field in
the login request. The SRP initiator derives the value of the
INITIATOR and TARGET PORT IDENTIFIER fields from the .id_ext,
.ioc_guid, .initiator_ext .sgid members of the srp_target_port
structure. This means that the .rdma_cm.dst check must be removed from
srp_conn_unique(). This patch avoids that for target ports that have
multiple addresses, e.g. an IPv4 and an IPv6 address, and if a
connection is established to both target port addresses, that the
initiator logs in alternatingly every 10 seconds to the other target
port address. An SRP target must namely terminate all but one
connections for a given I_T nexus if the MULTICHANNEL field has not
been set in the login request.

Fixes: 19f313438c ("IB/srp: Add RDMA/CM support")
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2018-03-19 13:54:50 -06:00
..
ipoib IB/{core, ipoib}: Simplify ib_find_gid() for unused ndev 2018-03-15 14:40:37 -06:00
iser vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
isert Linux 4.15 2018-01-30 09:30:00 -07:00
opa_vnic infiniband: fix ulp/opa_vnic/opa_vnic_vema.c kernel-doc notation 2018-01-10 22:00:34 -07:00
srp IB/srp: Disallow duplicate RDMA/CM connections 2018-03-19 13:54:50 -06:00
srpt drivers/infiniband/ulp/srpt/ib_srpt.c: fix build with gcc-4.4.4 2018-03-14 18:14:08 -04:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00