diff options
Diffstat (limited to 'drivers/vhost/scsi.c')
-rw-r--r-- | drivers/vhost/scsi.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/drivers/vhost/scsi.c b/drivers/vhost/scsi.c index 8295e7be0fcb..022860ccd008 100644 --- a/drivers/vhost/scsi.c +++ b/drivers/vhost/scsi.c | |||
@@ -288,28 +288,6 @@ static char *vhost_scsi_get_fabric_name(void) | |||
288 | return "vhost"; | 288 | return "vhost"; |
289 | } | 289 | } |
290 | 290 | ||
291 | static u8 vhost_scsi_get_fabric_proto_ident(struct se_portal_group *se_tpg) | ||
292 | { | ||
293 | struct vhost_scsi_tpg *tpg = container_of(se_tpg, | ||
294 | struct vhost_scsi_tpg, se_tpg); | ||
295 | struct vhost_scsi_tport *tport = tpg->tport; | ||
296 | |||
297 | switch (tport->tport_proto_id) { | ||
298 | case SCSI_PROTOCOL_SAS: | ||
299 | return sas_get_fabric_proto_ident(se_tpg); | ||
300 | case SCSI_PROTOCOL_FCP: | ||
301 | return fc_get_fabric_proto_ident(se_tpg); | ||
302 | case SCSI_PROTOCOL_ISCSI: | ||
303 | return iscsi_get_fabric_proto_ident(se_tpg); | ||
304 | default: | ||
305 | pr_err("Unknown tport_proto_id: 0x%02x, using" | ||
306 | " SAS emulation\n", tport->tport_proto_id); | ||
307 | break; | ||
308 | } | ||
309 | |||
310 | return sas_get_fabric_proto_ident(se_tpg); | ||
311 | } | ||
312 | |||
313 | static char *vhost_scsi_get_fabric_wwn(struct se_portal_group *se_tpg) | 291 | static char *vhost_scsi_get_fabric_wwn(struct se_portal_group *se_tpg) |
314 | { | 292 | { |
315 | struct vhost_scsi_tpg *tpg = container_of(se_tpg, | 293 | struct vhost_scsi_tpg *tpg = container_of(se_tpg, |
@@ -2244,7 +2222,6 @@ static struct target_core_fabric_ops vhost_scsi_ops = { | |||
2244 | .module = THIS_MODULE, | 2222 | .module = THIS_MODULE, |
2245 | .name = "vhost", | 2223 | .name = "vhost", |
2246 | .get_fabric_name = vhost_scsi_get_fabric_name, | 2224 | .get_fabric_name = vhost_scsi_get_fabric_name, |
2247 | .get_fabric_proto_ident = vhost_scsi_get_fabric_proto_ident, | ||
2248 | .tpg_get_wwn = vhost_scsi_get_fabric_wwn, | 2225 | .tpg_get_wwn = vhost_scsi_get_fabric_wwn, |
2249 | .tpg_get_tag = vhost_scsi_get_tpgt, | 2226 | .tpg_get_tag = vhost_scsi_get_tpgt, |
2250 | .tpg_get_pr_transport_id = vhost_scsi_get_pr_transport_id, | 2227 | .tpg_get_pr_transport_id = vhost_scsi_get_pr_transport_id, |