virtio: virtio: implement packed queues from virtio 1.1
Type: feature
Change-Id: I12703371541298efa029903d6762b1cd1f7322ca
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
diff --git a/src/vnet/devices/virtio/cli.c b/src/vnet/devices/virtio/cli.c
index 8a9c97b..05f9eab 100644
--- a/src/vnet/devices/virtio/cli.c
+++ b/src/vnet/devices/virtio/cli.c
@@ -49,10 +49,12 @@
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 @@
.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* */