]> xenbits.xensource.com Git - libvirt.git/commit
nodedev: Fix missing network devices
authorJohn Ferlan <jferlan@redhat.com>
Tue, 10 Oct 2017 13:04:54 +0000 (09:04 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Sat, 14 Oct 2017 00:29:06 +0000 (20:29 -0400)
commitac7cc62419e99dd231577c5e93ce46c6c89d0cb5
treeff9026822ba17b68468b8c3899b085abaebabb8c
parent7a995c6b78062be85ae03b74511e2cc7f0a08898
nodedev: Fix missing network devices

Commit id '8708ca01c' added a check to determine whether the NIC had
Switchdev capabilities; however, in doing so inadvertently would cause
network devices without a PCI device to not be added to the node device
database. Thus, network devices having a "computer" as a parent, such
as "net_lo*", "net_virbr*", "net_tun*", "net_vnet*", etc. were not added.

Alter the check to not even check for Switchdev bits if no PCI device found.
src/util/virnetdev.c