]> git.ipfire.org Git - thirdparty/libvirt.git/commit
network: populate interface pool immediately when network is started
authorLaine Stump <laine@laine.org>
Tue, 5 Aug 2014 21:15:31 +0000 (17:15 -0400)
committerLaine Stump <laine@laine.org>
Mon, 11 Aug 2014 21:34:28 +0000 (17:34 -0400)
commit2a193f64580094021745c7507ac2ad22d3c28127
treeca16fe0fc49b2ad68dae2bf93348d1b61ecd066f
parentcd7759cb96db642aaa556f78f15801609885a650
network: populate interface pool immediately when network is started

When a network is defined with "<pf dev='xyz'/>", libvirt will query
sysfs to learn the list of all virtual functions (VF) associated with
that Physical Function (PF) then populate the network's interface pool
accordingly. This action was previously done only when the first guest
actually requested an interface from the network. This patch changes
it to populate the pool immediately when the network is started. This
way any problems with the PF or its VFs will become apparent sooner.

Note that we can't remove the old calls to networkCreateInterfacePool
that happen whenever a guest requests an interface - doing so would be
asking for failures on hosts that had libvirt upgraded with a network
that had been started but not yet used.

This resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1047818
src/network/bridge_driver.c