freebsd-nq/usr.sbin/ctld
John Baldwin b406897911 iscsi: Handle large Text responses.
Text requests and responses can span multiple PDUs.  In that case, the
sender sets the Continue bit in non-final PDUs and the Final bit in
the last PDU.  The receiver responds to non-final PDUs with an empty
text PDU.

To support this, add a more abstract API in libiscsi which accepts and
receives key sets rather than PDUs.  These routines internally send or
receive one or more PDUs.  Use these new functions to replace the
handling of TextRequest and TextResponse PDUs in discovery sessions in
both ctld and iscsid.

Note that there is not currently a use case for large Text requests
and those are still always sent as a single PDU.  However, discovery
sessions can return a text response listing targets that spans
multiple PDUs, so the new API supports sending and receiving multi-PDU
responses.

Reported by:	Jithesh Arakkan @ Chelsio
Reviewed by:	mav
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D33548
2021-12-29 14:36:04 -08:00
..
ctl.conf.5 Add network QoS support for PCP to iscsi target. 2020-10-24 21:10:53 +00:00
ctld.8 Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00
ctld.c Add an internal libiscsiutil library. 2021-12-22 10:43:11 -08:00
ctld.h Add an internal libiscsiutil library. 2021-12-22 10:43:11 -08:00
discovery.c iscsi: Handle large Text responses. 2021-12-29 14:36:04 -08:00
isns.c
isns.h
kernel.c Add an internal libiscsiutil library. 2021-12-22 10:43:11 -08:00
login.c libiscsiutil: Change keys_load/save to operate on data buffers. 2021-12-22 10:43:24 -08:00
Makefile ctld: Disable -Wcast-align warnings. 2021-12-22 15:23:45 -08:00
Makefile.depend
parse.y [ctld] Fix compilation under gcc-6.4 2020-11-01 21:18:21 +00:00
token.l Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00
uclparse.c Fix an early return in ctld UCL parser 2021-08-30 22:59:33 -04:00