diff options
| author | Christoph Hellwig <hch@lst.de> | 2015-05-01 11:47:56 -0400 |
|---|---|---|
| committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-05-31 01:42:27 -0400 |
| commit | e4aae5af810eaa61c2cd7ba79d95ebfe0d88fe9b (patch) | |
| tree | 7149b3110c42ab0a549502286dd4efe693d09940 /include | |
| parent | 3868e4365f1735698df373733c9d99d7b9a688e8 (diff) | |
target: change core_tpg_register prototype
Remove the unneeded fabric_ptr argument, and change the type argument
to pass in a SPC protocol identifier.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/target/target_core_base.h | 16 | ||||
| -rw-r--r-- | include/target/target_core_fabric.h | 2 |
2 files changed, 7 insertions, 11 deletions
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h index 9f8f5a1b527d..c462fb0a47f4 100644 --- a/include/target/target_core_base.h +++ b/include/target/target_core_base.h | |||
| @@ -125,12 +125,6 @@ enum transport_lun_status_table { | |||
| 125 | TRANSPORT_LUN_STATUS_ACTIVE = 1, | 125 | TRANSPORT_LUN_STATUS_ACTIVE = 1, |
| 126 | }; | 126 | }; |
| 127 | 127 | ||
| 128 | /* struct se_portal_group->se_tpg_type */ | ||
| 129 | enum transport_tpg_type_table { | ||
| 130 | TRANSPORT_TPG_TYPE_NORMAL = 0, | ||
| 131 | TRANSPORT_TPG_TYPE_DISCOVERY = 1, | ||
| 132 | }; | ||
| 133 | |||
| 134 | /* Special transport agnostic struct se_cmd->t_states */ | 128 | /* Special transport agnostic struct se_cmd->t_states */ |
| 135 | enum transport_state_table { | 129 | enum transport_state_table { |
| 136 | TRANSPORT_NO_STATE = 0, | 130 | TRANSPORT_NO_STATE = 0, |
| @@ -864,8 +858,12 @@ struct se_tpg_np { | |||
| 864 | }; | 858 | }; |
| 865 | 859 | ||
| 866 | struct se_portal_group { | 860 | struct se_portal_group { |
| 867 | /* Type of target portal group, see transport_tpg_type_table */ | 861 | /* |
| 868 | enum transport_tpg_type_table se_tpg_type; | 862 | * PROTOCOL IDENTIFIER value per SPC4, 7.5.1. |
| 863 | * | ||
| 864 | * Negative values can be used by fabric drivers for internal use TPGs. | ||
| 865 | */ | ||
| 866 | int proto_id; | ||
| 869 | /* Number of ACLed Initiator Nodes for this TPG */ | 867 | /* Number of ACLed Initiator Nodes for this TPG */ |
| 870 | u32 num_node_acls; | 868 | u32 num_node_acls; |
| 871 | /* Used for PR SPEC_I_PT=1 and REGISTER_AND_MOVE */ | 869 | /* Used for PR SPEC_I_PT=1 and REGISTER_AND_MOVE */ |
| @@ -875,8 +873,6 @@ struct se_portal_group { | |||
| 875 | /* Spinlock for adding/removing sessions */ | 873 | /* Spinlock for adding/removing sessions */ |
| 876 | spinlock_t session_lock; | 874 | spinlock_t session_lock; |
| 877 | spinlock_t tpg_lun_lock; | 875 | spinlock_t tpg_lun_lock; |
| 878 | /* Pointer to $FABRIC_MOD portal group */ | ||
| 879 | void *se_tpg_fabric_ptr; | ||
| 880 | struct list_head se_tpg_node; | 876 | struct list_head se_tpg_node; |
| 881 | /* linked list for initiator ACL list */ | 877 | /* linked list for initiator ACL list */ |
| 882 | struct list_head acl_node_list; | 878 | struct list_head acl_node_list; |
diff --git a/include/target/target_core_fabric.h b/include/target/target_core_fabric.h index e5414744bf2d..e0adc141de07 100644 --- a/include/target/target_core_fabric.h +++ b/include/target/target_core_fabric.h | |||
| @@ -175,7 +175,7 @@ int core_tpg_set_initiator_node_queue_depth(struct se_portal_group *, | |||
| 175 | int core_tpg_set_initiator_node_tag(struct se_portal_group *, | 175 | int core_tpg_set_initiator_node_tag(struct se_portal_group *, |
| 176 | struct se_node_acl *, const char *); | 176 | struct se_node_acl *, const char *); |
| 177 | int core_tpg_register(const struct target_core_fabric_ops *, | 177 | int core_tpg_register(const struct target_core_fabric_ops *, |
| 178 | struct se_wwn *, struct se_portal_group *, void *, int); | 178 | struct se_wwn *, struct se_portal_group *, int); |
| 179 | int core_tpg_deregister(struct se_portal_group *); | 179 | int core_tpg_deregister(struct se_portal_group *); |
| 180 | 180 | ||
| 181 | /* SAS helpers */ | 181 | /* SAS helpers */ |
