libnvmf_context_set_io_queues-libnvme32
Set i/o queue topology for context
Usage
int libnvmf_context_set_io_queues (struct libnvmf_context *fctx , int nr_io_queues , int nr_write_queues , int nr_poll_queues , int queue_size , bool disable_sqflow );
Arguments
fctx
|
Fabrics context |
|---|---|
nr_io_queues
|
Number of I/O queues |
nr_write_queues
|
Number of write-only queues |
nr_poll_queues
|
Number of polling queues |
queue_size
|
Number of entries per I/O queue (SQSIZE in Connect command) |
disable_sqflow
|
Disable SQ flow control negotiation |
Overview
Convenience setter for the five parameters that together define the I/O queue structure used when establishing a controller connection. All five feed directly into the Connect command at queue creation time. nr_write_queues and nr_poll_queues are additive: total I/O queues is nr_io_queues + nr_write_queues + nr_poll_queues.
Individual libnvmf_context_set_nr_io_queues, _set_nr_write_queues, _set_nr_poll_queues, _set_queue_size, and _set_disable_sqflow accessors are also available when only a subset needs to change.
Return
0 on success, negative error code otherwise.