[libvirt] [PATCH] util: skip RDMA detection for non-PCI network devices

Andrea Bolognani abologna at redhat.com
Fri Mar 8 14:26:38 UTC 2019


On Thu, 2019-03-07 at 18:19 +0100, Pavel Hrdina wrote:
> Only PCI devices have '/sys/class/net/<ifname>/device/resource' so we
> need to skip this check for all other network devices.
> 
> Without this patch and RDMA enabled libvirt will not detect any network
> device that doesn't have the path above which includes 'lo', 'virbr',
> 'tun', etc.
> 
> Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1639258
> 
> Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
> ---
>  src/util/virnetdev.c | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)

Reviewed-by: Andrea Bolognani <abologna at redhat.com>

-- 
Andrea Bolognani / Red Hat / Virtualization




More information about the libvir-list mailing list