]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
network: Add network bandwidth support to ethernet interfaces
authorAnirban Chakraborty <abchak@juniper.net>
Tue, 18 Nov 2014 23:55:48 +0000 (15:55 -0800)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 19 Nov 2014 09:36:49 +0000 (10:36 +0100)
commit22cff52a2b8e06c913b1f97767e5d390fb17fc3b
treeca6471ef69474fbd4bfd6d40b45234f7ac2ee296
parent401702d92eb28faffbb7a8b63baca67ef7d9a5b5
network: Add network bandwidth support to ethernet interfaces

Ethernet interfaces in libvirt currently do not support bandwidth setting.
For example, following xml file for an interface will not apply these
settings to corresponding qdiscs.

    <interface type="ethernet">
      <mac address="02:36:1d:18:2a:e4"/>
      <model type="virtio"/>
      <script path=""/>
      <target dev="tap361d182a-e4"/>
      <bandwidth>
        <inbound average="984" peak="1024" burst="64"/>
        <outbound average="2000" peak="2048" burst="128"/>
      </bandwidth>
    </interface>

Signed-off-by: Anirban Chakraborty <abchak@juniper.net>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/netdev_bandwidth_conf.c
src/conf/netdev_bandwidth_conf.h
src/libvirt_private.syms
src/lxc/lxc_driver.c
src/lxc/lxc_process.c
src/qemu/qemu_command.c
src/qemu/qemu_hotplug.c
src/qemu/qemu_process.c
src/util/virnetdevmacvlan.c
src/util/virnetdevmacvlan.h