numam-spdk/test/lib
Daniel Verkamp 59fc5ba613 nvme: fix extended LBA block size calculations
For namespaces with end-to-end protection information, metadata size
of exactly 8 bytes, and extended LBA configured, the NVMe driver would
calculate the size of the data block incorrectly.  The NVMe spec has a
special provision for this specific case (8-byte metadata only) and
PRACT = 1 that requires that the host does not send the metadata as part
of the host memory buffer.

To fix this, clean up the calculation of the per-block data transfer
size by adding a new extended_lba_size field in the namespace, which
represents the total size of data to be transferred per block based on
the namespace's configured metadata size and whether it transfers
metadata as part of the data buffer.  Then add the special case for
PRACT = 1 and PI configured and extended LBA in the R/W helper
functions.

Change-Id: I0b383a58c773cac06e6c018858b57129064c6059
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
2017-02-10 10:24:26 -07:00
..
bdev test/bdev: shorten bdevperf autotest 2017-02-01 16:44:24 -07:00
env Add missing .gitignore files for binaries 2016-12-06 09:51:00 -07:00
event test/event: run autotests for shorter times 2017-02-01 16:44:24 -07:00
ioat test/ioat: run ioat_kperf in autotest 2017-02-08 09:45:09 -07:00
iscsi test/iscsi: move g_spdk_iscsi definition to individual tests 2017-01-20 15:10:44 -07:00
json autotest: remove duplicated unit test invocations 2017-01-25 15:19:23 -07:00
jsonrpc autotest: remove duplicated unit test invocations 2017-01-25 15:19:23 -07:00
log autotest: remove duplicated unit test invocations 2017-01-25 15:19:23 -07:00
nvme nvme: fix extended LBA block size calculations 2017-02-10 10:24:26 -07:00
nvmf nvmf: apply const to several char * arguments 2017-02-02 09:45:29 -07:00
scsi autotest: remove duplicated unit test invocations 2017-01-25 15:19:23 -07:00
util util: Add a function to parse ip addresses. 2017-02-07 17:12:38 -07:00
Makefile test/iscsi: add pdu test 2016-11-23 11:29:41 -07:00
test_env.c test: add an spdk_malloc implementation for test_env 2017-02-09 11:03:11 -07:00