]> xenbits.xensource.com Git - people/dariof/libvirt.git/commitdiff
libxl: Allow libxl to set NIC devid
authorJim Fehlig <jfehlig@suse.com>
Thu, 20 Jun 2013 17:38:37 +0000 (11:38 -0600)
committerJim Fehlig <jfehlig@suse.com>
Fri, 21 Jun 2013 16:16:47 +0000 (10:16 -0600)
libxl contains logic to determine an appropriate devid for new devices
that do not specify one in their configuration.  For all device types
except NICs, the libxl driver allows libxl to determine devid.  Do the
same for NICs.

src/libxl/libxl_conf.c

index 812d3808e8f0de8775633b5ef14f6bfd1b075aea..1be66dad115ad95b9731da37a007854b22f15967 100644 (file)
@@ -609,8 +609,6 @@ libxlMakeNicList(virDomainDefPtr def,  libxl_domain_config *d_config)
     }
 
     for (i = 0; i < nnics; i++) {
-        x_nics[i].devid = i;
-
         if (libxlMakeNic(l_nics[i], &x_nics[i]))
             goto error;
     }