]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: call networkPlugBandwidth() for all types of network
authorPavel Mores <pmores@redhat.com>
Fri, 14 Feb 2020 16:26:23 +0000 (17:26 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 17 Feb 2020 16:26:38 +0000 (17:26 +0100)
commite32934062dfe8163ac273fe5929b9ca33c326884
tree450d8a6f83f610420f159d891702bee6a6d96556
parentaa985af212c89002dddcb87d900a3d59399f11f5
qemu: call networkPlugBandwidth() for all types of network

To fix the actual bug, it was necessary to make networkPlugBandwidth() be
called also for 'bridge'-type networks implemented using macvtap's 'bridge'
mode (previously it was only called for those implemented on top of an
existing bridge).

However, it seems beneficial to call it for other network types as well, at
least because it removes an inconsistency in types of bandwidth configuration
changes permissible in inactive and active domain configs.  It should also be
safe as the function pretty much amounts to NOP if no QoS is requested and the
new behaviour should not be any worse than before if it is.

Signed-off-by: Pavel Mores <pmores@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/network/bridge_driver.c