420446e6e4
libxl-hvm-nic.patch bnc#848918 OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=325
23 lines
723 B
Diff
23 lines
723 B
Diff
Index: libvirt-1.1.2/src/libxl/libxl_conf.c
|
|
===================================================================
|
|
--- libvirt-1.1.2.orig/src/libxl/libxl_conf.c
|
|
+++ libvirt-1.1.2/src/libxl/libxl_conf.c
|
|
@@ -846,8 +846,6 @@ libxlMakeNic(virDomainNetDefPtr l_nic, l
|
|
* x_nics[i].mtu = 1492;
|
|
*/
|
|
|
|
- libxl_device_nic_init(x_nic);
|
|
-
|
|
virMacAddrGetRaw(&l_nic->mac, x_nic->mac);
|
|
|
|
if (l_nic->model && !STREQ(l_nic->model, "netfront")) {
|
|
@@ -892,6 +890,8 @@ libxlMakeNicList(virDomainDefPtr def, l
|
|
return -1;
|
|
|
|
for (i = 0; i < nnics; i++) {
|
|
+ libxl_device_nic_init(&x_nics[i]);
|
|
+ x_nics[i].devid = i;
|
|
if (libxlMakeNic(l_nics[i], &x_nics[i]))
|
|
goto error;
|
|
}
|