From 2bce1a6d2209c8c776a9598741f5aa1991689dcb Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 9 Dec 2016 11:00:33 -0800 Subject: 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 References: http://www.spinics.net/lists/linux-rdma/msg39505.html Signed-off-by: Bart Van Assche Cc: Christoph Hellwig Cc: Nicholas Bellinger Signed-off-by: Doug Ledford --- drivers/target/target_core_tpg.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/target') diff --git a/drivers/target/target_core_tpg.c b/drivers/target/target_core_tpg.c index d99752c6cd60..4a8b180c478b 100644 --- a/drivers/target/target_core_tpg.c +++ b/drivers/target/target_core_tpg.c @@ -448,6 +448,7 @@ static void core_tpg_lun_ref_release(struct percpu_ref *ref) complete(&lun->lun_ref_comp); } +/* Does not change se_wwn->priv. */ int core_tpg_register( struct se_wwn *se_wwn, struct se_portal_group *se_tpg, -- cgit 1.4.1