diff options
author | Christoph Hellwig <hch@lst.de> | 2015-05-01 11:47:57 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-05-31 01:42:30 -0400 |
commit | 2aeeafae6bb9f04dbe17b521bcd8f0d03516c393 (patch) | |
tree | e4efb82f007a4afe684702c5983195e2403250e2 /drivers/target/loopback/tcm_loop.c | |
parent | e4aae5af810eaa61c2cd7ba79d95ebfe0d88fe9b (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/target/loopback/tcm_loop.c')
-rw-r--r-- | drivers/target/loopback/tcm_loop.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/drivers/target/loopback/tcm_loop.c b/drivers/target/loopback/tcm_loop.c index 3f264d436737..0eed0209a7f4 100644 --- a/drivers/target/loopback/tcm_loop.c +++ b/drivers/target/loopback/tcm_loop.c | |||
@@ -525,32 +525,6 @@ static inline struct tcm_loop_tpg *tl_tpg(struct se_portal_group *se_tpg) | |||
525 | return container_of(se_tpg, struct tcm_loop_tpg, tl_se_tpg); | 525 | return container_of(se_tpg, struct tcm_loop_tpg, tl_se_tpg); |
526 | } | 526 | } |
527 | 527 | ||
528 | static u8 tcm_loop_get_fabric_proto_ident(struct se_portal_group *se_tpg) | ||
529 | { | ||
530 | struct tcm_loop_hba *tl_hba = tl_tpg(se_tpg)->tl_hba; | ||
531 | /* | ||
532 | * tl_proto_id is set at tcm_loop_configfs.c:tcm_loop_make_scsi_hba() | ||
533 | * time based on the protocol dependent prefix of the passed configfs group. | ||
534 | * | ||
535 | * Based upon tl_proto_id, TCM_Loop emulates the requested fabric | ||
536 | * ProtocolID using target_core_fabric_lib.c symbols. | ||
537 | */ | ||
538 | switch (tl_hba->tl_proto_id) { | ||
539 | case SCSI_PROTOCOL_SAS: | ||
540 | return sas_get_fabric_proto_ident(se_tpg); | ||
541 | case SCSI_PROTOCOL_FCP: | ||
542 | return fc_get_fabric_proto_ident(se_tpg); | ||
543 | case SCSI_PROTOCOL_ISCSI: | ||
544 | return iscsi_get_fabric_proto_ident(se_tpg); | ||
545 | default: | ||
546 | pr_err("Unknown tl_proto_id: 0x%02x, using" | ||
547 | " SAS emulation\n", tl_hba->tl_proto_id); | ||
548 | break; | ||
549 | } | ||
550 | |||
551 | return sas_get_fabric_proto_ident(se_tpg); | ||
552 | } | ||
553 | |||
554 | static char *tcm_loop_get_endpoint_wwn(struct se_portal_group *se_tpg) | 528 | static char *tcm_loop_get_endpoint_wwn(struct se_portal_group *se_tpg) |
555 | { | 529 | { |
556 | /* | 530 | /* |
@@ -1356,7 +1330,6 @@ static const struct target_core_fabric_ops loop_ops = { | |||
1356 | .module = THIS_MODULE, | 1330 | .module = THIS_MODULE, |
1357 | .name = "loopback", | 1331 | .name = "loopback", |
1358 | .get_fabric_name = tcm_loop_get_fabric_name, | 1332 | .get_fabric_name = tcm_loop_get_fabric_name, |
1359 | .get_fabric_proto_ident = tcm_loop_get_fabric_proto_ident, | ||
1360 | .tpg_get_wwn = tcm_loop_get_endpoint_wwn, | 1333 | .tpg_get_wwn = tcm_loop_get_endpoint_wwn, |
1361 | .tpg_get_tag = tcm_loop_get_tag, | 1334 | .tpg_get_tag = tcm_loop_get_tag, |
1362 | .tpg_get_pr_transport_id = tcm_loop_get_pr_transport_id, | 1335 | .tpg_get_pr_transport_id = tcm_loop_get_pr_transport_id, |