numam-spdk/examples/nvme
Sasha Kotchubievsky a8dd54792c perf: Fix integer overflow
perf application can't generate IO for NVMe namespace with
 more than 4G size.

 Example of error:
 "Attached to NVMe over Fabrics controller at 1.1.75.1:1023:
 nqn.2016-06.io.spdk.r-dcs75:rd0
 WARNING: controller SPDK bdev Controller (SPDK000DEADBEAF00   ) ns 1 has
 invalid ns size 0 / block size 4096 for I/O size 4096
 WARNING: Some requested NVMe devices were skipped
 No valid NVMe controllers or AIO devices found"

 ns_size variable is uint32_t, spdk_nvme_ns_get_size function
 returns uint64_t. Result can exceed the maximum size of
 uint32_t and ns_size remains 0.

 The issue introduced by commit: f2462909

Change-Id: Idc6dd8688d5d6268bda1a1d6b06a611643af6155
Signed-off-by: Sasha Kotchubievsky <sashakot@mellanox.com>
Reviewed-on: https://review.gerrithub.io/c/443996 (master)
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/447451
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2019-03-08 18:56:27 +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 example/nvme: Improve error check of input parsing by spdk_strtol 2019-01-29 17:39:18 +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 example/nvme: Improve error check of input parsing by spdk_strtol 2019-01-29 17:39:18 +00:00
nvme_manage example/nvme: Improve error check of input parsing by spdk_strtol 2019-01-29 17:39:18 +00:00
perf perf: Fix integer overflow 2019-03-08 18:56:27 +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