Spdk/lib
Dariusz Stojaczyk 8f29093660 vhost/blk: set blkcfg->num_queues to the max available queues number
QEMU overrides this value anyway, but other
virtio implementation may not. Setting
blkcfg->num_queues to its target value
won't break anything, and will help out
SPDK virtio-blk driver implementation.

For equivalent field in virtio-scsi, the
Virtio 1.0 spec says:

```
num_queues
is the total number of request virtqueues exposed by the device. The
driver MAY use only one request queue, or it can use more to achieve
better performance.
```

Multiqueue for virtio-blk is oficially still
unsupported, so the blkcfg->num_queues remains
undocumented. Let's implement it adequately
to the virtio-scsi spec.

Change-Id: Ief520385997bb7e745ed17501a972c55955346d2
Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/399121
Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
2018-02-09 13:14:43 -05:00
..
bdev Remove trailing whitespace before \n in printf() 2018-02-06 11:16:50 -05:00
blob blobstore: move free xattr's to separate function 2018-02-02 16:58:06 -05:00
blobfs blobfs: return the correct file length. 2018-01-11 15:50:01 -05:00
conf conf: Remove use of perror() for strdup() failure 2017-12-15 16:13:27 -05:00
copy build: remove $(ENV_CFLAGS) where not necessary 2018-01-03 12:05:59 -05:00
cunit include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
env_dpdk util: extend cpumask to hold more than 64 cpus 2018-01-25 18:51:50 -05:00
event rpc: remove [Rpc] configuration file section 2018-02-06 11:15:39 -05:00
ioat build: remove $(ENV_CFLAGS) where not necessary 2018-01-03 12:05:59 -05:00
iscsi net: add sock.h 2018-02-08 12:05:54 -05:00
json utf.h: remove #include "spdk/json.h" 2018-01-31 14:37:16 -05:00
jsonrpc util: add spdk_strerror() wrapper with TLS support 2018-01-04 15:00:09 -05:00
log log: rename SPDK_TRACE_* to SPDK_LOG_* 2017-12-07 12:23:19 -05:00
lvol blobstore: move xattrs parameters passed as options to separate structure 2018-02-02 16:58:06 -05:00
nbd nbd: improve nbd to handle overlapped I/O 2018-01-16 09:59:21 -05:00
net net: change sock to fd in spdk_sock_create 2018-02-08 12:05:54 -05:00
nvme nvme/pcie: limit max completions based on queue size 2018-01-05 12:45:28 -05:00
nvmf nvmf: allow removal of listen addresses at runtime 2018-02-07 12:47:27 -05:00
rocksdb env_spdk: make sure the Randomaccessfile opened as rocksdb posix env. 2018-01-12 12:57:23 -05:00
rpc build: remove $(ENV_CFLAGS) where not necessary 2018-01-03 12:05:59 -05:00
scsi scsi: ensure bdlen is initialized before use 2018-01-24 16:45:49 -05:00
trace util: add spdk_strerror() wrapper with TLS support 2018-01-04 15:00:09 -05:00
ut_mock test/mock: add pthread_self 2017-09-19 17:15:15 -04:00
util util: extend cpumask to hold more than 64 cpus 2018-01-25 18:51:50 -05:00
vhost vhost/blk: set blkcfg->num_queues to the max available queues number 2018-02-09 13:14:43 -05:00
virtio virtio: add mb() before checking notify flag 2018-02-06 19:27:46 -05:00
Makefile virtio: add new library virtio 2017-12-26 13:03:29 -05:00