qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v2] qga: Add support network interface statistic


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH v2] qga: Add support network interface statistics in guest-network-get-interfaces command
Date: Fri, 21 Apr 2017 07:18:34 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0

On 04/20/2017 08:14 AM, Eric Blake wrote:

>> @@ -648,7 +673,8 @@
>>  { 'struct': 'GuestNetworkInterface',
>>    'data': {'name': 'str',
>>             '*hardware-address': 'str',
>> -           '*ip-addresses': ['GuestIpAddress'] } }
>> +           '*ip-addresses': ['GuestIpAddress'],
>> +           '*interface-statics': ['GuestNetworkInterfaceStat'] } }
> 
> s/interface-statics/statistics/ (the 'interface-' prefix is redundant,
> and you typo'd the remaining portion of the name)
> 
> Missing documentation, including a (since 2.10) tag.

More specifically, I'm expecting a line like:

# @statistics: various statistic counters related to the interface
(since 2.10)

Which makes me think that you want this to be:
'*statistics':'GuestNetworkInterfaceStat'

that is, you want it to be a single struct, not an array of structs.  An
array of GuestIpAddress makes sense (a single guest interface can have
multiple IP addresses), but an array of statistics does not (the
interface only has one counter of how many packets were transmitted).

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]