vmm: api: Match VhostUserBlkConfig defaults between CLI and HTTP API

In order to let the CLI and the HTTP API behave the same regarding the
VhostUserBlkConfig structure, this patch defines some default values
for num_queues, queue_size and wce.

num_queues is 1, queue_size is 128 and wce is true.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2019-12-10 17:15:43 +01:00
committed by Rob Bradford
parent 1c2587f8cb
commit 4bfd51cc42
2 changed files with 23 additions and 6 deletions

View File

@@ -391,19 +391,19 @@ components:
VhostUserBlkConfig:
required:
- sock
- num_queues
- queue_size
- wce
type: object
properties:
sock:
type: string
num_queues:
type: integer
default: 1
queue_size:
type: integer
default: 128
wce:
type: boolean
default: true
VsockConfig:
required: