From: Eric Blake <eblake@redhat.com>
To: sfeldma@gmail.com, qemu-devel@nongnu.org
Cc: stefanha@gmail.com, jiri@resnulli.us, dsahern@gmail.com
Subject: Re: [Qemu-devel] [PATCH v3 4/4] qmp/hmp: add rocker device support
Date: Tue, 02 Jun 2015 10:32:02 -0600 [thread overview]
Message-ID: <556DDA82.4000008@redhat.com> (raw)
In-Reply-To: <1432908109-31559-5-git-send-email-sfeldma@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3116 bytes --]
On 05/29/2015 08:01 AM, sfeldma@gmail.com wrote:
> From: Scott Feldman <sfeldma@gmail.com>
>
> v3:
>
> Address review comments from Stefan Hajnoczi:
>
> - Add missing hw/net/rocker/qmp-norocker.c file.
> - Add missing curly brackets to a for loop
>
> v2:
>
> Address review comments from Stefan Hajnoczi:
>
> - Add missing qapi/rocker.json file.
> - Use PRIx64 for print uint64 value
> - when CONFIG_ROCKER is not defined, build qmp-norocker.o stub using
> hw/net/Makefile.objs rather than in the top-level Makefile.target
>
> Change qapi/rocker.json "since 2.3" comments to "since 2.4", since qmp/hmp
> support didn't get into 2.3.
>
> v1:
Again, version info belongs after ---.
>
> Add QMP/HMP support for rocker devices. This is mostly for debugging purposes
> to see inside the device's tables and port configurations. Some examples:
>
> (qemu) info rocker sw1
> name: sw1
> id: 0x0000013512005452
> ports: 4
>
> (qemu) info rocker-ports sw1
> ena/ speed/ auto
> port link duplex neg?
> sw1.1 up 10G FD No
> sw1.2 up 10G FD No
> sw1.3 !ena 10G FD No
> sw1.4 !ena 10G FD No
>
> +++ b/qapi/rocker.json
> +##
> +# @rocker:
This comment...
> +#
> +# Return rocker switch information.
> +#
> +# Returns: @Rocker information
> +#
> +# Since: 2.4
> +##
> +{ 'command': 'query-rocker',
...does not match this command name.
> +
> +##
> +# @rocker-ports:
> +#
> +# Return rocker switch information.
> +#
> +# Returns: @Rocker information
> +#
> +# Since: 2.4
> +##
> +{ 'command': 'query-rocker-ports',
and again.
> +
> +##
> +# @rocker-of-dpa-flows:
> +#
> +# Return rocker OF-DPA flow information.
> +#
> +# @name: switch name
> +#
> +# @tbl-id: #optional flow table ID. If tbl-id is not specified, returns
> +# flow information for all tables.
> +#
> +# Returns: @Rocker OF-DPA flow information
> +#
> +# Since: 2.4
> +##
> +{ 'command': 'query-rocker-of-dpa-flows',
And again.
> +##
> +# @rocker-of-dpa-groups:
> +#
> +# Return rocker OF-DPA group information.
> +#
> +# @name: switch name
> +#
> +# @type: #optional group type. If type is not specified, returns
> +# group information for all group types.
> +#
> +# Returns: @Rocker OF-DPA group information
> +#
> +# Since: 2.4
> +##
> +{ 'command': 'query-rocker-of-dpa-groups',
and again.
> +++ b/qmp-commands.hx
> +SQMP
> +Show rocker switch ports
> +------------------------
> +
> +Arguments:
> +
> +- "name": switch name
> +
> +Example:
> +
> +-> { "execute": "query-rocker-ports", "arguments": { "name": "sw1" } }
> +<- { "return": [ {"duplex": "full", "enabled": true, "name": "sw1.1", "autoneg": "off", "link-up": true, "speed": 10000},
> + {"duplex": "full", "enabled": true, "name": "sw1.2", "autoneg": "off", "link-up": true, "speed": 10000}
You might want to wrap these long lines.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2015-06-02 16:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-29 14:01 [Qemu-devel] [PATCH v3 0/4] rocker device updates sfeldma
2015-05-29 14:01 ` [Qemu-devel] [PATCH v3 1/4] rocker: Add support for phys name sfeldma
2015-06-02 16:27 ` Eric Blake
2015-05-29 14:01 ` [Qemu-devel] [PATCH v3 2/4] rocker: update tests using hw-derived interface names sfeldma
2015-05-29 14:01 ` [Qemu-devel] [PATCH v3 3/4] rocker: bring link up/down on PHY enable/disable sfeldma
2015-05-29 14:01 ` [Qemu-devel] [PATCH v3 4/4] qmp/hmp: add rocker device support sfeldma
2015-06-02 15:07 ` Stefan Hajnoczi
2015-06-02 16:32 ` Eric Blake [this message]
2015-06-02 15:09 ` [Qemu-devel] [PATCH v3 0/4] rocker device updates Stefan Hajnoczi
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=556DDA82.4000008@redhat.com \
--to=eblake@redhat.com \
--cc=dsahern@gmail.com \
--cc=jiri@resnulli.us \
--cc=qemu-devel@nongnu.org \
--cc=sfeldma@gmail.com \
--cc=stefanha@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.