[libvirt PATCH v2 1/2] util: fix erroneous requirement for phys_port_id to get ifname of a VF

2021-12-05 Thread Laine Stump
Commit 795e9e05c3 (libvirt-7.7.0) refactored the code in virpci.c and virnetdev.c that gathered lists of the Virtual Functions (VF) of an SRIOV Physical Function (PF) to simplify the code. Unfortunately the simplification made the assumption, in the new function virPCIGetVirtualFunctionsFull(),

[libvirt PATCH v2 0/2] Fix failure to find VF netdev names during virtual network start

2021-12-05 Thread Laine Stump
The first patch resolves https://bugzilla.redhat.com/2025432, the 2nd simplifies lower level code in the same manner. V1 is here: https://listman.redhat.com/archives/libvir-list/2021-December/msg0.html Change in V2: Rather than adding an extra bool to the arglist of

[libvirt PATCH v2 2/2] util: call virNetDevGetPhysPortID() in less places

2021-12-05 Thread Laine Stump
Whenever virPCIGetNetName() is called, it is either called with physPortID = NULL, or with it set by the caller calling virNetDevGetPhysPortID() soon before virPCIGetNetName(). The physPortID is then used *only* in virPCIGetNetName(). Rather than replicating that same call to