Received: from eggs.gnu.org ([2001:4830:134:3::10]:50303) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxfIf-0002gl-Gi for qemu-devel@nongnu.org; Wed, 27 May 2015 13:39:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YxfIc-000499-5C for qemu-devel@nongnu.org; Wed, 27 May 2015 13:39:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58979) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxfIc-00048n-0K for qemu-devel@nongnu.org; Wed, 27 May 2015 13:39:26 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 8BCD18E694 for ; Wed, 27 May 2015 17:39:24 +0000 (UTC) Date: Wed, 27 May 2015 19:39:17 +0200 From: Thomas Huth Message-ID: <20150527193917.6fa118d0@thh440s> In-Reply-To: <1432743412-15943-2-git-send-email-stefanha@redhat.com> References: <1432743412-15943-1-git-send-email-stefanha@redhat.com> <1432743412-15943-2-git-send-email-stefanha@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/5] net: add missing "netmap" to host_net_devices[] List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Paolo Bonzini , qemu-devel@nongnu.org, Markus Armbruster On Wed, 27 May 2015 17:16:48 +0100 Stefan Hajnoczi wrote: > Although hmp-commands.hx lists "netmap" as a valid host_net_add type, > the command rejects it because it's missing from the list. > > Signed-off-by: Stefan Hajnoczi > --- > net/net.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/net/net.c b/net/net.c > index db6be12..c5349d2 100644 > --- a/net/net.c > +++ b/net/net.c > @@ -58,6 +58,9 @@ const char *host_net_devices[] = { > #ifdef CONFIG_NET_BRIDGE > "bridge", > #endif > +#ifdef CONFIG_NETMAP > + "netmap", > +#endif > #ifdef CONFIG_SLIRP > "user", > #endif Did you consider to remove it from the help text in hmp-commands.hx instead? That would force the users to use "netdev_add" for this instead - one more reason to get away from the legacy "net" syntax ;-) Thomas