numam-spdk/lib
Shuhei Matsumoto 8696cd4288 dif: Add seed value for guard to avoid 0 in case of all zero data.
Allow user to add seed value for guard compuation to DIF context.
This will avoid the guard being zero in case of all zero data.

NVMe controller doesn't support seed value for guard computation
explicitly, and hence if we want to use such a seed value in
NVMe controller, we have to format metadata more than 8 byte,
and add seed value into the reserved metadata field.

But some popular iSCSI/FC HBAs and SAS controllers have supported
seed value for guard computation, and so supporting seed value
in the SPDK DIF library is very helpful for some use cases.

Hence this patch makes the DIF library possible to specify seed
value for those use cases.

Change-Id: I7e9e87cb441bf263e64605c7820409fdc22dd977
Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-on: https://review.gerrithub.io/c/444334
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>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: wuzhouhui <wuzhouhui@kingsoft.com>
2019-02-22 17:52:51 +00:00
..
bdev dif: Add seed value for guard to avoid 0 in case of all zero data. 2019-02-22 17:52:51 +00:00
blob lvol: add option to change default data erase method 2019-01-23 22:25:37 +00:00
blobfs blobfs: fix the length value of file. 2019-01-17 05:04:13 +00:00
conf string: spdk_strtol to delegate additional error checking 2019-01-29 00:10:57 +00:00
copy lib/copy: unregister copy engine on finish 2018-10-15 17:42:20 +00:00
env_dpdk env/dpdk: allow changing DPDK loglevels 2019-02-22 08:49:45 +00:00
event event: Change the base to 0 when calling strtol 2019-02-18 07:55:36 +00:00
ftl lib/ftl: Fix band's metadata inconsistency with L2P 2019-02-15 21:42:14 +00:00
ioat ioat: reduce completion writebacks 2019-02-18 07:44:17 +00:00
iscsi iscsi: Remove SPDK_ISCSI_MAX_SEND_DATA_SEGMENT_LENGTH 2019-02-21 18:38:07 +00:00
json json_util: add debug logs to spdk_json_decode_object function 2019-01-10 14:31:37 +00:00
jsonrpc jsonrpc: Use spdk_json_write_named_* APIs throughout 2019-02-04 07:08:04 +00:00
log app: rename traceflag cmdline option to logflag 2018-12-03 19:50:15 +00:00
lvol lvol: add option to change default data erase method 2019-01-23 22:25:37 +00:00
nbd nbd: avoid impact to device setup by other task 2019-02-15 22:02:48 +00:00
net net: Use spdk_json_write_named_* APIs throughout 2019-02-04 07:08:04 +00:00
nvme nvme: mv submit_tick assignments to generic qpair code 2019-02-21 20:29:59 +00:00
nvmf nvmf: Expose bdev's PI setting to NVMe-oF Initiator 2019-02-22 00:36:55 +00:00
reduce reduce: fix ordering bug 2019-02-04 19:23:35 +00:00
rocksdb thread: Rename spdk_allocate_thread to spdk_thread_create 2019-01-17 11:24:38 +00:00
rpc rpc: add spdk_rpc_is_method_allowed 2018-12-05 00:35:35 +00:00
scsi scsi: Inline spdk_bdev_scsi_read/write into spdk_bdev_scsi_read_write 2019-02-20 20:17:56 +00:00
sock UT: fix the sock_ut failure because of the port conflict 2019-01-22 17:28:24 +00:00
thread thread: Add a function to get the thread from a context 2019-02-14 14:58:56 +00:00
trace lib/trace: add trace_record tool 2019-01-30 06:36:25 +00:00
ut_mock thread: Eliminate use of pthread_self and thread_ids 2019-01-15 16:53:12 +00:00
util dif: Add seed value for guard to avoid 0 in case of all zero data. 2019-02-22 17:52:51 +00:00
vhost vhost: use mmap_size to check for 2MB hugepage multiple 2019-02-22 10:24:16 +00:00
virtio virtio: Use spdk_json_write_named_* APIs throughout 2019-02-04 07:08:04 +00:00
Makefile ftl: Initial implementation 2019-01-11 09:15:39 +00:00