Spdk/examples/nvme
Daniel Verkamp ce4fcbce71 nvme: add I/O qpair creation options
Add a new struct spdk_nvme_io_qpair_opts to allow the user to override
controller options on a per-I/O qpair basis.

Existing callers with qprio == 0 can be updated to:

  ... = spdk_nvme_ctrlr_alloc_io_qpair(ctrlr, NULL, 0);

Callers that need to specify a non-default qprio should be updated to:

  struct spdk_nvme_io_qpair_opts opts;
  spdk_nvme_ctrlr_get_default_io_qpair_opts(ctrlr, &opts, sizeof(opts));
  opts.qprio = SPDK_NVME_QPRIO_...;
  ... = spdk_nvme_ctrlr_alloc_io_qpair(ctrlr, &opts, sizeof(opts));

Change-Id: I8ac3ea369535cfde759abbe75e1d974b6450a800
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/369676
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2017-07-18 18:33:20 -04:00
..
arbitration nvme: add I/O qpair creation options 2017-07-18 18:33:20 -04:00
fio_plugin nvme: add I/O qpair creation options 2017-07-18 18:33:20 -04:00
hello_world nvme: add I/O qpair creation options 2017-07-18 18:33:20 -04:00
hotplug nvme: add I/O qpair creation options 2017-07-18 18:33:20 -04:00
identify log: set print level when enabling tracelogs 2017-07-11 18:02:47 -04:00
nvme_manage update_firmware: Allow option to download and enable firmware image. 2017-07-07 17:12:57 -04:00
perf nvme: add I/O qpair creation options 2017-07-18 18:33:20 -04:00
reserve nvme: add I/O qpair creation options 2017-07-18 18:33:20 -04:00
Makefile example: Add example for nvme hotplug. 2016-12-01 10:23:10 +08:00