aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/devices/virtio/cli.c
diff options
context:
space:
mode:
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* */