net: add missing "netmap" to host_net_devices[]
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 27 May 2015 16:16:48 +0000 (17:16 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 24 Jun 2015 15:29:07 +0000 (16:29 +0100)
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 <stefanha@redhat.com>
Message-id: 1432743412-15943-2-git-send-email-stefanha@redhat.com

net/net.c

index cc36c7b4fe63f48fab07a79939a3b2090cd7ce6f..f43af97af3cbc434227eb350af15785753af0fc2 100644 (file)
--- a/net/net.c
+++ b/net/net.c
@@ -60,6 +60,9 @@ const char *host_net_devices[] = {
 #ifdef CONFIG_NET_BRIDGE
     "bridge",
 #endif
+#ifdef CONFIG_NETMAP
+    "netmap",
+#endif
 #ifdef CONFIG_SLIRP
     "user",
 #endif