OSDN Git Service

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)
commit2dc98f09f9e68fea37ca67b5b4a406f5906c6d8b
tree9b186e8a0786b77b6d6dac0205012ac49d45d73a
parentba60c84f82f6facfe66688073458f233e4e5ba51
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