numam-spdk/examples/nvme
Shuhei Matsumoto 8253ed5e31 nvme/perf: Fix the wrong block size when metadata size is 8 bytes and PRACT is set
When PRACT is set, if metadata size is 8 bytes, PI is stripped
(read) or inserted (write). Hence block size must not include
metadata size for extended LBA payload. This patch fixes the issue
by reducing metadata size from block size for this case.

On the other hand, When PRACT is set, if metadata size is larger
than 8 bytes, PI is passed (read) or replaced (write). So block
size is not necessary to change for this case.

The wrong block size didn't cause any visible issue but should be fixed.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: I3351e3e3b7816f726752e85604cf557251d9870c
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/468018
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2019-09-17 19:41:32 +00:00
..
arbitration examples/nvme/arbitration: only do the arbitration get/set_features for supported controllers 2019-08-02 00:10:10 +00:00
cmb_copy build: fix duplicate spdk.common.mk includes 2019-05-22 14:51:01 +00:00
fio_plugin nvme/fio_plugin: Fix the issue that PRACT doesn't work when metadata size is 8 bytes 2019-09-17 19:41:32 +00:00
hello_world nvme/hello_world: don't print message for inactive namespaces 2019-08-30 03:01:01 +00:00
hotplug build: fix duplicate spdk.common.mk includes 2019-05-22 14:51:01 +00:00
identify examples/nvme/identify: display Arbitration Burst for round robin arbitration 2019-09-09 01:55:18 +00:00
nvme_manage Opal: Add support for erase locking range 2019-08-20 20:38:54 +00:00
perf nvme/perf: Fix the wrong block size when metadata size is 8 bytes and PRACT is set 2019-09-17 19:41:32 +00:00
reserve build: fix duplicate spdk.common.mk includes 2019-05-22 14:51:01 +00:00
Makefile cmb_copy: An example app that uses NVMe CMBs 2018-02-14 12:36:01 -05:00