numam-spdk/test
Shuhei Matsumoto f6a91b3b40 dif: Process partial data block properly in _dif_generate_split()
For NVMe/TCP target, data segments which correspond to H2C or C2H PDU
will have any alignment, and _dif_generate_split will have to process
partial data block, particularly the following types:
- start and end are both within a data block.
- start is within a data block, and end is at the end of a block

According to the refactoring done in the last patch, this patch
exposes offset_in_block, data_len, and guard as parameters of
_dif_generate_split() and make _dif_generate_split() process
the above two types of data block properly.

The next patch will utilize the updated _dif_generate_split in
spdk_dif_generate_stream().

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: I4211e65ead7fc256a40748412c670e46f83b1731
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/457544
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
2019-06-24 07:02:07 +00:00
..
app util: add a new file operation API 2019-05-15 18:54:27 +00:00
bdev test: remove duplicated set -ex from tests 2019-06-19 03:54:58 +00:00
blobfs test: remove duplicated set -ex from tests 2019-06-19 03:54:58 +00:00
blobstore test: remove duplicated set -ex from tests 2019-06-19 03:54:58 +00:00
common test/common: refactor waitforlisten to try sending RPC commands 2019-06-19 03:54: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 test: remove duplicated set -ex from tests 2019-06-19 03:54:58 +00:00
event notify: add notification library 2019-03-29 21:15:14 +00:00
ftl test: remove duplicated set -ex from tests 2019-06-19 03:54:58 +00:00
ioat test: remove duplicated set -ex from tests 2019-06-19 03:54:58 +00:00
iscsi_tgt test/iscsi/sock: add separate waitfortcp() function 2019-06-19 03:54:58 +00:00
json_config test: remove duplicated set -ex from tests 2019-06-19 03:54:58 +00:00
lvol test: remove duplicated set -ex from tests 2019-06-19 03:54:58 +00:00
nvme test: remove duplicated set -ex from tests 2019-06-19 03:54:58 +00:00
nvmf test: remove duplicated set -ex from tests 2019-06-19 03:54:58 +00:00
ocf test/ocf: disable persistent metadata test 2019-06-11 18:16:55 +00:00
pmem test/pmem: cleanup common.sh 2019-06-19 03:54:58 +00:00
rpc_client test: remove duplicated set -ex from tests 2019-06-19 03:54:58 +00:00
spdkcli test/spdkcli: cleanup common.sh 2019-06-19 03:54:58 +00:00
unit dif: Process partial data block properly in _dif_generate_split() 2019-06-24 07:02:07 +00:00
vhost test: remove duplicated set -ex from tests 2019-06-19 03:54:58 +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