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 --- include/target/target_core_base.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/target') diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h index 29e6858bb164..541b52bc811c 100644 --- a/include/target/target_core_base.h +++ b/include/target/target_core_base.h @@ -909,6 +909,7 @@ static inline struct se_portal_group *param_to_tpg(struct config_item *item) struct se_wwn { struct target_fabric_configfs *wwn_tf; + void *priv; struct config_group wwn_group; struct config_group fabric_stat_group; }; -- cgit v1.2.3