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

2014-02-26 Thread Michal Privoznik
On 25.02.2014 16:47, Laine Stump wrote: According to commit b4e0299dm if networkAllocateActualDevice() was The 'm' at the end of has is a typo. s/dm/d,/ successful, it will *always* allocate an iface-data.network.actual, so we can use this during networkReleaseActualDevice() to know if there

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

2014-02-25 Thread Laine Stump
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

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

2014-02-25 Thread Eric Blake
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