Spdk/lib/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
..
Makefile nvme: Monitor uevent for device insert and remove 2016-11-30 14:27:43 -07:00
nvme_ctrlr_cmd.c nvme: track qpair within nvme_request 2017-04-12 21:05:23 -07:00
nvme_ctrlr.c nvme: add I/O qpair creation options 2017-07-18 18:33:20 -04:00
nvme_internal.h nvme: add I/O qpair creation options 2017-07-18 18:33:20 -04:00
nvme_ns_cmd.c nvme: add the COMPARE IO command support 2017-07-05 16:31:01 -04:00
nvme_ns.c nvme: initialize namespace capability flags with correct order 2017-03-10 11:39:09 -07:00
nvme_pcie.c nvme: add I/O qpair creation options 2017-07-18 18:33:20 -04:00
nvme_qpair.c nvme: no need to send abort notification for died application 2017-06-20 15:43:21 -04:00
nvme_quirks.c nvme: add NVME_QUIRK_DELAY_AFTER_QUEUE_ALLOC 2017-05-01 10:22:18 -07:00
nvme_rdma.c nvme: add I/O qpair creation options 2017-07-18 18:33:20 -04:00
nvme_transport.c nvme: add I/O qpair creation options 2017-07-18 18:33:20 -04:00
nvme_uevent.c nvme/uevent: use env PCI addr helper functions 2017-06-23 11:20:05 -04:00
nvme_uevent.h nvme: Remove pci_addr from probe_info 2016-12-12 10:46:50 -07:00
nvme.c nvme: add API to convert trtype and adrfam to string 2017-06-30 12:43:18 -04:00