Kernel 5.8 link VF representors to their parent PCI device similar to existing uplink representor netdevice [1]. This patch update the virPCIGetNetName to support kernel describe above. Updates in V2 per of Laine's comments 1. split v1 patch to 2 patches. first patch for the new util method 2. remove the regex argument. 3. explain that with phys_port_name, there is only a single netdev on the PCI device that can possibly be the PF. [1] - https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/ ?id=123f0f53dd64b67e34142485fe866a8a581f12f1 Dmytro Linkin (1): util: Add phys_port_name support on virPCIGetNetName Moshe Levi (1): util: add virNetDevGetPhysPortName src/util/virnetdev.c | 67 ++++++++++++++++++++++++++++++++++++-------- src/util/virnetdev.h | 4 +++ src/util/virpci.c | 38 ++++++++++++++++++++++++- src/util/virpci.h | 5 ++++ 4 files changed, 101 insertions(+), 13 deletions(-) -- 2.30.0