aboutgitcodebugslistschat
path: root/qrap.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-09-09 15:32:24 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-09-09 15:40:04 +0200
commite0530a802fb1455b15fdcc729280384368fde889 (patch)
tree6ee3195d27696d73c5b0fbfc8de28dc681a143b4 /qrap.c
parent3994fc8f589aa44b1fecfcba223f9852e5a6064b (diff)
downloadpasst-e0530a802fb1455b15fdcc729280384368fde889.tar
passt-e0530a802fb1455b15fdcc729280384368fde889.tar.gz
passt-e0530a802fb1455b15fdcc729280384368fde889.tar.bz2
passt-e0530a802fb1455b15fdcc729280384368fde889.tar.lz
passt-e0530a802fb1455b15fdcc729280384368fde889.tar.xz
passt-e0530a802fb1455b15fdcc729280384368fde889.tar.zst
passt-e0530a802fb1455b15fdcc729280384368fde889.zip
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 <sbrivio@redhat.com>
Diffstat (limited to 'qrap.c')
-rw-r--r--qrap.c2
1 files changed, 1 insertions, 1 deletions
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;
}