Re: guest band width setting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 30.03.2014 14:46, Pradeep Kiruvale wrote:
Hi All,

  I am new to QEMU/libvirt

   I was starting to learn the libvirt code,I was browsing  the code how
the guest network bandwidth to be set like we mention <inbound> <outbound>
tags in the xml,but where in code exactly these values set to the guest
interface.

I browsed the code a lot could not find it.Please help to understand how
this works.



The bandwidth is set in virNetDevBandwidthSet() function:

http://libvirt.org/git/?p=libvirt.git;a=blob;f=src/util/virnetdevbandwidth.c;h=b06ed4c63c1e64736718b880b1821d745d7f31c2;hb=HEAD#l60

The basic idea is to call /sbin/tc a few times with the correct arguments (the path to the binary may change through different systems).

Michal

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]