numam-spdk/examples/nvme
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
..
arbitration example/nvme: Improve error check of input parsing by spdk_strtol 2019-01-29 17:39:18 +00:00
cmb_copy example/nvme: Improve error check of input parsing by spdk_strtol 2019-01-29 17:39:18 +00:00
fio_plugin dif: Add seed value for guard to avoid 0 in case of all zero data. 2019-02-22 17:52:51 +00:00
hello_world nvme:replacing spdk_dma_malloc with spdk_z/malloc 2018-08-31 17:42:29 +00:00
hotplug example/nvme: Improve error check of input parsing by spdk_strtol 2019-01-29 17:39:18 +00:00
identify identify: Print out information about controller memory buffer support 2019-02-06 16:01:56 +00:00
nvme_manage example/nvme: Improve error check of input parsing by spdk_strtol 2019-01-29 17:39:18 +00:00
perf dif: Add seed value for guard to avoid 0 in case of all zero data. 2019-02-22 17:52:51 +00:00
reserve log: remove "trace" from public API 2018-12-03 19:50:15 +00:00
Makefile cmb_copy: An example app that uses NVMe CMBs 2018-02-14 12:36:01 -05:00