numam-spdk/lib/scsi
Shuhei Matsumoto 8697bce7af scsi: Add an API to return DIF context of bdev and CDB
This patch adds an API spdk_scsi_bdev_get_dif_ctx().

spdk_scsi_bdev_get_dif_ctx() decodes opcode in CDB, and if opcode
is read or write block commands, it gets LBA and use the lower
32bits of LBA as Reference Tag. It gets DIF information from
specified bdev next. Then it sets all to DIF context and return.

spdk_scsi_bdev_get_dif_ctx() is exported to iSCSI through
spdk_scsi_lun_get_dif_ctx().

Change-Id: Id8aac164c48e9e9d4ff7cfc9fa81bb5090f3e187
Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/446224
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
2019-03-08 01:21:26 +00:00
..
dev.c scsi: Set TMF code prior to calling spdk_scsi_dev_queue_mgmt_task 2018-12-10 20:34:11 +00:00
lun.c scsi: Add an API to return DIF context of bdev and CDB 2019-03-08 01:21:26 +00:00
Makefile scsi: remove lun_db 2018-01-09 13:56:00 -05:00
port.c scsi: add iSCSI initiator port TransportID 2018-12-05 16:04:06 +00:00
scsi_bdev.c scsi: Add an API to return DIF context of bdev and CDB 2019-03-08 01:21:26 +00:00
scsi_internal.h scsi: Add an API to return DIF context of bdev and CDB 2019-03-08 01:21:26 +00:00
scsi_rpc.c scsi: Use spdk_json_write_named_* APIs throughout 2019-02-04 07:08:04 +00:00
scsi.c lib/trace: show specific usage of trace mask 2018-11-30 14:52:28 +00:00
task.c scsi: Add scsi_task_process_abort for aborted SCSI tasks. 2018-12-10 20:34:11 +00:00