numam-spdk/examples/nvme
Daniel Verkamp 03cbd9aa72 nvme/identify: simpify buffer allocation
After the NVMe library API change to perform user copies, we don't need
to pass rte_malloc() memory to the NVMe controller utility functions
like spdk_nvme_ctrlr_cmd_get_log_page().

Use regular global variables to simplify the identify example code.

At the same time, fix the code that retrieves error log pages -
previously, it was allocating space for multiple error log entries, but
it was only passing the size of a single entry to the Get Log Page
command.  Now we preallocate the worst-case array size: ELPE, which
indicates the maximum number of error log page entries, is a single
byte, and it is 0's based, so the largest possible array is just 256
entries.

Change-Id: Ia3b3b85e33bb5482df9d366803fc6e6807bf5d88
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
2016-09-13 12:49:06 -07:00
..
arbitration nvme: Create Proc Type for primary and secondary processes 2016-08-15 09:21:20 -07:00
fio_plugin nvme: Create Proc Type for primary and secondary processes 2016-08-15 09:21:20 -07:00
hello_world nvme: Create Proc Type for primary and secondary processes 2016-08-15 09:21:20 -07:00
identify nvme/identify: simpify buffer allocation 2016-09-13 12:49:06 -07:00
nvme_manage nvme: Create Proc Type for primary and secondary processes 2016-08-15 09:21:20 -07:00
perf nvme: Create Proc Type for primary and secondary processes 2016-08-15 09:21:20 -07:00
reserve nvme: Create Proc Type for primary and secondary processes 2016-08-15 09:21:20 -07:00
Makefile Create a utility and enable WRR arbitration mechanism 2016-06-21 16:35:04 -07:00