]> xenbits.xensource.com Git - qemu-upstream-4.6-testing.git/commitdiff
tap: unbreak -netdev tap,fd=X
authorAnthony Liguori <aliguori@us.ibm.com>
Sat, 2 Feb 2013 00:02:50 +0000 (18:02 -0600)
committerAnthony Liguori <aliguori@us.ibm.com>
Sat, 2 Feb 2013 00:05:30 +0000 (18:05 -0600)
The multiqueue patch series broke -netdev tap,fd=X which manifests
as libvirt not being able to start a guest.  This was because it
passed NULL for the netdev name which results in an anonymous netdev
device regardless of what the user specified.

Cc: Jason Wang <jasowang@redhat.com>
Cc: Bruce Rogers <brogers@suse.com>
Reported-by: Bruce Rogers <brogers@suse.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
net/tap.c

index 1bf760995dd495655f919b4f1d1398991b70f21a..48c254ed856965fd078301fdb8631648b15de1f9 100644 (file)
--- a/net/tap.c
+++ b/net/tap.c
@@ -711,7 +711,7 @@ int net_init_tap(const NetClientOptions *opts, const char *name,
 
         vnet_hdr = tap_probe_vnet_hdr(fd);
 
-        if (net_init_tap_one(tap, peer, "tap", NULL, NULL,
+        if (net_init_tap_one(tap, peer, "tap", name, NULL,
                              script, downscript,
                              vhostfdname, vnet_hdr, fd)) {
             return -1;