diff options
author | Wei Wang <wei.w.wang@intel.com> | 2017-06-28 10:37:59 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2017-07-03 22:29:48 +0300 |
commit | 9b02e1618cf26aa52cf786f215d757506dda14f8 (patch) | |
tree | 75f6fe4ee12e8b7fb3acabf49f599fd5c79807e8 /qtest.c | |
parent | fd479c60f5766f7fb247ad146b9e3c33d03d2055 (diff) | |
download | qemu-9b02e1618cf26aa52cf786f215d757506dda14f8.zip qemu-9b02e1618cf26aa52cf786f215d757506dda14f8.tar.gz qemu-9b02e1618cf26aa52cf786f215d757506dda14f8.tar.bz2 |
virtio-net: enable configurable tx queue size
This patch enables the virtio-net tx queue size to be configurable
between 256 (the default queue size) and 1024 by the user when the
vhost-user backend is used.
Currently, the maximum tx queue size for other backends is 512 due
to the following limitations:
- QEMU backend: the QEMU backend implementation in some cases may
send 1024+1 iovs to writev.
- Vhost_net backend: there are possibilities that the guest sends
a vring_desc of memory which crosses a MemoryRegion thereby
generating more than 1024 iovs after translation from guest-physical
address in the backend.
Signed-off-by: Wei Wang <wei.w.wang@intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'qtest.c')
0 files changed, 0 insertions, 0 deletions