[PATCH v1] libxl: adjust handling of libxl_device_nic objects
Olaf Hering
olaf at aepfle.de
Wed May 19 08:53:12 UTC 2021
Am Wed, 19 May 2021 10:44:17 +0200
schrieb Olaf Hering <olaf at aepfle.de>:
> for (i = 0; i < nnics; i++) {
> if (virDomainNetGetActualType(l_nics[i]) == VIR_DOMAIN_NET_TYPE_HOSTDEV)
> - continue;
> + nvnics++;
> + }
This part inverts the logic, should look like that instead:
for (i = 0; i < nnics; i++) {
if (virDomainNetGetActualType(l_nics[i]) == VIR_DOMAIN_NET_TYPE_HOSTDEV)
continue;
+ nvnics++;
+ }
Olaf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20210519/d18f9919/attachment-0001.sig>
More information about the libvir-list
mailing list