]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Restore default root qdisc when QoS is cleared out
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 4 Dec 2020 11:50:58 +0000 (12:50 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 6 Jan 2021 12:29:52 +0000 (13:29 +0100)
commitd53b09235398c1320ed2f1b45b640823171467ed
tree6441d68789c1def33048fca2779cf993b0e7a946
parentabb1554a2d3351498de2da0f81c1d9eb2644b779
qemu: Restore default root qdisc when QoS is cleared out

When an interface has some bandwidth limitation set (it's root
qdisc is htb in that case) but this gets cleared out via public
API call (virDomainSetInterfaceParameters() or
virDomainUpdateDeviceFlags()) then virNetDevBandwidthSet() clears
out whatever qdiscs were set on the interface and kernel places
the default qdisc at the root. What we need to do next is to
replace the root qdisc with the one we want.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1329644
Fixes: 0b66196d86ea375234cb0ee99289c486f9921820
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu_driver.c
src/qemu/qemu_hotplug.c