From: Paolo Bonzini <pbonzini@redhat.com>
To: Thomas Huth <thuth@redhat.com>,
qemu-devel@nongnu.org, Jason Wang <jasowang@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] net: Inform the user about deprecated -net options
Date: Tue, 15 Dec 2015 13:51:06 +0100 [thread overview]
Message-ID: <56700CBA.5010505@redhat.com> (raw)
In-Reply-To: <1450179992-15959-1-git-send-email-thuth@redhat.com>
On 15/12/2015 12:46, Thomas Huth wrote:
> We likely don't want to maintain the legacy -net options forever,
> so let's start informing the users that this option will be
> removed in a future version. However, there are two cases where
> we should not spill out a message yet: First is the "-net nic"
> option which might still be required to configure on-board NICs
> that can not be handled via "-netdev" yet, and second is the
> "-net user" default option that is created automatically when
> no other networking option has been specified.
>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
> net/net.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/net/net.c b/net/net.c
> index ade6051..2593961 100644
> --- a/net/net.c
> +++ b/net/net.c
> @@ -1006,6 +1006,12 @@ static int net_client_init1(const void *object, int is_netdev, Error **errp)
> return -1;
> }
>
> + if (opts->type != NET_CLIENT_OPTIONS_KIND_NIC &&
> + (!default_net || opts->type != NET_CLIENT_OPTIONS_KIND_USER)) {
> + error_report("Deprecated net option - "
> + "this will be removed in a future version!");
> + }
Honestly, I still do not believe that they will be removed. They are
little more than syntactic sugar at this point.
Paolo
> if (!net_client_init_fun[opts->type]) {
> error_setg(errp, QERR_INVALID_PARAMETER_VALUE, "type",
> "a net backend type (maybe it is not compiled "
>
next prev parent reply other threads:[~2015-12-15 12:51 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-15 11:46 [Qemu-devel] [PATCH] net: Inform the user about deprecated -net options Thomas Huth
2015-12-15 12:51 ` Paolo Bonzini [this message]
2015-12-15 16:01 ` Thomas Huth
2015-12-15 16:21 ` Paolo Bonzini
2015-12-15 16:46 ` Eric Blake
2015-12-15 17:15 ` Thomas Huth
2015-12-15 17:31 ` Paolo Bonzini
2015-12-15 17:50 ` Thomas Huth
2015-12-15 18:08 ` Paolo Bonzini
2015-12-16 7:20 ` Thomas Huth
2015-12-16 8:50 ` Paolo Bonzini
2015-12-15 16:17 ` Peter Maydell
2015-12-15 16:33 ` Thomas Huth
2015-12-15 16:46 ` Peter Maydell
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=56700CBA.5010505@redhat.com \
--to=pbonzini@redhat.com \
--cc=jasowang@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=thuth@redhat.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.