]> git.karo-electronics.de Git - linux-beck.git/commitdiff
iscsi-target: use conn_transport->transport_type in text rsp
authorVarun Prakash <varun@chelsio.com>
Tue, 19 Apr 2016 18:30:15 +0000 (00:00 +0530)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 10 May 2016 06:12:09 +0000 (23:12 -0700)
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>
drivers/target/iscsi/iscsi_target.c

index 28fc7fb5035f49258eaa785766b5fba3228c6a05..348337c539f0c2edbb921a8d22e9d19fafea47d8 100644 (file)
@@ -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;