]> 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)
commit000835ed163f306442c4292bae0cc1df886e065c
tree9b186e8a0786b77b6d6dac0205012ac49d45d73a
parent9ca32d405dc02ebacb424438d09e7944255d51bd
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