diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2013-06-14 19:46:16 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2013-06-25 01:36:29 -0400 |
commit | 64534aa79496a3bc4f750a695fe9e978ab46e91d (patch) | |
tree | 6e3bf0ab5bb001c541e76bd425742802c8c8c8b1 /include/target | |
parent | 778de368964c5b7e8100cde9f549992d521e9c89 (diff) |
iscsi-target: Refactor ISCSI_OP_TEXT RX handling
This patch refactors ISCSI_OP_TEXT handling within iscsi-target in
order to handle iscsi_text payloads in a transport specific manner.
This includes splitting current iscsit_handle_text_cmd() into
iscsit_setup_text_cmd() and iscsit_process_text_cmd() calls, and
makes iscsit_handle_text_cmd be only used internally by traditional
iscsi socket calls.
Cc: Or Gerlitz <ogerlitz@mellanox.com>
Cc: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/target')
-rw-r--r-- | include/target/iscsi/iscsi_transport.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/target/iscsi/iscsi_transport.h b/include/target/iscsi/iscsi_transport.h index ecb53ea6d1c7..90f3b60d30c4 100644 --- a/include/target/iscsi/iscsi_transport.h +++ b/include/target/iscsi/iscsi_transport.h | |||
@@ -53,6 +53,10 @@ extern int iscsit_handle_logout_cmd(struct iscsi_conn *, struct iscsi_cmd *, | |||
53 | unsigned char *); | 53 | unsigned char *); |
54 | extern int iscsit_handle_task_mgt_cmd(struct iscsi_conn *, struct iscsi_cmd *, | 54 | extern int iscsit_handle_task_mgt_cmd(struct iscsi_conn *, struct iscsi_cmd *, |
55 | unsigned char *); | 55 | unsigned char *); |
56 | extern int iscsit_setup_text_cmd(struct iscsi_conn *, struct iscsi_cmd *, | ||
57 | struct iscsi_text *); | ||
58 | extern int iscsit_process_text_cmd(struct iscsi_conn *, struct iscsi_cmd *, | ||
59 | struct iscsi_text *); | ||
56 | extern void iscsit_build_rsp_pdu(struct iscsi_cmd *, struct iscsi_conn *, | 60 | extern void iscsit_build_rsp_pdu(struct iscsi_cmd *, struct iscsi_conn *, |
57 | bool, struct iscsi_scsi_rsp *); | 61 | bool, struct iscsi_scsi_rsp *); |
58 | extern void iscsit_build_nopin_rsp(struct iscsi_cmd *, struct iscsi_conn *, | 62 | extern void iscsit_build_nopin_rsp(struct iscsi_cmd *, struct iscsi_conn *, |