8697bce7af
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> |
||
---|---|---|
.. | ||
dev.c | ||
lun.c | ||
Makefile | ||
port.c | ||
scsi_bdev.c | ||
scsi_internal.h | ||
scsi_rpc.c | ||
scsi.c | ||
task.c |