path: root/drivers/target/iscsi/cxgbit/cxgbit_cm.c
diff options
authorVarun Prakash <varun@chelsio.com>2017-01-13 20:53:21 +0530
committerNicholas Bellinger <nab@linux-iscsi.org>2017-02-18 21:24:15 -0800
commit9a584bf9bf0a1c608f5ed5f5e63b074bbc81a322 (patch)
treef7dc55e85c996141f181adcc64e14bd0c34a0fd7 /drivers/target/iscsi/cxgbit/cxgbit_cm.c
parenttarget: Remove command flag CMD_T_DEV_ACTIVE (diff)
target/iscsi: split iscsit_check_dataout_hdr()
Split iscsit_check_dataout_hdr() into two functions 1. __iscsit_check_dataout_hdr() - This function validates data out hdr. 2. iscsit_check_dataout_hdr() - This function finds iSCSI cmd using iscsit_find_cmd_from_itt_or_dump(), then it calls __iscsit_check_dataout_hdr() to validate iSCSI hdr. This split is required to support Chelsio T6 iSCSI DDP completion feature. T6 adapters reduce number of completions to host by generating single completion for all directly placed(DDP) iSCSI pdus in a sequence, DDP completion contains iSCSI hdr of the last pdu in a sequence. On receiving DDP completion cxgbit driver will first find iSCSI cmd using iscsit_find_cmd_from_itt_or_dump() then updates cmd->write_data_done, cmd->next_burst_len, cmd->data_sn and calls __iscsit_check_dataout_hdr() to validate iSCSI hdr. (Move XRDSL check ahead of itt lookup / dump - nab) Signed-off-by: Varun Prakash <varun@chelsio.com> Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/iscsi/cxgbit/cxgbit_cm.c')
0 files changed, 0 insertions, 0 deletions