Skip to contentSkip to conversation

tap: unbreak -netdev tap,fd=X

PATCH In review Anthony Liguori 1 participant 2 messages Feb 2, 2013 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 tap: unbreak -netdev tap,fd=X

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.

---
 net/tap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/tap.c +1 -1
index 1bf7609..48c254e 100644
@@ -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;
Signature · 1 line
1.8.0
#1 lore raw

Please ignore the 1/2 in the subject... a bit past beer time and I got a little sloppy sending this patch.

Regards,

Anthony Liguori

Quoted 28 lines · Anthony Liguori

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.

---
 net/tap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/tap.c +1 -1
index 1bf7609..48c254e 100644
@@ -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;
Signature · 1 line
1.8.0