]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Set default qdisc before setting bandwidth
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 4 Dec 2020 12:02:53 +0000 (13:02 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 6 Jan 2021 12:29:43 +0000 (13:29 +0100)
commitabb1554a2d3351498de2da0f81c1d9eb2644b779
treebe07fe86953717427cbe4c442049ddcc630ed5cf
parent5ac2439a831037c2a861566cad1980b0a2f2907f
qemu: Set default qdisc before setting bandwidth

While the code that's setting default qdisc is clever enough to
not overwrite any bandwidth (potentially) set by
virNetDevBandwidthSet() (and thus the root qdisc htb is not
replaced with noqueue), it does print a debug message when that's
the case. It's needless. We can set the root qdisc beforehand and
let virNetDevBandwidthSet() overwrite it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu_command.c
src/qemu/qemu_hotplug.c