summaryrefslogtreecommitdiff
path: root/drivers/target/iscsi/iscsi_target.c
diff options
context:
space:
mode:
authorVarun Prakash <varun@chelsio.com>2016-04-19 21:30:15 +0300
committerNicholas Bellinger <nab@linux-iscsi.org>2016-05-10 09:12:09 +0300
commit864e504ae2bbdd7efcd6923075047a7a6b5ade02 (patch)
treec418c0a9f8aae5cfb28756f7822b649efdff0736 /drivers/target/iscsi/iscsi_target.c
parentc0b7373be811307c5ff1de8c8547aae3597d24aa (diff)
downloadlinux-864e504ae2bbdd7efcd6923075047a7a6b5ade02.tar.xz
iscsi-target: use conn_transport->transport_type in text rsp
Use conn_transport->transport_type instead of ISCSI_TCP to build text response. Signed-off-by: Varun Prakash <varun@chelsio.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/iscsi/iscsi_target.c')
-rw-r--r--drivers/target/iscsi/iscsi_target.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/target/iscsi/iscsi_target.c b/drivers/target/iscsi/iscsi_target.c
index 28fc7fb5035f..348337c539f0 100644
--- a/drivers/target/iscsi/iscsi_target.c
+++ b/drivers/target/iscsi/iscsi_target.c
@@ -3513,7 +3513,8 @@ static int iscsit_send_text_rsp(
struct iscsi_text_rsp *hdr = (struct iscsi_text_rsp *)cmd->pdu;
int text_length;
- text_length = iscsit_build_text_rsp(cmd, conn, hdr, ISCSI_TCP);
+ text_length = iscsit_build_text_rsp(cmd, conn, hdr,
+ conn->conn_transport->transport_type);
if (text_length < 0)
return text_length;