iser-target: Add support for ISCSI_OP_TEXT opcode + payload handling
authorNicholas Bellinger <nab@linux-iscsi.org>
Fri, 14 Jun 2013 23:47:15 +0000 (16:47 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 8 Jul 2013 01:36:48 +0000 (18:36 -0700)
commitadb54c29310e8785e4f2eb0dc76e0e2fde943b11
treea1741996414a81337ffccc8e56ff6dbca8b7c1d6
parentdbbc5d11074fc017488e6bdaaf9238d53e35ab07
iser-target: Add support for ISCSI_OP_TEXT opcode + payload handling

This patch adds isert_handle_text_cmd() to handle incoming
ISCSI_OP_TEXT PDU processing, along with isert_put_text_rsp()
for posting ISCSI_OP_TEXT_RSP ib_send_wr response.

It copies ISCSI_OP_TEXT payload using unsolicited payload at
&iser_rx_desc->data[0] into iscsi_cmd->text_in_ptr for usage
with outgoing isert_put_text_rsp() -> iscsit_build_text_rsp()

v2 changes:
  - Let iscsit_build_text_rsp() determine any extra padding

Reported-by: Or Gerlitz <ogerlitz@mellanox.com>
Cc: Or Gerlitz <ogerlitz@mellanox.com>
Cc: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/isert/ib_isert.c