neutron/neutron/plugins/ml2/drivers
Moshe Levi f6d956c1f5 ovs mech: bind only if user request switchdev
In I77650be5f04775a72e2bdf694f93988825a84b72 we added
vnic_type direct to the ovs mechanism drivers supported
vnic_types. This cause problems when working with ovs and sriovnicswitch
mechanism drivers in that order.  In this case the ovs will bind
the direct port instead of the sriovnicswitch.

This change make ovs mech driver to bind the direct port only
if user requested --binding-profile '{"capabilities": ["switchdev"]}'
in the direct port if a user don't request this capability the SR-IOV
legacy NIC mode is used.

When enable-sriov-nic-features will be implemented in nova and
libvirt will expose the switchdev capability then nova will be
able to select a host which supports SR-IOV nic with switchdev
mode.

[1] - https://review.openstack.org/#/c/435954/11/specs/pike/approved/enable-sriov-nic-features.rst
[2] - https://www.redhat.com/archives/libvir-list/2017-August/msg00583.html

Closes-Bug: #1713590

Change-Id: I0b5f062bcbf02381bdf4f694fc039f9bb17a2db5
(cherry picked from commit b184558ab6)
2017-09-20 05:11:55 +00:00
..
agent Make code follow log translation guideline 2017-08-14 10:53:33 -07:00
l2pop Make code follow log translation guideline 2017-08-14 10:53:33 -07:00
linuxbridge Make code follow log translation guideline 2017-08-14 10:53:33 -07:00
macvtap Make code follow log translation guideline 2017-08-14 10:53:33 -07:00
mech_sriov ovs mech: bind only if user request switchdev 2017-09-20 05:11:55 +00:00
openvswitch ovs mech: bind only if user request switchdev 2017-09-20 05:11:55 +00:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
helpers.py Make code follow log translation guideline 2017-08-14 10:53:33 -07:00
mech_agent.py Make code follow log translation guideline 2017-08-14 10:53:33 -07:00
type_flat.py Make code follow log translation guideline 2017-08-14 10:53:33 -07:00
type_geneve.py Make code follow log translation guideline 2017-08-14 10:53:33 -07:00
type_gre.py Make code follow log translation guideline 2017-08-14 10:53:33 -07:00
type_local.py Make code follow log translation guideline 2017-08-14 10:53:33 -07:00
type_tunnel.py Make code follow log translation guideline 2017-08-14 10:53:33 -07:00
type_vlan.py Make code follow log translation guideline 2017-08-14 10:53:33 -07:00
type_vxlan.py Make code follow log translation guideline 2017-08-14 10:53:33 -07:00