mirror of
https://github.com/libvirt/libvirt.git
synced 2025-01-24 15:26:40 -06:00
Wire up mrg_rxbuf option for qemu
<interface ...> ... <model type='virtio'/> <driver ...> <host mrg_rxbuf='off'/> </driver> </interface> will result in: -device virtio-net-pci,mrg_rxbuf=off,... https://bugzilla.redhat.com/show_bug.cgi?id=1186886
This commit is contained in:
parent
6067182b0d
commit
6ba5d1afec
@ -4869,6 +4869,10 @@ qemuBuildNicDevStr(virDomainDefPtr def,
|
||||
virBufferAsprintf(&buf, ",host_ufo=%s",
|
||||
virTristateSwitchTypeToString(net->driver.virtio.host.ufo));
|
||||
}
|
||||
if (net->driver.virtio.host.mrg_rxbuf) {
|
||||
virBufferAsprintf(&buf, ",mrg_rxbuf=%s",
|
||||
virTristateSwitchTypeToString(net->driver.virtio.host.mrg_rxbuf));
|
||||
}
|
||||
if (net->driver.virtio.guest.csum) {
|
||||
virBufferAsprintf(&buf, ",guest_csum=%s",
|
||||
virTristateSwitchTypeToString(net->driver.virtio.guest.csum));
|
||||
|
@ -2106,6 +2106,7 @@ qemuDomainChangeNet(virQEMUDriverPtr driver,
|
||||
olddev->driver.virtio.host.tso6 != newdev->driver.virtio.host.tso6 ||
|
||||
olddev->driver.virtio.host.ecn != newdev->driver.virtio.host.ecn ||
|
||||
olddev->driver.virtio.host.ufo != newdev->driver.virtio.host.ufo ||
|
||||
olddev->driver.virtio.host.mrg_rxbuf != newdev->driver.virtio.host.mrg_rxbuf ||
|
||||
olddev->driver.virtio.guest.csum != newdev->driver.virtio.guest.csum ||
|
||||
olddev->driver.virtio.guest.tso4 != newdev->driver.virtio.guest.tso4 ||
|
||||
olddev->driver.virtio.guest.tso6 != newdev->driver.virtio.guest.tso6 ||
|
||||
|
@ -3,7 +3,7 @@ LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test QEMU_AUDIO_DRV=none \
|
||||
-monitor unix:/tmp/test-monitor,server,nowait -no-acpi -boot c -usb \
|
||||
-hda /dev/HostVG/QEMUGuest7 \
|
||||
-device virtio-net-pci,csum=off,gso=off,\
|
||||
host_tso4=off,host_tso6=off,host_ecn=off,host_ufo=off,\
|
||||
host_tso4=off,host_tso6=off,host_ecn=off,host_ufo=off,mrg_rxbuf=off,\
|
||||
guest_csum=off,guest_tso4=off,guest_tso6=off,guest_ecn=off,guest_ufo=off,\
|
||||
vlan=0,id=net0,mac=00:22:44:66:88:aa,bus=pci.0,addr=0x3 \
|
||||
-net user,vlan=0,name=hostnet0 \
|
||||
|
@ -26,7 +26,7 @@
|
||||
<mac address='00:22:44:66:88:aa'/>
|
||||
<model type='virtio'/>
|
||||
<driver>
|
||||
<host csum='off' gso='off' tso4='off' tso6='off' ecn='off' ufo='off'/>
|
||||
<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>
|
||||
</interface>
|
||||
|
Loading…
Reference in New Issue
Block a user