]> git.baikalelectronics.ru Git - kernel.git/commit
IB/srpt: Use the source GID as session name
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 17 Jan 2018 00:14:09 +0000 (16:14 -0800)
committerDoug Ledford <dledford@redhat.com>
Thu, 18 Jan 2018 19:49:24 +0000 (14:49 -0500)
commit4eb4b384f9ced0111a4e8404dfbd2bbd0d35f1a2
tree9b186e8a0786b77b6d6dac0205012ac49d45d73a
parentd772d40dabb33b28718e8b3c1c4d5180a12da9fc
IB/srpt: Use the source GID as session name

Use the source GID as session name instead of the initiator port ID
from the SRP login request. The only functional change in this patch
is that it changes the session name shown in debug messages.

Note: the fifth argument that is passed to target_alloc_session() is
what the SCSI target core uses as key for lookups in the ACL (access
control list) information.

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