Reviewed: https://review.opendev.org/c/openstack/os-vif/+/765419 Committed: https://opendev.org/openstack/os-vif/commit/3e1d898b752c327165aeca1fec0919d858a87ec4 Submitter: "Zuul (22348)" Branch: stable/ussuri
commit 3e1d898b752c327165aeca1fec0919d858a87ec4 Author: Mamduh <mamduh...@nvidia.com> Date: Tue Aug 18 12:40:10 2020 +0300 Refactor code of linux_net to more cleaner and increase performace The patch adds new functions '_get_phys_port_name' for reading physical port name of the SR-IOV port and '_get_phys_switch_id' for reading physical port switch ID of the SR-IOV port, in addition to refactoring 'get_representor_port' to use the new functions and decrease calls for "_get_pf_func" and netdevs associated with the PF will now be processed in the loop, however it will not be matching 'phys_port_name' which ensures the correct behaviour. In addition to updating the unit test for linux_net and remove not needed mocks Conflicts: vif_plug_ovs/linux_net.py vif_plug_ovs/tests/unit/test_linux_net.py Related-Bug: #1892132 Change-Id: I3fdbea4f48cb79ebfd03a4da21e2232ccafb7a76 (cherry picked from commit 167bb030f1143f37ce189673d831bd572f64d4ad) ** Tags added: in-stable-ussuri -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1892132 Title: Failure to get the correct UpLink Representor To manage notifications about this bug go to: https://bugs.launchpad.net/os-vif/+bug/1892132/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs