]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Refactor mlnx mechanism driver to support infiniband only
authorMoshe Levi <moshele@mellanox.com>
Sun, 31 May 2015 10:27:56 +0000 (13:27 +0300)
committerMoshe Levi <moshele@mellanox.com>
Mon, 1 Jun 2015 07:24:09 +0000 (10:24 +0300)
commit9b29f62491ec0e1cb27601e6ad53cf152de5eb66
treea625ac4b86380a813f3cbed0b7b2a23063c70ae9
parent0c58adb99bb1692244e3e1cea0d92cddb57ed521
Refactor mlnx mechanism driver to support infiniband only

The old mlnx mechanism driver was used for SR-IOV with Ethernet
and infiniband support but the PCI allocation wasn't done by nova.
Juno introduced sriovnicswitch mechanism driver for SR-IOV with
Ethernet support. Mellanox recommends on using it.
The updated mlnx mechanism driver supports SR-IOV infiniband.

* support only port vnic_type 'direct'
* update vif_type name to ib_hostdev (the ib_hostdev is generic vif_type
  for SR-IOV infiniband see https://review.openstack.org/#/c/187052/)

Closes-Bug: #1460430
DocImpact

Change-Id: Ia822b492afdfeb1aecf373d5a8cdb72174512884
neutron/extensions/portbindings.py
neutron/plugins/ml2/drivers/mlnx/mech_mlnx.py
neutron/tests/unit/plugins/ml2/_test_mech_agent.py
neutron/tests/unit/plugins/ml2/drivers/mlnx/test_mech_mlnx.py