[libvirt] [PATCH] qemuDomainSetInterfaceParameters: Allow bandwidth clear out

Michal Privoznik mprivozn at redhat.com
Wed Mar 19 10:27:15 UTC 2014


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 at redhat.com>
>> ---
>>   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




More information about the libvir-list mailing list