numam-spdk/lib/bdev
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
..
aio bdev/aio: Reap completions from userspace if supported 2019-02-13 18:14:53 +00:00
crypto bdev/crypto: fix error path memory leak in driver init 2019-02-20 20:22:16 +00:00
error bdev: make spdk_bdev_register_module_xxx function names predictable 2019-02-11 23:56:53 +00:00
ftl bdev/ftl: unlock g_ftl_bdev_lock before unregister ftl_bdev 2019-02-15 21:42:58 +00:00
gpt bdev: make spdk_bdev_register_module_xxx function names predictable 2019-02-11 23:56:53 +00:00
iscsi bdev/iscsi: remove unused master_ch 2019-02-20 17:02:02 +00:00
lvol bdev: make spdk_bdev_register_module_xxx function names predictable 2019-02-11 23:56:53 +00:00
malloc bdev: make spdk_bdev_register_module_xxx function names predictable 2019-02-11 23:56:53 +00:00
null bdev: make spdk_bdev_register_module_xxx function names predictable 2019-02-11 23:56:53 +00:00
nvme dif: Add seed value for guard to avoid 0 in case of all zero data. 2019-02-22 17:52:51 +00:00
ocf bdev/ocf: Add missing error handling in bottom adapter 2019-02-21 07:39:59 +00:00
passthru bdev/passthru: Use typedef in bdev_module.h for spdk_bdev_unregsister 2019-02-12 15:42:06 +00:00
pmem bdev: make spdk_bdev_register_module_xxx function names predictable 2019-02-11 23:56:53 +00:00
raid bdev: make spdk_bdev_register_module_xxx function names predictable 2019-02-11 23:56:53 +00:00
rbd bdev: make spdk_bdev_register_module_xxx function names predictable 2019-02-11 23:56:53 +00:00
rpc lib/bdev: Expose enabled DIF check types of bdev. 2019-02-08 23:37:13 +00:00
split bdev: make spdk_bdev_register_module_xxx function names predictable 2019-02-11 23:56:53 +00:00
virtio bdev: make spdk_bdev_register_module_xxx function names predictable 2019-02-11 23:56:53 +00:00
bdev.c bdev: Add spdk_bdev_io_get_io_channel API 2019-02-12 17:57:25 +00:00
Makefile OCF: add OCF module 2019-01-28 09:41:52 +00:00
part.c bdev: Improve spdk_bdev_open() to print string describing error number 2019-01-24 10:50:34 +00:00
scsi_nvme.c bdev: move error union to internal spdk_bdev_io struct 2018-06-26 20:04:07 +00:00
vtune.c mk: don't use '-include spdk/config.h' 2018-10-02 23:13:32 +00:00