iscsi/iser-target: Support multi-sequence sendtargets text response
authorSagi Grimberg <sagig@mellanox.com>
Mon, 9 Feb 2015 16:07:25 +0000 (18:07 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 12 Feb 2015 19:24:29 +0000 (11:24 -0800)
commite4f4e8016e6823475291eb0da7cc95d0fada2237
treed9e1bb4da2c4d3ce8f80d055055482f89d490741
parent11378cdbb69521530f69072a987f7f1280747c1a
iscsi/iser-target: Support multi-sequence sendtargets text response

In case sendtargets response is larger than initiator MRDSL, we
send a partial sendtargets response (setting F=0, C=1, TTT!=0xffffffff),
accept a consecutive empty text message and send the rest of the payload.
In case we are done, we set F=1, C=0, TTT=0xffffffff.
We do that by storing the sendtargets response bytes done under
the session.

This patch also makes iscsit_find_cmd_from_itt public for isert.

(Re-add cmd->maxcmdsn_inc and clear in iscsit_build_text_rsp - nab)

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/isert/ib_isert.c
drivers/target/iscsi/iscsi_target.c
drivers/target/iscsi/iscsi_target_util.c
drivers/target/iscsi/iscsi_target_util.h
include/target/iscsi/iscsi_target_core.h