aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/xen/xen-scsiback.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2015-05-01 11:47:57 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2015-05-31 01:42:30 -0400
commit2aeeafae6bb9f04dbe17b521bcd8f0d03516c393 (patch)
treee4efb82f007a4afe684702c5983195e2403250e2 /drivers/xen/xen-scsiback.c
parente4aae5af810eaa61c2cd7ba79d95ebfe0d88fe9b (diff)
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>
Diffstat (limited to 'drivers/xen/xen-scsiback.c')
-rw-r--r--drivers/xen/xen-scsiback.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/drivers/xen/xen-scsiback.c b/drivers/xen/xen-scsiback.c
index 223d493878eb..8bf9448bd7fd 100644
--- a/drivers/xen/xen-scsiback.c
+++ b/drivers/xen/xen-scsiback.c
@@ -1254,28 +1254,6 @@ static char *scsiback_dump_proto_id(struct scsiback_tport *tport)
1254 return "Unknown"; 1254 return "Unknown";
1255} 1255}
1256 1256
1257static u8 scsiback_get_fabric_proto_ident(struct se_portal_group *se_tpg)
1258{
1259 struct scsiback_tpg *tpg = container_of(se_tpg,
1260 struct scsiback_tpg, se_tpg);
1261 struct scsiback_tport *tport = tpg->tport;
1262
1263 switch (tport->tport_proto_id) {
1264 case SCSI_PROTOCOL_SAS:
1265 return sas_get_fabric_proto_ident(se_tpg);
1266 case SCSI_PROTOCOL_FCP:
1267 return fc_get_fabric_proto_ident(se_tpg);
1268 case SCSI_PROTOCOL_ISCSI:
1269 return iscsi_get_fabric_proto_ident(se_tpg);
1270 default:
1271 pr_err("Unknown tport_proto_id: 0x%02x, using SAS emulation\n",
1272 tport->tport_proto_id);
1273 break;
1274 }
1275
1276 return sas_get_fabric_proto_ident(se_tpg);
1277}
1278
1279static char *scsiback_get_fabric_wwn(struct se_portal_group *se_tpg) 1257static char *scsiback_get_fabric_wwn(struct se_portal_group *se_tpg)
1280{ 1258{
1281 struct scsiback_tpg *tpg = container_of(se_tpg, 1259 struct scsiback_tpg *tpg = container_of(se_tpg,
@@ -1929,7 +1907,6 @@ static const struct target_core_fabric_ops scsiback_ops = {
1929 .module = THIS_MODULE, 1907 .module = THIS_MODULE,
1930 .name = "xen-pvscsi", 1908 .name = "xen-pvscsi",
1931 .get_fabric_name = scsiback_get_fabric_name, 1909 .get_fabric_name = scsiback_get_fabric_name,
1932 .get_fabric_proto_ident = scsiback_get_fabric_proto_ident,
1933 .tpg_get_wwn = scsiback_get_fabric_wwn, 1910 .tpg_get_wwn = scsiback_get_fabric_wwn,
1934 .tpg_get_tag = scsiback_get_tag, 1911 .tpg_get_tag = scsiback_get_tag,
1935 .tpg_get_pr_transport_id = scsiback_get_pr_transport_id, 1912 .tpg_get_pr_transport_id = scsiback_get_pr_transport_id,