[libvirt] [PATCH] nodedev: Fix missing network devices

Michal Privoznik mprivozn at redhat.com
Fri Oct 13 22:39:41 UTC 2017


On 10/10/2017 06:30 AM, John Ferlan wrote:
> 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.
> 
> Signed-off-by: John Ferlan <jferlan at redhat.com>
> ---
> 
>  Found this gem while running the Avocado test suite while doing some
>  other work. It's only 3.8.0 that'll have the missing devices.
> 
>  src/util/virnetdev.c | 13 ++++++++-----
>  1 file changed, 8 insertions(+), 5 deletions(-)
> 

ACK

Michal




More information about the libvir-list mailing list