]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
SR-IOV: Fix macvtap assigned vf check when kernel < 3.13
authorMoshe Levi <moshele@mellanox.com>
Tue, 8 Dec 2015 11:11:33 +0000 (13:11 +0200)
committerIhar Hrachyshka <ihrachys@redhat.com>
Thu, 7 Jan 2016 08:38:39 +0000 (09:38 +0100)
commitd7604169988726d121cdc9727accfeb6e29f4aed
tree9276ce8c69d4307e633dfc5e48f8f51d869de676
parent08bd35fa6f89911086877252e5d158db31f4ce21
SR-IOV: Fix macvtap assigned vf check when kernel < 3.13

when creating macvtap passthrough to SR-IOV VF in Kernel >= 3.13 an
upper_macvtap symbolic link is created. For Kernel < 3.13 the only
way to know it is by parsing the ip link show output and look for
macvtap[0-9]+@<vf ifname>.

This patch used the ip link show command to detects
macvtap assigned vf so that detection of macvtap assigned vf
will work on all kernels

Closes-Bug: #1523083
Change-Id: Icbc8d6af5c00d1453095e04dd779210dc7244c7f
neutron/plugins/ml2/drivers/mech_sriov/agent/common/exceptions.py
neutron/plugins/ml2/drivers/mech_sriov/agent/eswitch_manager.py
neutron/plugins/ml2/drivers/mech_sriov/agent/pci_lib.py
neutron/tests/unit/plugins/ml2/drivers/mech_sriov/agent/test_eswitch_manager.py
neutron/tests/unit/plugins/ml2/drivers/mech_sriov/agent/test_pci_lib.py
releasenotes/notes/macvtap_assigned_vf_check-f4d07660ffd82a24.yaml [new file with mode: 0644]