Fix - os-vif fails to get the correct UpLink Representor
Till kernel 5.7 PF and VF representors are exposed as virtual device.
They are not linked to its parent PCI device like how uplink
representor is linked.
Starting from kernel 5.8 due to new change [1] the PF and VF representors are
linked to their parent PCI device, and so "get_ifname_by_pci_address" fails
to get the correct UpLink Representor.
This patch modifys the behviour of "get_ifname_by_pci_address" to
check the physical port name of the netdev in
vf_pci_addr_path/physfn/net to match the formart for the uplink "p\d+".
Reviewed: https:/ /review. opendev. org/745895 /git.openstack. org/cgit/ openstack/ os-vif/ commit/ ?id=b37de19c58c 877f5174d76d0a4 ba5ab519f464e8
Committed: https:/
Submitter: Zuul
Branch: master
commit b37de19c58c877f 5174d76d0a4ba5a b519f464e8
Author: Mamduh Alassi <email address hidden>
Date: Wed Aug 12 16:24:47 2020 +0300
Fix - os-vif fails to get the correct UpLink Representor
Till kernel 5.7 PF and VF representors are exposed as virtual device.
They are not linked to its parent PCI device like how uplink
representor is linked.
Starting from kernel 5.8 due to new change [1] the PF and VF representors are by_pci_ address" fails
linked to their parent PCI device, and so "get_ifname_
to get the correct UpLink Representor.
This patch modifys the behviour of "get_ifname_ by_pci_ address" to pci_addr_ path/physfn/ net to match the formart for the uplink "p\d+".
check the physical port name of the netdev in
vf_
[1] https:/ /git.kernel. org/pub/ scm/linux/ kernel/ git/netdev/ net.git/ commit/ ?id=123f0f53dd6 4b67e34142485fe 866a8a581f12f1
Closes-Bug: #1892132 f555c8284bfd703 71ce90da0c7
Change-Id: I49f6ae3f0e6bfb