From: Thomas Huth <thuth@redhat.com>
To: Eric Blake <eblake@redhat.com>,
qemu-devel@nongnu.org, Jason Wang <jasowang@redhat.com>
Cc: Markus Armbruster <armbru@redhat.com>
Subject: Re: [PATCH v2 1/2] net: Drop the legacy "name" parameter from the -net option
Date: Tue, 12 May 2020 16:50:56 +0200 [thread overview]
Message-ID: <87787afc-46dd-c4df-15ff-48041111bc6c@redhat.com> (raw)
In-Reply-To: <34b66d39-27ce-36a9-b478-c17cbd1e5712@redhat.com>
On 12/05/2020 16.26, Eric Blake wrote:
> On 5/12/20 7:31 AM, Thomas Huth wrote:
>> It's been deprecated since QEMU v3.1, so it's time to finally
>> remove it. The "id" parameter can simply be used instead.
>>
>> Reviewed-by: Eric Blake <eblake@redhat.com>
>> Signed-off-by: Thomas Huth <thuth@redhat.com>
>> ---
>> docs/system/deprecated.rst | 15 +++++++++------
>> net/net.c | 10 +---------
>> qapi/net.json | 3 ---
>> 3 files changed, 10 insertions(+), 18 deletions(-)
>>
>
>> +++ b/qapi/net.json
>> @@ -474,8 +474,6 @@
>> #
>> # @id: identifier for monitor commands
>> #
>> -# @name: identifier for monitor commands, ignored if @id is present
>> -#
>> # @opts: device type specific properties (legacy)
>> #
>> # Since: 1.2
>> @@ -483,7 +481,6 @@
>> { 'struct': 'NetLegacy',
>> 'data': {
>> '*id': 'str',
>> - '*name': 'str',
>> 'opts': 'NetLegacyOptions' } }
>
> Why is 'id' left optional? I'd expect it to be mandatory, now.
That's because it is still optional, indeed. It is currently perfectly
valid to run "qemu-system-xyz -net user -net nic" without specifying any
"id". If I remove the "*" here, the old syntax breaks. I don't think
that we want this here, so "*id" has to stay optional.
(FWIW, the ID is then created internally, see assign_name() in net/net.c)
Thomas
next prev parent reply other threads:[~2020-05-12 14:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-12 12:31 [PATCH v2 0/2] net: Drop legacy "name" from -net and remove NetLegacy Thomas Huth
2020-05-12 12:31 ` [PATCH v2 1/2] net: Drop the legacy "name" parameter from the -net option Thomas Huth
2020-05-12 14:26 ` Eric Blake
2020-05-12 14:50 ` Thomas Huth [this message]
2020-05-12 12:31 ` [PATCH v2 2/2] net: Drop the NetLegacy structure, always use Netdev instead Thomas Huth
2020-05-12 14:32 ` Eric Blake
2020-05-12 15:13 ` Thomas Huth
2020-05-12 15:51 ` Eric Blake
2020-05-13 8:40 ` Thomas Huth
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=87787afc-46dd-c4df-15ff-48041111bc6c@redhat.com \
--to=thuth@redhat.com \
--cc=armbru@redhat.com \
--cc=eblake@redhat.com \
--cc=jasowang@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).