IB/srpt: Accept GUIDs as port names
authorBart Van Assche <bart.vanassche@sandisk.com>
Fri, 9 Dec 2016 19:00:33 +0000 (11:00 -0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 27 Jan 2017 19:31:50 +0000 (14:31 -0500)
commit2bce1a6d2209c8c776a9598741f5aa1991689dcb
treeb00abeba5271ef3bdcc2207b9b891b019c1114e0
parenta3dd3a48a5f6ce433e06863d311dfdd57a26bf67
IB/srpt: Accept GUIDs as port names

Port and ACL information must be configured before an initiator
logs in.  Make it possible to configure this information before
a subnet prefix has been assigned to a port by not only accepting
GIDs as target port and initiator port names but by also accepting
port GUIDs.

Add a 'priv' member to struct se_wwn to allow target drivers to
associate their own data with struct se_wwn.

Reported-by: Doug Ledford <dledford@redhat.com>
References: http://www.spinics.net/lists/linux-rdma/msg39505.html
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/srpt/ib_srpt.c
drivers/infiniband/ulp/srpt/ib_srpt.h
drivers/target/target_core_tpg.c
include/target/target_core_base.h