Re: [PATCH] qemuDomainSetInterfaceParameters: Allow bandwidth clear out

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

 



On 18.03.2014 16:59, Eric Blake wrote:
On 03/18/2014 04:01 AM, Michal Privoznik wrote:
We allow translation from no_bandwidth to has_bandwidth for a vnic.
However, going in the opposite direction is not implemented. It's not
limitation of the API rather than internal implementation.

Awkward.  How about:

It's not a limitation of the API, rather a missing part of the internal
implementation.

The problem
is, we correctly detect that user hasn't specified any outbound (say
he wants to clear out outbound). However, this gets overwritten by
current vnic outbound settings. Then, virNetDevBandwidthSet doesn't
change anything. We need to stop overwriting the outbound if users
don't want us to. Same applies for inbound.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
  src/qemu/qemu_driver.c | 15 +++++++++++----
  tools/virsh-domain.c   |  4 ++--
  tools/virsh.pod        |  3 +++
  3 files changed, 16 insertions(+), 6 deletions(-)



+To clear inbound or outbound settings, use I<--inbound> or I<--outbound>
+respectfully with average of value zero.

s/of value/value of/

ACK


Unfortunately, I've mistakenly pushed this patch already. So I'm proposing a follow up patch which fixes the wording.

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]