summaryrefslogtreecommitdiffstats
path: root/src/vnet/devices/virtio/cli.c
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2020-11-16 16:49:30 +0100
committerBeno�t Ganne <bganne@cisco.com>2020-11-17 16:43:26 +0000
commitb977d3f7c28caee8359098be569b55e770c5c6ec (patch)
tree8ef5cdeea9c772e342622fe46e83da77d3438bfa /src/vnet/devices/virtio/cli.c
parentb18796092bd1ef23d41b70c83c69d8d9cd2d051a (diff)
virtio: virtio: implement packed queues from virtio 1.1
Type: feature Change-Id: I12703371541298efa029903d6762b1cd1f7322ca Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vnet/devices/virtio/cli.c')
-rw-r--r--src/vnet/devices/virtio/cli.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/vnet/devices/virtio/cli.c b/src/vnet/devices/virtio/cli.c
index 8a9c97be8cb..05f9eab18cf 100644
--- a/src/vnet/devices/virtio/cli.c
+++ b/src/vnet/devices/virtio/cli.c
@@ -49,10 +49,12 @@ virtio_pci_create_command_fn (vlib_main_t * vm, unformat_input_t * input,
args.checksum_offload_enabled = 1;
else if (unformat (line_input, "buffering"))
{
- args.virtio_flags = VIRTIO_FLAG_BUFFERING;
+ args.virtio_flags |= VIRTIO_FLAG_BUFFERING;
if (unformat (line_input, "size %u", &buffering_size))
args.buffering_size = buffering_size;
}
+ else if (unformat (line_input, "packed"))
+ args.virtio_flags |= VIRTIO_FLAG_PACKED;
else
return clib_error_return (0, "unknown input `%U'",
format_unformat_error, input);
@@ -69,7 +71,7 @@ VLIB_CLI_COMMAND (virtio_pci_create_command, static) = {
.path = "create interface virtio",
.short_help = "create interface virtio <pci-address> "
"[feature-mask <hex-mask>] [gso-enabled] [csum-enabled] "
- "[buffering [size <buffering-szie>]]",
+ "[buffering [size <buffering-szie>]] [packed]",
.function = virtio_pci_create_command_fn,
};
/* *INDENT-ON* */