]> git.ipfire.org Git - thirdparty/libvirt.git/commit
bandwidth: Integrate bandwidth into portgroups
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 26 Jul 2011 12:42:37 +0000 (14:42 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 27 Jul 2011 08:26:25 +0000 (10:26 +0200)
commitfe957f0a6fe7cca46f2b36e8e38daf1c34438a3d
tree6fd83d22f2a7b5347744a138d7e253daf4a7a16c
parent5c77d18b1b09043a084e6c9c4973a22f96e50b80
bandwidth: Integrate bandwidth into portgroups

Every DomainNetDef has a bandwidth, as does every portgroup.
Whenever a DomainNetDef of type NETWORK is about to be used, a call is
made to networkAllocateActualDevice(). This function chooses the "best"
bandwidth object and places it in the DomainActualNetDef.
From that point on, whenever some code needs to use the bandwidth data
for the interface, it's retrieved with virDomainNetGetActualBandwidth(),
which will always return the "best" info as determined in the
previous step.
docs/formatnetwork.html.in
src/conf/domain_conf.c
src/conf/domain_conf.h
src/conf/network_conf.c
src/conf/network_conf.h
src/libvirt_private.syms
src/network/bridge_driver.c
src/qemu/qemu_command.c
src/util/network.c
src/util/network.h