qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: ZhiPeng Lu <lu.zhipeng@zte.com.cn>, mdroth@linux.vnet.ibm.com
Cc: berrange@redhat.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2] qga: Add support network interface statistics in guest-network-get-interfaces command
Date: Thu, 20 Apr 2017 08:14:19 -0500	[thread overview]
Message-ID: <bd4021f8-1f41-e904-1f1e-e965bec2584d@redhat.com> (raw)
In-Reply-To: <1492684955-27154-1-git-send-email-lu.zhipeng@zte.com.cn>

[-- Attachment #1: Type: text/plain, Size: 3429 bytes --]

On 04/20/2017 05:42 AM, ZhiPeng Lu wrote:
> we can get the  network inetrface statistics inside  a virtual machine by

s/inetrface/interface/

lose the double spaces (twice)

> guest-network-get-interfaces command.
> it is very userful for us to monitor and analyze network traff.

s/userful/useful/
s/traff/traffic/

> 
> Signed-off-by: ZhiPeng Lu <lu.zhipeng@zte.com.cn>
> Signed-off-by: DanielP.Berrange <berrange@redhat.com>
> Reviewed-by: EricBlake  <eblake@redhat.com>

Please fix the spacing of Daniel and my names to match the spacing we
typically use (I like to visit 'git log' to learn statistics of patches
I've helped on, and incorrect spellings are easy to miss).

Worse, you added Reviewed-by: attributed to me when I did NOT authorize
it on v1:
https://lists.gnu.org/archive/html/qemu-devel/2017-04/msg03026.html

I pointed out that your v1 was incomplete.  Sometimes, I authorize a
conditional R-b, where I state what trivial action must be taken to fix
the patch without needing me to re-read things - but in the case of
missing documentation, where there is a good chance that it may need
wording improvements, I prefer to omit my R-b and read v2 in its entirety.

> +++ b/qga/qapi-schema.json
> @@ -635,6 +635,31 @@
>             'prefix': 'int'} }
>  
>  ##
> +# @GuestNetworkInterfaceStat:
> +#
> +# @rx-bytes: received bytes of interface
> +# @rx-packets: received packets of interface
> +# @rx-errs: received error packets of interface
> +# @rx-drop: received drop packets of interface

s/ of interface//g - it's not adding any useful information.

How can you receive a dropped packet?  Obviously, the statistic is
available, but what is it really representing?  Maybe 'dropped packets
detected on receive side' reads better.

> +#
> +# @tx-bytes: send bytes of interface
> +# @tx-packets: send packets of interface

s/send/transmitted/

> +# @tx-errs: send error packets of interface

It's not how many error packets were sent, but how many errors were
detected while attempting to send, so maybe 'error packets detected on
transmission side'

> +# @tx-drop: send drop packets of interface
and 'dropped packets detected on transmission side'

> +# Since: 2.10
> +##
> +{ 'struct': 'GuestNetworkInterfaceStat',
> +  'data': {'rx-bytes': 'uint64',
> +            'rx-packets': 'uint64',
> +            'rx-errs': 'uint64',
> +            'rx-drop': 'uint64',
> +            'tx-bytes': 'uint64',
> +            'tx-packets': 'uint64',
> +            'tx-errs': 'uint64',
> +            'tx-drop': 'uint64'
> +           } }
> +
> +##
>  # @GuestNetworkInterface:
>  #
>  # @name: The name of interface for which info are being delivered
> @@ -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.

So you still do not have my R-b; looking forward to v3.

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


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

  parent reply	other threads:[~2017-04-20 13:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-20 10:42 [Qemu-devel] [PATCH v2] qga: Add support network interface statistics in guest-network-get-interfaces command ZhiPeng Lu
2017-04-20 10:47 ` no-reply
2017-04-20 13:14 ` Eric Blake [this message]
2017-04-21 12:18   ` Eric Blake

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bd4021f8-1f41-e904-1f1e-e965bec2584d@redhat.com \
    --to=eblake@redhat.com \
    --cc=berrange@redhat.com \
    --cc=lu.zhipeng@zte.com.cn \
    --cc=mdroth@linux.vnet.ibm.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).