mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Add support for virtio-net.tx_queue_size
https://bugzilla.redhat.com/show_bug.cgi?id=1462653
Just like I've added support for setting rx_queue_size (in
c56cdf259 and friends), qemu just gained support for setting tx
ring size.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
@@ -5074,7 +5074,7 @@ qemu-kvm -net nic,model=? /dev/null
|
||||
<source network='default'/>
|
||||
<target dev='vnet1'/>
|
||||
<model type='virtio'/>
|
||||
<b><driver name='vhost' txmode='iothread' ioeventfd='on' event_idx='off' queues='5' rx_queue_size='256'>
|
||||
<b><driver name='vhost' txmode='iothread' ioeventfd='on' event_idx='off' queues='5' rx_queue_size='256' tx_queue_size='256'>
|
||||
<host csum='off' gso='off' tso4='off' tso6='off' ecn='off' ufo='off' mrg_rxbuf='off'/>
|
||||
<guest csum='off' tso4='off' tso6='off' ecn='off' ufo='off'/>
|
||||
</driver>
|
||||
@@ -5204,6 +5204,19 @@ qemu-kvm -net nic,model=? /dev/null
|
||||
<b>In general you should leave this option alone, unless you
|
||||
are very certain you know what you are doing.</b>
|
||||
</dd>
|
||||
<dt><code>tx_queue_size</code></dt>
|
||||
<dd>
|
||||
The optional <code>tx_queue_size</code> attribute controls
|
||||
the size of virtio ring for each queue as described above.
|
||||
The default value is hypervisor dependent and may change
|
||||
across its releases. Moreover, some hypervisors may pose
|
||||
some restrictions on actual value. For instance, QEMU
|
||||
v2.9 requires value to be a power of two from [256, 1024] range.
|
||||
<span class="since">Since 3.7.0 (QEMU and KVM only)</span><br/><br/>
|
||||
|
||||
<b>In general you should leave this option alone, unless you
|
||||
are very certain you know what you are doing.</b>
|
||||
</dd>
|
||||
<dt>virtio options</dt>
|
||||
<dd>
|
||||
For virtio interfaces,
|
||||
|
||||
@@ -2711,6 +2711,11 @@
|
||||
<ref name='positiveInteger'/>
|
||||
</attribute>
|
||||
</optional>
|
||||
<optional>
|
||||
<attribute name='tx_queue_size'>
|
||||
<ref name='positiveInteger'/>
|
||||
</attribute>
|
||||
</optional>
|
||||
<optional>
|
||||
<attribute name="txmode">
|
||||
<choice>
|
||||
|
||||
Reference in New Issue
Block a user