Re: [PATCH] network: unplug bandwidth and call networkRunHook only when appropriate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/25/2014 08:47 AM, Laine Stump wrote:
> According to commit b4e0299dm if networkAllocateActualDevice() was
> successful, it will *always* allocate an iface->data.network.actual,
> so we can use this during networkReleaseActualDevice() to know if
> there is really anything to undo. We were properly using this
> information to only decrement the network connections counter if it
> had previously been incremented, but we were unconditionally
> unplugging bandwidth and calling the "unplugged" network hook for
> *all* interfaces (during qemuProcessStop()) whether they had been
> previously plugged or not. This caused problems if a domain failed to
> start at some time prior to all interfaces being allocated. (I
> encountered this when an interface had a bandwidth floor set but no
> inbound QoS).
> 
> This patch changes both the call to networkUnplugBandwidth() and the
> call to networkRunHook() to only be called if there was a previous
> call to "plug" for the same interface.
> ---
>  src/network/bridge_driver.c | 17 +++++++++--------
>  1 file changed, 9 insertions(+), 8 deletions(-)

ACK.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]