From: Eric Blake <eblake@redhat.com>
To: Markus Armbruster <armbru@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 2/2] net: Turn simple union NetLegacyOptions into a flat union
Date: Wed, 8 Feb 2017 13:22:54 -0600 [thread overview]
Message-ID: <933f91ec-9c2f-2135-f30c-a49a5081c32d@redhat.com> (raw)
In-Reply-To: <1486569864-17005-3-git-send-email-armbru@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1011 bytes --]
On 02/08/2017 10:04 AM, Markus Armbruster wrote:
> Simple unions are simpler than flat unions in the schema, but more
> complicated in C and on the QMP wire: there's extra indirection in C
> and extra nesting on the wire, both pointless. They're best avoided
> in new code.
>
> NetLegacyOptions isn't new, but it's only used internally, not in QMP.
> Convert it to a flat union.
>
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> ---
> net/net.c | 44 ++++++++++++++++++++++----------------------
> qapi-schema.json | 9 +++++++++
> 2 files changed, 31 insertions(+), 22 deletions(-)
>
> +++ b/qapi-schema.json
> @@ -3934,6 +3934,13 @@
> 'opts': 'NetLegacyOptions' } }
>
> ##
> +# @NetLegacyOptionsType:
> +##
Same question as previous patch about a 'Since: 1.2' designation. Same
end result of:
Reviewed-by: Eric Blake <eblake@redhat.com>
--
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 --]
prev parent reply other threads:[~2017-02-08 19:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-08 16:04 [Qemu-devel] [PATCH 0/2] Flatten simple unions where we still can Markus Armbruster
2017-02-08 16:04 ` [Qemu-devel] [PATCH 1/2] numa: Turn simple union NumaOptions into a flat union Markus Armbruster
2017-02-08 19:21 ` Eric Blake
2017-02-09 7:26 ` Markus Armbruster
2017-02-08 16:04 ` [Qemu-devel] [PATCH 2/2] net: Turn simple union NetLegacyOptions " Markus Armbruster
2017-02-08 19:22 ` Eric Blake [this message]
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=933f91ec-9c2f-2135-f30c-a49a5081c32d@redhat.com \
--to=eblake@redhat.com \
--cc=armbru@redhat.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).