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> |
||
---|---|---|
.. | ||
app | ||
bdev | ||
blobfs | ||
blobstore | ||
common | ||
config_converter | ||
cpp_headers | ||
env | ||
event | ||
ftl | ||
ioat | ||
iscsi_tgt | ||
json_config | ||
lvol | ||
nvme | ||
nvmf | ||
ocf | ||
pmem | ||
rpc_client | ||
spdkcli | ||
unit | ||
vhost | ||
Makefile | ||
spdk_cunit.h |