Spdk/test
Shuhei Matsumoto 73204fe2e5 dif: Add data offset to DIF context separately from start block address
Data offset are intended to correspond to DATAO in NVMe/TCP and
Buffer Offset in iSCSI.

Previously for iSCSI, buffer offset had been merged to start block
address, but passing buffer offset separately from start block address
clarifies the logic more.

On the other hand, for NVMe/TCP, passing DATAO separately from start
block address will be critically important because DATAO will bave any
alignment and will be necessary to use for not only reference tag
but also guard computation.

This patch adds data_offset to struct spdk_dif_ctx and adds it to the
parameters of spdk_dif_ctx_init(). ref_tag_offset is also added to struct
spdk_dif_ctx and it is computed by dividing data_offset by data_block_size
and is used to compute reference tag.

The next patch will use this change when getting DIF context in SCSI.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: Id0e12ca9b1dc75d0589787520feb0c2ee0f844a5
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/457540
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2019-06-11 18:53:58 +00:00
..
app util: add a new file operation API 2019-05-15 18:54:27 +00:00
bdev dif: Add data offset to DIF context separately from start block address 2019-06-11 18:53:58 +00:00
blobfs test/asan: move LSAN_OPTIONS to autotest_common.sh 2019-06-06 05:17:16 +00:00
blobstore test: don't call python explicitly 2019-05-08 14:22:19 +00:00
common autotest/common: define xtrace_restore as an alias 2019-06-11 05:17:58 +00:00
config_converter iscsi: Deprecate MinConnectionsPerCore 2019-05-06 17:10:48 +00:00
cpp_headers Makefile: Add possibility to uninstall spdk. 2019-05-16 20:56:18 +00:00
env build: fix duplicate spdk.common.mk includes 2019-05-22 14:51:01 +00:00
event notify: add notification library 2019-03-29 21:15:14 +00:00
ftl test/fio: export single variable for running fio_plugins 2019-06-06 05:17:16 +00:00
ioat examples: rename ioat perf tool to ioat_perf 2019-05-22 14:51:01 +00:00
iscsi_tgt test/nvmf: use NVMF_PORT consistently 2019-06-04 23:04:54 +00:00
json_config test/json_config: disable vhost-nvme tests 2019-06-11 01:14:45 +00:00
lvol test/lvol: Add a case in usage and fix a typo 2019-05-01 18:46:59 +00:00
nvme test/fio: export single variable for running fio_plugins 2019-06-06 05:17:16 +00:00
nvmf nvmf_vhost: Check qemu before and in vhost/common.sh. 2019-06-07 18:35:12 +00:00
ocf test/ocf: disable persistent metadata test 2019-06-11 18:16:55 +00:00
pmem bdev: remove delete_bdev RPC 2019-03-01 08:50:07 +00:00
rpc_client rpc: rename RPC get_rpc_methods to rpc_get_methods 2019-05-27 12:52:53 +00:00
spdkcli spdkcli: Add support for raid devices 2019-05-09 19:36:35 +00:00
unit dif: Add data offset to DIF context separately from start block address 2019-06-11 18:53:58 +00:00
vhost nightly: fix vhost migration issue 2019-06-11 05:55:00 +00:00
Makefile jsonrpc-client: add new C client library 2018-10-11 20:07:44 +00:00
spdk_cunit.h test: remove leftover spdk_cunit declaration 2018-07-06 22:47:56 +00:00