Comment 7 for bug 1892132

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

Reviewed: https://review.opendev.org/756406
Committed: https://git.openstack.org/cgit/openstack/os-vif/commit/?id=167bb030f1143f37ce189673d831bd572f64d4ad
Submitter: Zuul
Branch: stable/victoria

commit 167bb030f1143f37ce189673d831bd572f64d4ad
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

    Related-Bug: #1892132
    Change-Id: I3fdbea4f48cb79ebfd03a4da21e2232ccafb7a76
    (cherry picked from commit 76f7565b99e637d74878955a0033f35e9eb0e13f)