From e0530a802fb1455b15fdcc729280384368fde889 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Thu, 9 Sep 2021 15:32:24 +0200 Subject: qrap: Set x-txburst as temporary workaround for virtio-net TX stall Flooding a virtio-net interface connected to a socket back-end results in a TX stall I'm still debugging. The stall goes away by setting a higher value for x-txburst (256 by default). Signed-off-by: Stefano Brivio --- qrap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qrap.c b/qrap.c index 7df5a40..1be1be7 100644 --- a/qrap.c +++ b/qrap.c @@ -223,7 +223,7 @@ int main(int argc, char **argv) if (has_dev) { qemu_argv[qemu_argc++] = "-device"; - snprintf(dev_str, ARG_MAX, "%s,%s%x%s,netdev=hostnet0", + snprintf(dev_str, ARG_MAX, "%s,%s%x%s,netdev=hostnet0,x-txburst=4096", dev->name, dev->template, i, dev->template_post); qemu_argv[qemu_argc++] = dev_str; } -- cgit v1.2.3