]> xenbits.xensource.com Git - libvirt.git/commit
network: ensure floor sum is reset to zero when starting networks
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 16 Apr 2019 16:36:57 +0000 (17:36 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 18 Apr 2019 10:18:31 +0000 (11:18 +0100)
commit557a96e0f4218d26c1659dc74f7f80bdb509c7ba
tree467109d6fa17509e1496a9168d5175e39708a209
parentaa9d4d27c1363a77835a6b33b6552a026bbaaeea
network: ensure floor sum is reset to zero when starting networks

In extreme cases libvirt can get mixed up about what VMs are running and
attached to a network leading to the cached floor sum value being
outdated. When this happens the only option is to destroy the network
and then restart libvirtd. If we set floor sum back to zero when
starting the network, we avoid the need for a libvirtd restart at least.

Reviewed-by: Laine Stump <laine@laine.org>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/network/bridge_driver.c