vmm: Don't factorize vhost-user configurations

We want to set different default configurations for vhost-user-net and
vhost-user-blk, which is the reason why the common part corresponding to
the number of queues and the queue size cannot be embedded.

This prepares for the following commit, matching API and CLI behaviors.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2019-12-10 16:40:32 +01:00
committed by Rob Bradford
parent 793327cff8
commit 5e0bbf9c3b
3 changed files with 28 additions and 35 deletions

View File

@@ -372,41 +372,39 @@ components:
type: boolean
default: false
VhostUserConfig:
VhostUserNetConfig:
required:
- sock
- num_queues
- queue_size
- mac
type: object
properties:
sock:
type: string
num_queues:
type: integer
queue:size:
queue_size:
type: integer
VhostUserNetConfig:
required:
- mac
- vu_cfg
type: object
properties:
mac:
type: string
vu_cfg:
$ref: '#/components/schemas/VhostUserConfig'
VhostUserBlkConfig:
required:
- sock
- num_queues
- queue_size
- wce
- vu_cfg
type: object
properties:
sock:
type: string
num_queues:
type: integer
queue_size:
type: integer
wce:
type: boolean
vu_cfg:
$ref: '#/components/schemas/VhostUserConfig'
VsockConfig:
required: