libvirt/src/lxc
Laine Stump 118b240808 network: only clear bandwidth if it has been set
libvirt was unconditionally calling virNetDevBandwidthClear() for
every interface (and network bridge) of a type that supported
bandwidth, whether it actually had anything set or not. This doesn't
hurt anything (unless ifname == NULL!), but is wasteful.

This patch makes sure that all calls to virNetDevBandwidthClear() are
qualified by checking that the interface really had some bandwidth
setup done, and checks for a null ifname inside
virNetDevBandwidthClear(), silently returning success if it is null
(as well as removing the ATTRIBUTE_NONNULL from that function's
prototype, since we can't guarantee that it is never null,
e.g. sometimes a type='ethernet' interface has no ifname as it is
provided on the fly by qemu).
2015-02-25 13:09:34 -05:00
..
libvirtd_lxc.aug Add support for sVirt in the LXC driver 2012-02-02 17:44:39 -07:00
lxc_cgroup.c conf: numa: Rename virDomainNumatune to virDomainNuma 2015-02-20 17:43:04 +01:00
lxc_cgroup.h lxc: report veth device indexes to systemd 2015-01-27 13:57:02 +00:00
lxc_conf.c Search for schemas and cpu_map.xml in source tree 2015-02-19 15:25:04 +01:00
lxc_conf.h lxc: use general virhostdev lists instead of its own 2014-03-12 16:03:04 +00:00
lxc_container.c lxc: more logging during startup paths 2015-01-27 13:57:02 +00:00
lxc_container.h LXC from native: migrate fstab and lxc.mount.entry 2014-02-12 17:52:46 +00:00
lxc_controller.c conf: numa: Rename virDomainNumatune to virDomainNuma 2015-02-20 17:43:04 +01:00
lxc_domain.c Add virLogSource variables to all source files 2014-03-18 14:29:22 +00:00
lxc_domain.h Store a virCgroupPtr instance in virLXCDomainObjPrivatePtr 2013-04-15 17:35:31 +01:00
lxc_driver.c network: only clear bandwidth if it has been set 2015-02-25 13:09:34 -05:00
lxc_driver.h maint: don't use config.h in .h files 2013-06-05 05:53:25 -06:00
lxc_fuse.c maint: use consistent if-else braces in lxc, vbox, phyp 2014-09-04 08:53:21 -06:00
lxc_fuse.h Avoid async signal safety problem in glibc's setxid 2013-11-18 15:36:23 +00:00
lxc_hostdev.c Replace Usb with USB throughout 2014-04-08 11:10:59 +01:00
lxc_hostdev.h Replace Usb with USB throughout 2014-04-08 11:10:59 +01:00
lxc_monitor_protocol.x lxc_monitor_protocol: Redefine xdr_uint64_t if needed 2014-09-26 10:15:03 +02:00
lxc_monitor.c Indent top-level labels by one space in src/lxc/ 2014-03-25 14:58:39 +01:00
lxc_monitor.h Fix generation of systemtap probes for RPC protocols 2013-03-14 12:42:22 +00:00
lxc_native.c numa: conf: Tweak parameters of virDomainNumatuneSet 2015-02-20 17:50:07 +01:00
lxc_native.h LXC driver: started implementing connectDomainXMLFromNative 2014-02-12 17:52:46 +00:00
lxc_process.c lxc: Fix container cleanup for LXCProcessStart 2015-02-13 13:44:52 -05:00
lxc_process.h Remove use of nwfilterPrivateData from nwfilter driver 2015-01-27 12:02:03 +00:00
lxc.conf Standardize whitespace used in example config files 2012-05-28 10:59:13 +01:00
test_libvirtd_lxc.aug.in Autogenerate augeas test case from default config files 2012-05-28 11:07:12 +01:00