target: remove the get_fabric_proto_ident method
Now that we store the protocol identifier in the tpg structure we don't need this method. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
This commit is contained in:

committed by
Nicholas Bellinger

parent
e4aae5af81
commit
2aeeafae6b
@@ -1254,28 +1254,6 @@ static char *scsiback_dump_proto_id(struct scsiback_tport *tport)
|
||||
return "Unknown";
|
||||
}
|
||||
|
||||
static u8 scsiback_get_fabric_proto_ident(struct se_portal_group *se_tpg)
|
||||
{
|
||||
struct scsiback_tpg *tpg = container_of(se_tpg,
|
||||
struct scsiback_tpg, se_tpg);
|
||||
struct scsiback_tport *tport = tpg->tport;
|
||||
|
||||
switch (tport->tport_proto_id) {
|
||||
case SCSI_PROTOCOL_SAS:
|
||||
return sas_get_fabric_proto_ident(se_tpg);
|
||||
case SCSI_PROTOCOL_FCP:
|
||||
return fc_get_fabric_proto_ident(se_tpg);
|
||||
case SCSI_PROTOCOL_ISCSI:
|
||||
return iscsi_get_fabric_proto_ident(se_tpg);
|
||||
default:
|
||||
pr_err("Unknown tport_proto_id: 0x%02x, using SAS emulation\n",
|
||||
tport->tport_proto_id);
|
||||
break;
|
||||
}
|
||||
|
||||
return sas_get_fabric_proto_ident(se_tpg);
|
||||
}
|
||||
|
||||
static char *scsiback_get_fabric_wwn(struct se_portal_group *se_tpg)
|
||||
{
|
||||
struct scsiback_tpg *tpg = container_of(se_tpg,
|
||||
@@ -1929,7 +1907,6 @@ static const struct target_core_fabric_ops scsiback_ops = {
|
||||
.module = THIS_MODULE,
|
||||
.name = "xen-pvscsi",
|
||||
.get_fabric_name = scsiback_get_fabric_name,
|
||||
.get_fabric_proto_ident = scsiback_get_fabric_proto_ident,
|
||||
.tpg_get_wwn = scsiback_get_fabric_wwn,
|
||||
.tpg_get_tag = scsiback_get_tag,
|
||||
.tpg_get_pr_transport_id = scsiback_get_pr_transport_id,
|
||||
|
Reference in New Issue
Block a user