diff options
68 files changed, 3163 insertions, 6312 deletions
diff --git a/Documentation/target/tcm_mod_builder.py b/Documentation/target/tcm_mod_builder.py index 6085e1f19c9d..949de191fcdc 100755 --- a/Documentation/target/tcm_mod_builder.py +++ b/Documentation/target/tcm_mod_builder.py | |||
| @@ -50,15 +50,6 @@ def tcm_mod_build_FC_include(fabric_mod_dir_var, fabric_mod_name): | |||
| 50 | buf = "#define " + fabric_mod_name.upper() + "_VERSION \"v0.1\"\n" | 50 | buf = "#define " + fabric_mod_name.upper() + "_VERSION \"v0.1\"\n" |
| 51 | buf += "#define " + fabric_mod_name.upper() + "_NAMELEN 32\n" | 51 | buf += "#define " + fabric_mod_name.upper() + "_NAMELEN 32\n" |
| 52 | buf += "\n" | 52 | buf += "\n" |
| 53 | buf += "struct " + fabric_mod_name + "_nacl {\n" | ||
| 54 | buf += " /* Binary World Wide unique Port Name for FC Initiator Nport */\n" | ||
| 55 | buf += " u64 nport_wwpn;\n" | ||
| 56 | buf += " /* ASCII formatted WWPN for FC Initiator Nport */\n" | ||
| 57 | buf += " char nport_name[" + fabric_mod_name.upper() + "_NAMELEN];\n" | ||
| 58 | buf += " /* Returned by " + fabric_mod_name + "_make_nodeacl() */\n" | ||
| 59 | buf += " struct se_node_acl se_node_acl;\n" | ||
| 60 | buf += "};\n" | ||
| 61 | buf += "\n" | ||
| 62 | buf += "struct " + fabric_mod_name + "_tpg {\n" | 53 | buf += "struct " + fabric_mod_name + "_tpg {\n" |
| 63 | buf += " /* FC lport target portal group tag for TCM */\n" | 54 | buf += " /* FC lport target portal group tag for TCM */\n" |
| 64 | buf += " u16 lport_tpgt;\n" | 55 | buf += " u16 lport_tpgt;\n" |
| @@ -69,8 +60,6 @@ def tcm_mod_build_FC_include(fabric_mod_dir_var, fabric_mod_name): | |||
| 69 | buf += "};\n" | 60 | buf += "};\n" |
| 70 | buf += "\n" | 61 | buf += "\n" |
| 71 | buf += "struct " + fabric_mod_name + "_lport {\n" | 62 | buf += "struct " + fabric_mod_name + "_lport {\n" |
| 72 | buf += " /* SCSI protocol the lport is providing */\n" | ||
| 73 | buf += " u8 lport_proto_id;\n" | ||
| 74 | buf += " /* Binary World Wide unique Port Name for FC Target Lport */\n" | 63 | buf += " /* Binary World Wide unique Port Name for FC Target Lport */\n" |
| 75 | buf += " u64 lport_wwpn;\n" | 64 | buf += " u64 lport_wwpn;\n" |
| 76 | buf += " /* ASCII formatted WWPN for FC Target Lport */\n" | 65 | buf += " /* ASCII formatted WWPN for FC Target Lport */\n" |
| @@ -105,14 +94,6 @@ def tcm_mod_build_SAS_include(fabric_mod_dir_var, fabric_mod_name): | |||
| 105 | buf = "#define " + fabric_mod_name.upper() + "_VERSION \"v0.1\"\n" | 94 | buf = "#define " + fabric_mod_name.upper() + "_VERSION \"v0.1\"\n" |
| 106 | buf += "#define " + fabric_mod_name.upper() + "_NAMELEN 32\n" | 95 | buf += "#define " + fabric_mod_name.upper() + "_NAMELEN 32\n" |
| 107 | buf += "\n" | 96 | buf += "\n" |
| 108 | buf += "struct " + fabric_mod_name + "_nacl {\n" | ||
| 109 | buf += " /* Binary World Wide unique Port Name for SAS Initiator port */\n" | ||
| 110 | buf += " u64 iport_wwpn;\n" | ||
| 111 | buf += " /* ASCII formatted WWPN for Sas Initiator port */\n" | ||
| 112 | buf += " char iport_name[" + fabric_mod_name.upper() + "_NAMELEN];\n" | ||
| 113 | buf += " /* Returned by " + fabric_mod_name + "_make_nodeacl() */\n" | ||
| 114 | buf += " struct se_node_acl se_node_acl;\n" | ||
| 115 | buf += "};\n\n" | ||
| 116 | buf += "struct " + fabric_mod_name + "_tpg {\n" | 97 | buf += "struct " + fabric_mod_name + "_tpg {\n" |
| 117 | buf += " /* SAS port target portal group tag for TCM */\n" | 98 | buf += " /* SAS port target portal group tag for TCM */\n" |
| 118 | buf += " u16 tport_tpgt;\n" | 99 | buf += " u16 tport_tpgt;\n" |
| @@ -122,8 +103,6 @@ def tcm_mod_build_SAS_include(fabric_mod_dir_var, fabric_mod_name): | |||
| 122 | buf += " struct se_portal_group se_tpg;\n" | 103 | buf += " struct se_portal_group se_tpg;\n" |
| 123 | buf += "};\n\n" | 104 | buf += "};\n\n" |
| 124 | buf += "struct " + fabric_mod_name + "_tport {\n" | 105 | buf += "struct " + fabric_mod_name + "_tport {\n" |
| 125 | buf += " /* SCSI protocol the tport is providing */\n" | ||
| 126 | buf += " u8 tport_proto_id;\n" | ||
| 127 | buf += " /* Binary World Wide unique Port Name for SAS Target port */\n" | 106 | buf += " /* Binary World Wide unique Port Name for SAS Target port */\n" |
| 128 | buf += " u64 tport_wwpn;\n" | 107 | buf += " u64 tport_wwpn;\n" |
| 129 | buf += " /* ASCII formatted WWPN for SAS Target port */\n" | 108 | buf += " /* ASCII formatted WWPN for SAS Target port */\n" |
| @@ -158,12 +137,6 @@ def tcm_mod_build_iSCSI_include(fabric_mod_dir_var, fabric_mod_name): | |||
| 158 | buf = "#define " + fabric_mod_name.upper() + "_VERSION \"v0.1\"\n" | 137 | buf = "#define " + fabric_mod_name.upper() + "_VERSION \"v0.1\"\n" |
| 159 | buf += "#define " + fabric_mod_name.upper() + "_NAMELEN 32\n" | 138 | buf += "#define " + fabric_mod_name.upper() + "_NAMELEN 32\n" |
| 160 | buf += "\n" | 139 | buf += "\n" |
| 161 | buf += "struct " + fabric_mod_name + "_nacl {\n" | ||
| 162 | buf += " /* ASCII formatted InitiatorName */\n" | ||
| 163 | buf += " char iport_name[" + fabric_mod_name.upper() + "_NAMELEN];\n" | ||
| 164 | buf += " /* Returned by " + fabric_mod_name + "_make_nodeacl() */\n" | ||
| 165 | buf += " struct se_node_acl se_node_acl;\n" | ||
| 166 | buf += "};\n\n" | ||
| 167 | buf += "struct " + fabric_mod_name + "_tpg {\n" | 140 | buf += "struct " + fabric_mod_name + "_tpg {\n" |
| 168 | buf += " /* iSCSI target portal group tag for TCM */\n" | 141 | buf += " /* iSCSI target portal group tag for TCM */\n" |
| 169 | buf += " u16 tport_tpgt;\n" | 142 | buf += " u16 tport_tpgt;\n" |
| @@ -173,8 +146,6 @@ def tcm_mod_build_iSCSI_include(fabric_mod_dir_var, fabric_mod_name): | |||
| 173 | buf += " struct se_portal_group se_tpg;\n" | 146 | buf += " struct se_portal_group se_tpg;\n" |
| 174 | buf += "};\n\n" | 147 | buf += "};\n\n" |
| 175 | buf += "struct " + fabric_mod_name + "_tport {\n" | 148 | buf += "struct " + fabric_mod_name + "_tport {\n" |
| 176 | buf += " /* SCSI protocol the tport is providing */\n" | ||
| 177 | buf += " u8 tport_proto_id;\n" | ||
| 178 | buf += " /* ASCII formatted TargetName for IQN */\n" | 149 | buf += " /* ASCII formatted TargetName for IQN */\n" |
| 179 | buf += " char tport_name[" + fabric_mod_name.upper() + "_NAMELEN];\n" | 150 | buf += " char tport_name[" + fabric_mod_name.upper() + "_NAMELEN];\n" |
| 180 | buf += " /* Returned by " + fabric_mod_name + "_make_tport() */\n" | 151 | buf += " /* Returned by " + fabric_mod_name + "_make_tport() */\n" |
| @@ -232,61 +203,12 @@ def tcm_mod_build_configfs(proto_ident, fabric_mod_dir_var, fabric_mod_name): | |||
| 232 | buf += "#include <target/target_core_base.h>\n" | ||
