Spdk/lib/iscsi
Pawel Wodkowski f30f0c76f1 scsi: refactor usage of iov from spdk_scsi_task
This patch is preparation for fixing alloc_len overrun in SENSE 6/10 and
READCAP 6/10. To simplify code forbid usage of iov outside of
scsi/task.c.

This also drop SPDK_SCSI_TASK_ALLOC_BUFFER flag that obfuscate code. As
a replacement assume that if field alloc_len is non zero it mean that
iov.buffer is internally allocated. Functions
spdk_scsi_task_free_data(), spdk_scsi_task_set_data() and
spdk_scsi_task_alloc_data() manage this field.

Change-Id: Ife357a5bc36121f93a4c5d259b9a5a01559e7708
Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
2016-11-09 10:19:53 -07:00
..
acceptor.c event: hide struct spdk_poller internals 2016-08-12 10:42:12 -07:00
acceptor.h iscsi: Add an iscsi library. 2016-08-03 14:43:40 -07:00
conn.c iscsi: move iSCSI-specific SenseLength into PDU 2016-11-02 14:15:09 -07:00
conn.h eofnl: check for extra trailing newlines 2016-10-11 13:30:33 -07:00
crc32c.c iscsi: Add an iscsi library. 2016-08-03 14:43:40 -07:00
crc32c.h iscsi: Add an iscsi library. 2016-08-03 14:43:40 -07:00
init_grp.c iscsi: replace RTE_VERIFY() where possible 2016-08-08 15:53:57 -07:00
init_grp.h iscsi: Add an iscsi library. 2016-08-03 14:43:40 -07:00
iscsi_rpc.c iscsi/rpc: change get_target_nodes parallel arrays to objects 2016-10-13 09:05:43 -07:00
iscsi_subsystem.c Replace rte_panic() with abort() 2016-11-08 08:57:49 -07:00
iscsi.c scsi: refactor usage of iov from spdk_scsi_task 2016-11-09 10:19:53 -07:00
iscsi.h iscsi: move iSCSI-specific SenseLength into PDU 2016-11-02 14:15:09 -07:00
Makefile env: Make the environment library configurable. 2016-10-05 11:51:37 -07:00
md5.c Fix some cppcheck errors on lib/iscsi & lib/scsi. (#41) 2016-09-28 13:55:56 -07:00
md5.h iscsi: Add an iscsi library. 2016-08-03 14:43:40 -07:00
param.c scsi, param: remove multi_negot_sess_params 2016-10-18 07:59:23 -07:00
param.h iscsi: Add an iscsi library. 2016-08-03 14:43:40 -07:00
portal_grp.c iscsi: replace RTE_VERIFY() where possible 2016-08-08 15:53:57 -07:00
portal_grp.h iscsi: Add an iscsi library. 2016-08-03 14:43:40 -07:00
task.c Replace rte_panic() with abort() 2016-11-08 08:57:49 -07:00
task.h scsi: change spdk_put_task to spdk_scsi_task_put 2016-09-29 15:42:29 -07:00
tgt_node.c iscsi: remove unused header includes 2016-08-23 09:32:19 -07:00
tgt_node.h iscsi: start all sessions for a target node on the same lcore 2016-09-22 09:12:36 -07:00