Comment 22 for bug 1892132

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to os-vif (stable/ussuri)

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 <email address hidden>
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)