From: Jim Fehlig Date: Thu, 20 Jun 2013 17:38:37 +0000 (-0600) Subject: libxl: Allow libxl to set NIC devid X-Git-Tag: v1.1.0-rc1~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba64b97134a6129a48684f22f31be92c3b6eef96;p=thirdparty%2Flibvirt.git libxl: Allow libxl to set NIC devid 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. --- diff --git a/src/libxl/libxl_conf.c b/src/libxl/libxl_conf.c index 812d3808e8..1be66dad11 100644 --- a/src/libxl/libxl_conf.c +++ b/src/libxl/libxl_conf.c @@ -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; }