<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.openstack.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Hasanq</id>
		<title>OpenStack - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.openstack.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Hasanq"/>
		<link rel="alternate" type="text/html" href="https://wiki.openstack.org/wiki/Special:Contributions/Hasanq"/>
		<updated>2026-07-12T02:56:32Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.28.2</generator>

	<entry>
		<id>https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-Rocky-Ubuntu-InfiniBand&amp;diff=168411</id>
		<title>Mellanox-Neutron-Rocky-Ubuntu-InfiniBand</title>
		<link rel="alternate" type="text/html" href="https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-Rocky-Ubuntu-InfiniBand&amp;diff=168411"/>
				<updated>2019-02-17T11:41:16Z</updated>
		
		<summary type="html">&lt;p&gt;Hasanq: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Overview=&lt;br /&gt;
&lt;br /&gt;
==Mellanox Neutron ML2 Driver==&lt;br /&gt;
&lt;br /&gt;
Mellanox ML2 Mechanism Driver implements the ML2 Plugin Mechanism Driver API. &lt;br /&gt;
&lt;br /&gt;
This driver supports Mellanaox embedded switch functionality as part of the InfiniBand HCA. Mellanox ML2 Mechanism Driver provides functional parity with Mellanox Neutron plugin. &lt;br /&gt;
&lt;br /&gt;
Mellanox ML2 Mechanism Driver supports DIRECT (pci passthrough) vnic type. For vnic type configuration API details, please refer to configuration reference guide.&lt;br /&gt;
Hardware vNICs mapped to the guest VMs allow higher performance and advanced features such as RDMA (remote direct memory access). &lt;br /&gt;
&lt;br /&gt;
The driver supports VLAN network type to facilitate virtual networks either on InfiniBand fabrics. &lt;br /&gt;
* Mellanox OpenStack Neutron Agent (L2 Agent) runs on each compute node. &lt;br /&gt;
* Agent should apply VIF connectivity based on mapping between a VIF (VM vNIC) and Embedded Switch port. &lt;br /&gt;
&lt;br /&gt;
===Prerequisites===&lt;br /&gt;
* A running OpenStack environment installed with the ML2 plugin on top of OpenVswitch or Linux Bridge.&lt;br /&gt;
* Mellanox [http://www.mellanox.com/page/products_dyn?product_family=119  ConnectX®-3/Mellanox ConnectX®-3 PRO] with [http://www.mellanox.com/page/products_dyn?product_family=26&amp;amp;mtag=linux_sw_drivers Mellanox OFED] 2.4 or greater&lt;br /&gt;
* Mellanox [http://www.mellanox.com/page/products_dyn?product_family=201&amp;amp; ConnectX®-4]/[http://www.mellanox.com/page/products_dyn?product_family=214&amp;amp;mtag=connectx_4_lx_en_ic ConnectX®-4Lx]/[http://www.mellanox.com/page/products_dyn?product_family=258&amp;amp;mtag=connectx_5_vpi_card ConnectX®-5] with [http://www.mellanox.com/page/products_dyn?product_family=26&amp;amp;mtag=linux_sw_drivers MLNX_OFED_LINUX] 3.1-1.5.7 or greater.&lt;br /&gt;
* [https://community.mellanox.com/docs/DOC-1317 SR-IOV ]enabled on all compute nodes. &lt;br /&gt;
* [http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2 iproute2] installed on all Compute nodes&lt;br /&gt;
* [http://www.mellanox.com/page/products_dyn?product_family=100 Mellanox UFM] greater than 5.9.5&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=InfiniBand Network=&lt;br /&gt;
The Mellanox Neutron Plugin use InfiniBand Partitions (PKeys) to separate Networks. &lt;br /&gt;
&lt;br /&gt;
==SM Node==&lt;br /&gt;
&lt;br /&gt;
=== OpenSM Provisioning with SDN Mechanism Driver ===&lt;br /&gt;
&lt;br /&gt;
[https://community.mellanox.com/docs/DOC-2155 SDN Mechanism Driver] allows OpenSM dynamically assign PKs in the IB network.&lt;br /&gt;
&lt;br /&gt;
More details about applying SDN Mechanism Driver with [http://www.mellanox.com/page/products_dyn?product_family=220&amp;amp;mtag=mellanox_neo NEO] can be found [https://community.mellanox.com/docs/DOC-2251 here]&lt;br /&gt;
&lt;br /&gt;
=== Manual OpenSM Configuration ===&lt;br /&gt;
&lt;br /&gt;
All the PKeys should be predefined in the partitions.conf file (/etc/opensm/partitions.conf)&lt;br /&gt;
(Automatic cofiguration is planned in future phase)&lt;br /&gt;
&lt;br /&gt;
====For ConnectX®-3/ConnectX®-3Pro use the following configuration====&lt;br /&gt;
&lt;br /&gt;
Add/Change the following in the partitions.conf file&lt;br /&gt;
   management=0x7fff,ipoib, sl=0, defmember=full : ALL, ALL_SWITCHES=full,SELF=full;&lt;br /&gt;
   vlan1=0x1, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan2=0x2, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan3=0x3, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan4=0x4, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan5=0x5, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan6=0x6, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan7=0x7, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan8=0x8, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan9=0x9, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan10=0xa, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
Change the following in /etc/opensm/opensm.conf:&lt;br /&gt;
   allow_both_pkeys TRUE&lt;br /&gt;
&lt;br /&gt;
====For ConnectX®-4 use the following configuration====&lt;br /&gt;
&lt;br /&gt;
Add/Change the following in the partitions.conf.user_ext&lt;br /&gt;
 vlan1=0x1, ipoib, sl=0, defmember=full: ALL_CAS;&lt;br /&gt;
 #Storage and management vlan should be define as follow&lt;br /&gt;
 vlan2=0x2, ipoib, sl=0, defmember=full: ALL_CAS;&lt;br /&gt;
 vlan3=0x3, ipoib, sl=0, defmember=full: ALL_CAS;&lt;br /&gt;
 #define OpenSM as a member for all OpenStack vlans. If not guest will have link down on “ibdev2netdev” and no connectivity.&lt;br /&gt;
 vlan4=0x4, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan5=0x5, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan6=0x6, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan7=0x7, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan8=0x8, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan9=0x9, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan10=0xa, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 &lt;br /&gt;
Change the following in /etc/opensm/opensm.conf:&lt;br /&gt;
 virt_enabled 2&lt;br /&gt;
 no_partition_enforcement TRUE&lt;br /&gt;
 part_enforce off&lt;br /&gt;
 allow_both_pkeys FALSE&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
5. Restart the OpenSM: &lt;br /&gt;
 # service opensmd restart&lt;br /&gt;
&lt;br /&gt;
==Controller Node==&lt;br /&gt;
&lt;br /&gt;
To configure the Controller node:&lt;br /&gt;
* Configure Debian OpenStack rocky repository&lt;br /&gt;
sudo add-apt-repository cloud-archive:rocky&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
* Install prerequisites &lt;br /&gt;
 # apt-get install -y python-ethtool python-zmq&lt;br /&gt;
&lt;br /&gt;
* Install Mellanox RPMs: &lt;br /&gt;
 # apt-get install -y openstack-neutron-mellanox python-networking-mlnx&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Run: &lt;br /&gt;
 # service enable neutron-mlnx-agent networking-mlnx-eswitchd.service&lt;br /&gt;
 # service daemon-reload&lt;br /&gt;
&lt;br /&gt;
* Make sure ML2 is the current Neutron plugin by checking the core_plugin parameter in '''/etc/neutron/neutron.conf''': &lt;br /&gt;
 core_plugin = neutron.plugins.ml2.plugin.Ml2Plugin&lt;br /&gt;
&lt;br /&gt;
* Make sure '''/etc/neutron/plugin.ini''' is pointing to '''/etc/neutron/plugins/ml2/ml2_conf.ini''' (symbolic link) &lt;br /&gt;
&lt;br /&gt;
* Modify /etc/neutron/plugins/ml2/ml2_conf.ini by adding the following: &lt;br /&gt;
 [ml2]&lt;br /&gt;
 type_drivers = vlan,flat&lt;br /&gt;
 tenant_network_types = vlan&lt;br /&gt;
&lt;br /&gt;
 # OVS Configuration&lt;br /&gt;
 mechanism_drivers = mlnx_infiniband, openvswitch&lt;br /&gt;
 # LinuxBridge Configuration&lt;br /&gt;
 mechanism_drivers = mlnx_infiniband, linuxbridge&lt;br /&gt;
&lt;br /&gt;
 [ml2_type_vlan]&lt;br /&gt;
 network_vlan_ranges = default:1:10&lt;br /&gt;
 &lt;br /&gt;
* Start (or restart) the Neutron server: &lt;br /&gt;
 # service neutron-server restart&lt;br /&gt;
&lt;br /&gt;
== Network Node==&lt;br /&gt;
To configure the Network node:&lt;br /&gt;
&lt;br /&gt;
Prerequisites:&lt;br /&gt;
 E_IPoIB port is configured and up&lt;br /&gt;
&lt;br /&gt;
* Make sure that eIPoIB module is up and configured in '''/etc/infiniband/openib.conf''': For more information, please refer to eIPoIB configuration in Mellanox OFED User Manual. &lt;br /&gt;
 E_IPOIB_LOAD=yes&lt;br /&gt;
&lt;br /&gt;
* Restart openibd: &lt;br /&gt;
 # service openibd restart&lt;br /&gt;
&lt;br /&gt;
* Modify the network bridge configuration according to the use of OpenVswitch or LinuxBridge&lt;br /&gt;
**  OpenVswitch '''/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini''' &lt;br /&gt;
 [ovs]&lt;br /&gt;
 bridge_mappings = default:br-&amp;lt;eIPoIB interface&amp;gt;&lt;br /&gt;
** LinuxBridge file '''/etc/neutron/plugins/linuxbridge/linuxbridge_conf.ini''':&lt;br /&gt;
 [linux_bridge] &lt;br /&gt;
 physical_interface_mappings = default:&amp;lt;eIPoIB interface&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE: In order to obtain the eIPoIB interface name, run the ethtool tool command and check that driver name is eth_ipoib: &lt;br /&gt;
 # ethtool -i &amp;lt;eIPoIB_interface&amp;gt; &lt;br /&gt;
 driver: eth_ipoib&lt;br /&gt;
 .....&lt;br /&gt;
&lt;br /&gt;
* Restart network bridge and neutron-dhcp-agent:&lt;br /&gt;
 # service neutron-dhcp-agent restart&lt;br /&gt;
** OpenVswitch&lt;br /&gt;
 # service neutron-linuxbridge-agent restart&lt;br /&gt;
** LinuxBridge&lt;br /&gt;
 # service neutron-openvswitch-agent restart&lt;br /&gt;
&lt;br /&gt;
NOTE: For DHCP support, the Network node should use the Mellanox Dnsmasq driver as the DHCP driver. &lt;br /&gt;
&lt;br /&gt;
===DHCP Server (Usually part of the Network node)===&lt;br /&gt;
&lt;br /&gt;
* Modify '''/etc/neutron/dhcp_agent.ini''' as follows and according to OVS or Linuxbridge: &lt;br /&gt;
 dhcp_driver = mlnx_dhcp.MlnxDnsmasq&lt;br /&gt;
 dhcp_broadcast_reply = True&lt;br /&gt;
 # or interface_driver = neutron.agent.linux.interface.BridgeInterfaceDriver&lt;br /&gt;
 interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver&lt;br /&gt;
&lt;br /&gt;
* Start DHCP server: &lt;br /&gt;
 # service neutron-dhcp-agent restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Compute Nodes==&lt;br /&gt;
&lt;br /&gt;
To configure the Compute Node: &lt;br /&gt;
&lt;br /&gt;
* Configure Mellanox OpenStack ocata repository&lt;br /&gt;
# sudo add-apt-repository http://www.mellanox.com/repository/solutions/openstack/ocata/ubuntu&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*  Install Mellanox RPMs: &lt;br /&gt;
 # apt-get install -y openstack-neutron-mellanox eswitchd mlnx-python-networking-mlnx python-ethtool python-zmq &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Edit the following file: '''/usr/lib/systemd/system/neutron-mlnx-agent.service'''&lt;br /&gt;
Change the /etc/neutron/plugins/mlnx/mlnx.ini to /etc/neutron/plugins/mlnx/mlnx_conf.ini&lt;br /&gt;
&lt;br /&gt;
* Run: &lt;br /&gt;
 # service neutron-mlnx-agent start&lt;br /&gt;
&lt;br /&gt;
* Run: &lt;br /&gt;
 # service daemon-reload start&lt;br /&gt;
&lt;br /&gt;
* Create the file '''/etc/modprobe.d/mlx4_ib.conf''' and add the following:&lt;br /&gt;
 # options mlx4_ib sm_guid_assign=0&lt;br /&gt;
&lt;br /&gt;
* Restart Nova: &lt;br /&gt;
 # service openstack-nova-compute restart &lt;br /&gt;
&lt;br /&gt;
* Restart the driver: &lt;br /&gt;
 # service opensmd restart&lt;br /&gt;
 # /etc/init.d/openibd restart&lt;br /&gt;
&lt;br /&gt;
* In the file '''/etc/neutron/plugins/mlnx/mlnx_conf.ini''', the parameters tenant_network_type , and network_vlan_ranges should be configured as the controllers: &lt;br /&gt;
 physical_interface_mappings = default:&amp;lt;ib_interface&amp;gt;(for example default:ib0)&lt;br /&gt;
&lt;br /&gt;
* Modify the file '''/etc/eswitchd/eswitchd.conf''' as follows:&lt;br /&gt;
 fabrics = default:&amp;lt;ib_interface&amp;gt; (for example default:ib0)&lt;br /&gt;
&lt;br /&gt;
* Start eSwitchd: &lt;br /&gt;
 # service eswitchd restart&lt;br /&gt;
&lt;br /&gt;
* Start the Neutron agent: &lt;br /&gt;
 # service neutron-mlnx-agent restart&lt;br /&gt;
&lt;br /&gt;
==Known issues and Troubleshooting==&lt;br /&gt;
For known issues and troubleshooting options refer to [https://community.mellanox.com/docs/DOC-1127 Mellanox OpenStack Troubleshooting]&lt;/div&gt;</summary>
		<author><name>Hasanq</name></author>	</entry>

	<entry>
		<id>https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-Queens-Ubuntu-InfiniBand&amp;diff=168410</id>
		<title>Mellanox-Neutron-Queens-Ubuntu-InfiniBand</title>
		<link rel="alternate" type="text/html" href="https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-Queens-Ubuntu-InfiniBand&amp;diff=168410"/>
				<updated>2019-02-17T11:40:17Z</updated>
		
		<summary type="html">&lt;p&gt;Hasanq: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Overview=&lt;br /&gt;
&lt;br /&gt;
==Mellanox Neutron ML2 Driver==&lt;br /&gt;
&lt;br /&gt;
Mellanox ML2 Mechanism Driver implements the ML2 Plugin Mechanism Driver API. &lt;br /&gt;
&lt;br /&gt;
This driver supports Mellanaox embedded switch functionality as part of the InfiniBand HCA. Mellanox ML2 Mechanism Driver provides functional parity with Mellanox Neutron plugin. &lt;br /&gt;
&lt;br /&gt;
Mellanox ML2 Mechanism Driver supports DIRECT (pci passthrough) vnic type. For vnic type configuration API details, please refer to configuration reference guide.&lt;br /&gt;
Hardware vNICs mapped to the guest VMs allow higher performance and advanced features such as RDMA (remote direct memory access). &lt;br /&gt;
&lt;br /&gt;
The driver supports VLAN network type to facilitate virtual networks either on InfiniBand fabrics. &lt;br /&gt;
* Mellanox OpenStack Neutron Agent (L2 Agent) runs on each compute node. &lt;br /&gt;
* Agent should apply VIF connectivity based on mapping between a VIF (VM vNIC) and Embedded Switch port. &lt;br /&gt;
&lt;br /&gt;
===Prerequisites===&lt;br /&gt;
* A running OpenStack environment installed with the ML2 plugin on top of OpenVswitch or Linux Bridge.&lt;br /&gt;
* Mellanox [http://www.mellanox.com/page/products_dyn?product_family=119  ConnectX®-3/Mellanox ConnectX®-3 PRO] with [http://www.mellanox.com/page/products_dyn?product_family=26&amp;amp;mtag=linux_sw_drivers Mellanox OFED] 2.4 or greater&lt;br /&gt;
* Mellanox [http://www.mellanox.com/page/products_dyn?product_family=201&amp;amp; ConnectX®-4]/[http://www.mellanox.com/page/products_dyn?product_family=214&amp;amp;mtag=connectx_4_lx_en_ic ConnectX®-4Lx]/[http://www.mellanox.com/page/products_dyn?product_family=258&amp;amp;mtag=connectx_5_vpi_card ConnectX®-5] with [http://www.mellanox.com/page/products_dyn?product_family=26&amp;amp;mtag=linux_sw_drivers MLNX_OFED_LINUX] 3.1-1.5.7 or greater.&lt;br /&gt;
* [https://community.mellanox.com/docs/DOC-1317 SR-IOV ]enabled on all compute nodes. &lt;br /&gt;
* [http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2 iproute2] installed on all Compute nodes&lt;br /&gt;
* [http://www.mellanox.com/page/products_dyn?product_family=100 Mellanox UFM] greater than 5.9.5&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=InfiniBand Network=&lt;br /&gt;
The Mellanox Neutron Plugin use InfiniBand Partitions (PKeys) to separate Networks. &lt;br /&gt;
&lt;br /&gt;
==SM Node==&lt;br /&gt;
&lt;br /&gt;
=== OpenSM Provisioning with SDN Mechanism Driver ===&lt;br /&gt;
&lt;br /&gt;
[https://community.mellanox.com/docs/DOC-2155 SDN Mechanism Driver] allows OpenSM dynamically assign PKs in the IB network.&lt;br /&gt;
&lt;br /&gt;
More details about applying SDN Mechanism Driver with [http://www.mellanox.com/page/products_dyn?product_family=220&amp;amp;mtag=mellanox_neo NEO] can be found [https://community.mellanox.com/docs/DOC-2251 here]&lt;br /&gt;
&lt;br /&gt;
=== Manual OpenSM Configuration ===&lt;br /&gt;
&lt;br /&gt;
All the PKeys should be predefined in the partitions.conf file (/etc/opensm/partitions.conf)&lt;br /&gt;
(Automatic cofiguration is planned in future phase)&lt;br /&gt;
&lt;br /&gt;
====For ConnectX®-3/ConnectX®-3Pro use the following configuration====&lt;br /&gt;
&lt;br /&gt;
Add/Change the following in the partitions.conf file&lt;br /&gt;
   management=0x7fff,ipoib, sl=0, defmember=full : ALL, ALL_SWITCHES=full,SELF=full;&lt;br /&gt;
   vlan1=0x1, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan2=0x2, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan3=0x3, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan4=0x4, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan5=0x5, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan6=0x6, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan7=0x7, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan8=0x8, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan9=0x9, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan10=0xa, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
Change the following in /etc/opensm/opensm.conf:&lt;br /&gt;
   allow_both_pkeys TRUE&lt;br /&gt;
&lt;br /&gt;
====For ConnectX®-4 use the following configuration====&lt;br /&gt;
&lt;br /&gt;
Add/Change the following in the partitions.conf.user_ext&lt;br /&gt;
 vlan1=0x1, ipoib, sl=0, defmember=full: ALL_CAS;&lt;br /&gt;
 #Storage and management vlan should be define as follow&lt;br /&gt;
 vlan2=0x2, ipoib, sl=0, defmember=full: ALL_CAS;&lt;br /&gt;
 vlan3=0x3, ipoib, sl=0, defmember=full: ALL_CAS;&lt;br /&gt;
 #define OpenSM as a member for all OpenStack vlans. If not guest will have link down on “ibdev2netdev” and no connectivity.&lt;br /&gt;
 vlan4=0x4, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan5=0x5, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan6=0x6, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan7=0x7, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan8=0x8, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan9=0x9, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan10=0xa, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 &lt;br /&gt;
Change the following in /etc/opensm/opensm.conf:&lt;br /&gt;
 virt_enabled 2&lt;br /&gt;
 no_partition_enforcement TRUE&lt;br /&gt;
 part_enforce off&lt;br /&gt;
 allow_both_pkeys FALSE&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
5. Restart the OpenSM: &lt;br /&gt;
 # service opensmd restart&lt;br /&gt;
&lt;br /&gt;
==Controller Node==&lt;br /&gt;
&lt;br /&gt;
To configure the Controller node:&lt;br /&gt;
* Configure Debian OpenStack queens repository&lt;br /&gt;
sudo add-apt-repository cloud-archive:queens&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
* Install prerequisites &lt;br /&gt;
 # apt-get install -y python-ethtool python-zmq&lt;br /&gt;
&lt;br /&gt;
* Install Mellanox RPMs: &lt;br /&gt;
 # apt-get install -y openstack-neutron-mellanox python-networking-mlnx&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Run: &lt;br /&gt;
 # service enable neutron-mlnx-agent networking-mlnx-eswitchd.service&lt;br /&gt;
 # service daemon-reload&lt;br /&gt;
&lt;br /&gt;
* Make sure ML2 is the current Neutron plugin by checking the core_plugin parameter in '''/etc/neutron/neutron.conf''': &lt;br /&gt;
 core_plugin = neutron.plugins.ml2.plugin.Ml2Plugin&lt;br /&gt;
&lt;br /&gt;
* Make sure '''/etc/neutron/plugin.ini''' is pointing to '''/etc/neutron/plugins/ml2/ml2_conf.ini''' (symbolic link) &lt;br /&gt;
&lt;br /&gt;
* Modify /etc/neutron/plugins/ml2/ml2_conf.ini by adding the following: &lt;br /&gt;
 [ml2]&lt;br /&gt;
 type_drivers = vlan,flat&lt;br /&gt;
 tenant_network_types = vlan&lt;br /&gt;
&lt;br /&gt;
 # OVS Configuration&lt;br /&gt;
 mechanism_drivers = mlnx_infiniband, openvswitch&lt;br /&gt;
 # LinuxBridge Configuration&lt;br /&gt;
 mechanism_drivers = mlnx_infiniband, linuxbridge&lt;br /&gt;
&lt;br /&gt;
 [ml2_type_vlan]&lt;br /&gt;
 network_vlan_ranges = default:1:10&lt;br /&gt;
 &lt;br /&gt;
* Start (or restart) the Neutron server: &lt;br /&gt;
 # service neutron-server restart&lt;br /&gt;
&lt;br /&gt;
== Network Node==&lt;br /&gt;
To configure the Network node:&lt;br /&gt;
&lt;br /&gt;
Prerequisites:&lt;br /&gt;
 E_IPoIB port is configured and up&lt;br /&gt;
&lt;br /&gt;
* Make sure that eIPoIB module is up and configured in '''/etc/infiniband/openib.conf''': For more information, please refer to eIPoIB configuration in Mellanox OFED User Manual. &lt;br /&gt;
 E_IPOIB_LOAD=yes&lt;br /&gt;
&lt;br /&gt;
* Restart openibd: &lt;br /&gt;
 # service openibd restart&lt;br /&gt;
&lt;br /&gt;
* Modify the network bridge configuration according to the use of OpenVswitch or LinuxBridge&lt;br /&gt;
**  OpenVswitch '''/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini''' &lt;br /&gt;
 [ovs]&lt;br /&gt;
 bridge_mappings = default:br-&amp;lt;eIPoIB interface&amp;gt;&lt;br /&gt;
** LinuxBridge file '''/etc/neutron/plugins/linuxbridge/linuxbridge_conf.ini''':&lt;br /&gt;
 [linux_bridge] &lt;br /&gt;
 physical_interface_mappings = default:&amp;lt;eIPoIB interface&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE: In order to obtain the eIPoIB interface name, run the ethtool tool command and check that driver name is eth_ipoib: &lt;br /&gt;
 # ethtool -i &amp;lt;eIPoIB_interface&amp;gt; &lt;br /&gt;
 driver: eth_ipoib&lt;br /&gt;
 .....&lt;br /&gt;
&lt;br /&gt;
* Restart network bridge and neutron-dhcp-agent:&lt;br /&gt;
 # service neutron-dhcp-agent restart&lt;br /&gt;
** OpenVswitch&lt;br /&gt;
 # service neutron-linuxbridge-agent restart&lt;br /&gt;
** LinuxBridge&lt;br /&gt;
 # service neutron-openvswitch-agent restart&lt;br /&gt;
&lt;br /&gt;
NOTE: For DHCP support, the Network node should use the Mellanox Dnsmasq driver as the DHCP driver. &lt;br /&gt;
&lt;br /&gt;
===DHCP Server (Usually part of the Network node)===&lt;br /&gt;
&lt;br /&gt;
* Modify '''/etc/neutron/dhcp_agent.ini''' as follows and according to OVS or Linuxbridge: &lt;br /&gt;
 dhcp_driver = mlnx_dhcp.MlnxDnsmasq&lt;br /&gt;
 dhcp_broadcast_reply = True&lt;br /&gt;
 # or interface_driver = neutron.agent.linux.interface.BridgeInterfaceDriver&lt;br /&gt;
 interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver&lt;br /&gt;
&lt;br /&gt;
* Start DHCP server: &lt;br /&gt;
 # service neutron-dhcp-agent restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Compute Nodes==&lt;br /&gt;
&lt;br /&gt;
To configure the Compute Node: &lt;br /&gt;
&lt;br /&gt;
* Configure Mellanox OpenStack ocata repository&lt;br /&gt;
# sudo add-apt-repository http://www.mellanox.com/repository/solutions/openstack/ocata/ubuntu&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*  Install Mellanox RPMs: &lt;br /&gt;
 # apt-get install -y openstack-neutron-mellanox eswitchd mlnx-python-networking-mlnx python-ethtool python-zmq &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Edit the following file: '''/usr/lib/systemd/system/neutron-mlnx-agent.service'''&lt;br /&gt;
Change the /etc/neutron/plugins/mlnx/mlnx.ini to /etc/neutron/plugins/mlnx/mlnx_conf.ini&lt;br /&gt;
&lt;br /&gt;
* Run: &lt;br /&gt;
 # service neutron-mlnx-agent start&lt;br /&gt;
&lt;br /&gt;
* Run: &lt;br /&gt;
 # service daemon-reload start&lt;br /&gt;
&lt;br /&gt;
* Create the file '''/etc/modprobe.d/mlx4_ib.conf''' and add the following:&lt;br /&gt;
 # options mlx4_ib sm_guid_assign=0&lt;br /&gt;
&lt;br /&gt;
* Restart Nova: &lt;br /&gt;
 # service openstack-nova-compute restart &lt;br /&gt;
&lt;br /&gt;
* Restart the driver: &lt;br /&gt;
 # service opensmd restart&lt;br /&gt;
 # /etc/init.d/openibd restart&lt;br /&gt;
&lt;br /&gt;
* In the file '''/etc/neutron/plugins/mlnx/mlnx_conf.ini''', the parameters tenant_network_type , and network_vlan_ranges should be configured as the controllers: &lt;br /&gt;
 physical_interface_mappings = default:&amp;lt;ib_interface&amp;gt;(for example default:ib0)&lt;br /&gt;
&lt;br /&gt;
* Modify the file '''/etc/eswitchd/eswitchd.conf''' as follows:&lt;br /&gt;
 fabrics = default:&amp;lt;ib_interface&amp;gt; (for example default:ib0)&lt;br /&gt;
&lt;br /&gt;
* Start eSwitchd: &lt;br /&gt;
 # service eswitchd restart&lt;br /&gt;
&lt;br /&gt;
* Start the Neutron agent: &lt;br /&gt;
 # service neutron-mlnx-agent restart&lt;br /&gt;
&lt;br /&gt;
==Known issues and Troubleshooting==&lt;br /&gt;
For known issues and troubleshooting options refer to [https://community.mellanox.com/docs/DOC-1127 Mellanox OpenStack Troubleshooting]&lt;/div&gt;</summary>
		<author><name>Hasanq</name></author>	</entry>

	<entry>
		<id>https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron&amp;diff=167900</id>
		<title>Mellanox-Neutron</title>
		<link rel="alternate" type="text/html" href="https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron&amp;diff=167900"/>
				<updated>2019-01-27T13:25:57Z</updated>
		
		<summary type="html">&lt;p&gt;Hasanq: /* Mellanox Neutron Plugin */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
= Mellanox Neutron Plugin  =&lt;br /&gt;
Mellanox supports the OpenStack Neutron releases with open source networking components. It delivers higher compute and storage performance and additional functionality, such as NIC based switching to provide better security and isolation for virtual cloud environments.&lt;br /&gt;
&lt;br /&gt;
* [[Mellanox-Neutron-ML2-Rocky|Mellanox-Rocky]] &lt;br /&gt;
* [[Mellanox-Neutron-ML2-Queens|Mellanox-Queens]] &lt;br /&gt;
* [[Mellanox-Neutron-ML2-Pike|Mellanox-Pike]] &lt;br /&gt;
* [[Mellanox-Neutron-ML2-Ocata|Mellanox-Ocata]] &lt;br /&gt;
* [[Mellanox-Neutron-ML2-Newton|Mellanox-Newton]] &lt;br /&gt;
* [[Mellanox-Neutron-ML2-Mitaka|Mellanox-Mitaka]]&lt;br /&gt;
* [[Mellanox-Neutron-ML2-Liberty|Mellanox-Liberty]]&lt;br /&gt;
* [[Mellanox-Neutron-ML2-Kilo|Mellanox-Kilo]]&lt;br /&gt;
* [[Mellanox-Neutron-ML2-Juno|Mellanox-Juno]]&lt;br /&gt;
* [[Mellanox-Neutron-ML2-Icehouse|Mellanox-Icehouse]]&lt;br /&gt;
* [[Mellanox-Neutron-Havana-Ubuntu|Mellanox-Havana-Ubuntu]] / [[Mellanox-Neutron-Havana-Redhat|Mellanox-Havana-RedHat]] &lt;br /&gt;
* [[Mellanox-Neutron-Grizzly|Mellanox-Grizzly]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* [[Mellanox-packages-versioning|Mellanox packages versions]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= References =&lt;br /&gt;
1. [http://www.mellanox.com/openstack/ OpenStack solution page at Mellanox site]&lt;br /&gt;
&lt;br /&gt;
2. [https://github.com/openstack/networking-mlnx Mellanox ML2 driver and associated tools source repository]&lt;br /&gt;
&lt;br /&gt;
3. [https://github.com/mellanox-openstack Old/previous Mellanox source repository]&lt;br /&gt;
&lt;br /&gt;
4. [http://www.mellanox.com/page/products_dyn?product_family=26 Mellanox OFED web page]&lt;br /&gt;
&lt;br /&gt;
5. [http://community.mellanox.com/community/develop/cloud-developers Mellanox Cloud Developers Community]&lt;br /&gt;
&lt;br /&gt;
For more details, please refer your question to  [mailto:openstack@mellanox.com openstack@mellanox.com]&lt;br /&gt;
&lt;br /&gt;
[[Category: Neutron]]&lt;/div&gt;</summary>
		<author><name>Hasanq</name></author>	</entry>

	<entry>
		<id>https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-ML2-Rocky&amp;diff=166894</id>
		<title>Mellanox-Neutron-ML2-Rocky</title>
		<link rel="alternate" type="text/html" href="https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-ML2-Rocky&amp;diff=166894"/>
				<updated>2018-11-25T13:39:58Z</updated>
		
		<summary type="html">&lt;p&gt;Hasanq: Created page with &amp;quot;Mellanox ML2 Mechanism Driver implements the ML2 Plugin Mechanism Driver API.   This driver supports Mellanox embedded switch functionality as part of the VPI (Ethernet/Infini...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Mellanox ML2 Mechanism Driver implements the ML2 Plugin Mechanism Driver API. &lt;br /&gt;
&lt;br /&gt;
This driver supports Mellanox embedded switch functionality as part of the VPI (Ethernet/InfiniBand) HCA.&lt;br /&gt;
Mellanox ML2 Mechanism Driver provides functional parity with Mellanox Neutron plugin.&lt;br /&gt;
&lt;br /&gt;
Mellanox ML2 Mechanism Driver supports DIRECT (pci passthrough) vnic type. For vnic type configuration API details, please refer to configuration reference guide.&lt;br /&gt;
Hardware vNICs mapped to the guest VMs allow higher performance and advanced features such as RDMA (remote direct memory access). &lt;br /&gt;
&lt;br /&gt;
The driver supports VLAN network type to facilitate virtual networks either on Ethernet or InfiniBand fabrics. &lt;br /&gt;
* Mellanox OpenStack Neutron Agent (L2 Agent) runs on each compute node. &lt;br /&gt;
* Agent should apply VIF connectivity based on mapping between a VIF (VM vNIC) and Embedded Switch port.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Prerequisites'''&lt;br /&gt;
* Mellanox [http://www.mellanox.com/page/products_dyn?product_family=119  ConnectX®-3/Mellanox ConnectX®-3 PRO] with [http://www.mellanox.com/page/products_dyn?product_family=26&amp;amp;mtag=linux_sw_drivers Mellanox OFED] 2.4 or greater&lt;br /&gt;
* Mellanox [http://www.mellanox.com/page/products_dyn?product_family=201&amp;amp; ConnectX®-4]/[http://www.mellanox.com/page/products_dyn?product_family=214&amp;amp;mtag=connectx_4_lx_en_ic ConnectX®-4Lx]/[http://www.mellanox.com/page/products_dyn?product_family=258&amp;amp;mtag=connectx_5_vpi_card ConnectX®-5] with [http://www.mellanox.com/page/products_dyn?product_family=26&amp;amp;mtag=linux_sw_drivers MLNX_OFED_LINUX] 3.1-1.5.7 or greater.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For '''Rocky''' release Information refer to the relevant OS as follows:&lt;br /&gt;
&lt;br /&gt;
Infiniband&lt;br /&gt;
* [[Mellanox-Neutron-Rocky-Redhat-InfiniBand | Redhat7]]&lt;br /&gt;
* [[Mellanox-Neutron-Rocky-Ubuntu-InfiniBand | Ubuntu16.04]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Ethernet(SR-IOV)&lt;br /&gt;
* [[Mellanox-Neutron-Rocky-Ethernet |Redhat7|Ubuntu]]&lt;/div&gt;</summary>
		<author><name>Hasanq</name></author>	</entry>

	<entry>
		<id>https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-Rocky-Ubuntu-InfiniBand&amp;diff=166893</id>
		<title>Mellanox-Neutron-Rocky-Ubuntu-InfiniBand</title>
		<link rel="alternate" type="text/html" href="https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-Rocky-Ubuntu-InfiniBand&amp;diff=166893"/>
				<updated>2018-11-25T13:34:32Z</updated>
		
		<summary type="html">&lt;p&gt;Hasanq: Created page with &amp;quot;=Overview=  ==Mellanox Neutron ML2 Driver==   Mellanox ML2 Mechanism Driver implements the ML2 Plugin Mechanism Driver API.   This driver supports Mellanox embedded switch fun...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Overview=&lt;br /&gt;
&lt;br /&gt;
==Mellanox Neutron ML2 Driver==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Mellanox ML2 Mechanism Driver implements the ML2 Plugin Mechanism Driver API. &lt;br /&gt;
&lt;br /&gt;
This driver supports Mellanox embedded switch functionality as part of the InfiniBand HCA. Mellanox ML2 Mechanism Driver provides functional parity with Mellanox Neutron plugin. &lt;br /&gt;
&lt;br /&gt;
Mellanox ML2 Mechanism Driver supports DIRECT (pci passthrough) vnic type. For vnic type configuration API details, please refer to configuration reference guide.&lt;br /&gt;
Hardware vNICs mapped to the guest VMs allow higher performance and advanced features such as RDMA (remote direct memory access). &lt;br /&gt;
&lt;br /&gt;
The driver supports VLAN network type to facilitate virtual networks either on InfiniBand fabrics. &lt;br /&gt;
* Mellanox OpenStack Neutron Agent (L2 Agent) runs on each compute node. &lt;br /&gt;
* Agent should apply VIF connectivity based on mapping between a VIF (VM vNIC) and Embedded Switch port. &lt;br /&gt;
&lt;br /&gt;
===Prerequisites===&lt;br /&gt;
* Red Hat Installation &amp;gt; 7.1&lt;br /&gt;
* Mellanox [http://www.mellanox.com/page/products_dyn?product_family=119  ConnectX®-3/Mellanox ConnectX®-3 PRO] with [http://www.mellanox.com/page/products_dyn?product_family=26&amp;amp;mtag=linux_sw_drivers Mellanox OFED]  the latest 3.X &lt;br /&gt;
* Mellanox [http://www.mellanox.com/page/products_dyn?product_family=201&amp;amp; ConnectX®-4]/[http://www.mellanox.com/page/products_dyn?product_family=214&amp;amp;mtag=connectx_4_lx_en_ic ConnectX®-4Lx]/[http://www.mellanox.com/page/products_dyn?product_family=258&amp;amp;mtag=connectx_5_vpi_card ConnectX®-5] with [http://www.mellanox.com/page/products_dyn?product_family=26&amp;amp;mtag=linux_sw_drivers MLNX_OFED_LINUX] the latest 3.X .&lt;br /&gt;
* A running OpenStack environment installed with the ML2 plugin on top of OpenVswitch or Linux Bridge (RDO Manager or Packstack).&lt;br /&gt;
* [https://community.mellanox.com/docs/DOC-1317 SR-IOV] enabled on all compute nodes.&lt;br /&gt;
* The software package [http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2 iproute2] installed on all Compute nodes&lt;br /&gt;
* [http://www.mellanox.com/page/products_dyn?product_family=100 Mellanox UFM] greater than 5.9.5&lt;br /&gt;
* Add the following repositories on each node&lt;br /&gt;
 yum -y install yum-plugin-priorities&lt;br /&gt;
 cd /etc/yum.repos.d/&lt;br /&gt;
 sudo wget https://trunk.rdoproject.org/centos7-rocky/current/delorean.repo&lt;br /&gt;
 yum update -y&lt;br /&gt;
&lt;br /&gt;
=InfiniBand Network=&lt;br /&gt;
The Mellanox Neutron Plugin uses InfiniBand Partitions (PKeys) to separate Networks. &lt;br /&gt;
&lt;br /&gt;
==SM Node==&lt;br /&gt;
&lt;br /&gt;
=== OpenSM Provisioning with SDN Mechanism Driver ===&lt;br /&gt;
&lt;br /&gt;
[https://community.mellanox.com/docs/DOC-2155 SDN Mechanism Driver] allows OpenSM dynamically assign PKs in the IB network.&lt;br /&gt;
&lt;br /&gt;
More details about applying SDN Mechanism Driver with [http://www.mellanox.com/page/products_dyn?product_family=220&amp;amp;mtag=mellanox_neo NEO] can be found [https://community.mellanox.com/docs/DOC-2251 here]&lt;br /&gt;
&lt;br /&gt;
=== Manual OpenSM Configuration ===&lt;br /&gt;
&lt;br /&gt;
All the PKeys should be predefined in the partitions.conf file (/etc/opensm/partitions.conf)&lt;br /&gt;
(Automatic cofiguration is planned in future phase)&lt;br /&gt;
&lt;br /&gt;
====For ConnectX®-3/ConnectX®-3Pro use the following configuration====&lt;br /&gt;
&lt;br /&gt;
Add/Change the following in the partitions.conf file&lt;br /&gt;
   management=0x7fff,ipoib, sl=0, defmember=full : ALL, ALL_SWITCHES=full,SELF=full;&lt;br /&gt;
   vlan1=0x1, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan2=0x2, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan3=0x3, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan4=0x4, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan5=0x5, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan6=0x6, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan7=0x7, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan8=0x8, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan9=0x9, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan10=0xa, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
Change the following in /etc/opensm/opensm.conf:&lt;br /&gt;
   allow_both_pkeys TRUE&lt;br /&gt;
&lt;br /&gt;
====For ConnectX®-4/ConnectX®-5 use the following configuration====&lt;br /&gt;
&lt;br /&gt;
Add/Change the following in the partitions.conf.user_ext&lt;br /&gt;
 vlan1=0x1, ipoib, sl=0, defmember=full: ALL_CAS;&lt;br /&gt;
 #Storage and management vlan should be define as follow&lt;br /&gt;
 vlan2=0x2, ipoib, sl=0, defmember=full: ALL_CAS;&lt;br /&gt;
 vlan3=0x3, ipoib, sl=0, defmember=full: ALL_CAS;&lt;br /&gt;
 #define OpenSM as a member for all OpenStack vlans. If not guest will have link down on “ibdev2netdev” and no connectivity.&lt;br /&gt;
 vlan4=0x4, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan5=0x5, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan6=0x6, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan7=0x7, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan8=0x8, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan9=0x9, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan10=0xa, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 &lt;br /&gt;
Change the following in /etc/opensm/opensm.conf:&lt;br /&gt;
 virt_enabled 2&lt;br /&gt;
 part_enforce off&lt;br /&gt;
 allow_both_pkeys FALSE&lt;br /&gt;
&lt;br /&gt;
4. Restart the OpenSM: &lt;br /&gt;
 # systemctl restart opensmd.service&lt;br /&gt;
&lt;br /&gt;
==Controller Node==&lt;br /&gt;
&lt;br /&gt;
To configure the Controller node:&lt;br /&gt;
&lt;br /&gt;
1. Install Mellanox RPMs: &lt;br /&gt;
 # yum install -y --nogpgcheck python-networking-mlnx &lt;br /&gt;
&lt;br /&gt;
===Neutron Server===&lt;br /&gt;
1. Make sure ML2 is the current Neutron plugin by checking the core_plugin parameter in '''/etc/neutron/neutron.conf''': &lt;br /&gt;
 core_plugin = neutron.plugins.ml2.plugin.Ml2Plugin&lt;br /&gt;
&lt;br /&gt;
2. Make sure '''/etc/neutron/plugin.ini''' is pointing to '''/etc/neutron/plugins/ml2/ml2_conf.ini''' (symbolic link) &lt;br /&gt;
&lt;br /&gt;
3. Modify '''/etc/neutron/plugins/ml2/ml2_conf.ini''' by adding the following: &lt;br /&gt;
 [ml2]&lt;br /&gt;
 type_drivers = vlan,flat&lt;br /&gt;
 tenant_network_types = vlan&lt;br /&gt;
 mechanism_drivers = mlnx_infiniband, openvswitch&lt;br /&gt;
 # or mechanism_drivers = mlnx_infiniband, linuxbridge&lt;br /&gt;
 [ml2_type_vlan]&lt;br /&gt;
 network_vlan_ranges = default:1:10&lt;br /&gt;
&lt;br /&gt;
4. Start (or restart) the Neutron server: &lt;br /&gt;
 # systemctl restart neutron-server.service&lt;br /&gt;
&lt;br /&gt;
===Nova Scheduler===&lt;br /&gt;
Enabling PciPassthroughFilter modify /etc/nova/nova.conf&lt;br /&gt;
  scheduler_available_filters = nova.scheduler.filters.all_filters&lt;br /&gt;
  scheduler_default_filters = RetryFilter, AvailabilityZoneFilter, RamFilter, ComputeFilter, ComputeCapabilitiesFilter, ImagePropertiesFilter, PciPassthroughFilter&lt;br /&gt;
&lt;br /&gt;
== Network Node==&lt;br /&gt;
To configure the Network node:&lt;br /&gt;
&lt;br /&gt;
Prerequisites:&lt;br /&gt;
 E_IPoIB port is configured and up&lt;br /&gt;
&lt;br /&gt;
1. Make sure that eIPoIB module is up and configured in '''/etc/infiniband/openib.conf''': For more information, please refer to eIPoIB configuration in Mellanox OFED User Manual. &lt;br /&gt;
 E_IPOIB_LOAD=yes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Restart openibd: &lt;br /&gt;
 # service openibd restart&lt;br /&gt;
&lt;br /&gt;
3. Modify the network bridge configuration according to the use of OpenVswitch or LinuxBridge&lt;br /&gt;
* 3.1 OpenVswitch '''/etc/neutron/plugins/ml2/openvswitch_agent.ini''' &lt;br /&gt;
 [ovs]&lt;br /&gt;
 bridge_mappings = default:br-&amp;lt;eIPoIB interface&amp;gt;&lt;br /&gt;
* 3.2 LinuxBridge file '''/etc/neutron/plugins/ml2/linuxbridge_agent.ini''':&lt;br /&gt;
 [linux_bridge] &lt;br /&gt;
 physical_interface_mappings = default:&amp;lt;eIPoIB interface&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NOTE: In order to obtain the eIPoIB interface name, run the ethtool tool command (see below) and check that driver name is eth_ipoib: &lt;br /&gt;
 # ethtool -i &amp;lt;eIPoIB_interface&amp;gt; &lt;br /&gt;
 driver: eth_ipoib&lt;br /&gt;
 .....&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4. Restart network bridge: &lt;br /&gt;
* 4.1 OpenVswitch&lt;br /&gt;
 systemctl restart neutron-openvswitch-agent.service&lt;br /&gt;
* 4.2 LinuxBridge (if using linux bridge)&lt;br /&gt;
 # service neutron-linuxbridge-agent restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NOTE: For DHCP support, the Network node should use the Mellanox Dnsmasq driver as the DHCP driver. &lt;br /&gt;
&lt;br /&gt;
===DHCP Server (Usually part of the Network node)===&lt;br /&gt;
&lt;br /&gt;
1. Modify '''/etc/neutron/dhcp_agent.ini''' as follows and according to OVS or Linuxbridge: &lt;br /&gt;
 dhcp_driver = networking_mlnx.dhcp.mlnx_dhcp.MlnxDnsmasq&lt;br /&gt;
 dhcp_broadcast_reply = True&lt;br /&gt;
&lt;br /&gt;
 1.1 For OVS&lt;br /&gt;
     interface_driver =  neutron.agent.linux.interface.OVSInterfaceDriver&lt;br /&gt;
 1.2 For Linux Bridge&lt;br /&gt;
      interface_driver =  neutron.agent.linux.interface.BridgeInterfaceDriver&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Restart DHCP server: &lt;br /&gt;
 # systemctl restart neutron-dhcp-agent.service&lt;br /&gt;
&lt;br /&gt;
==Compute Nodes==&lt;br /&gt;
&lt;br /&gt;
To configure the Compute Node: &lt;br /&gt;
&lt;br /&gt;
1. Install Mellanox RPMs: &lt;br /&gt;
 # yum install --nogpgcheck -y python-networking-mlnx&lt;br /&gt;
&lt;br /&gt;
2. Create the file '''/etc/modprobe.d/mlx4_ib.conf''' and add the following:  &lt;br /&gt;
 options mlx4_ib sm_guid_assign=0&lt;br /&gt;
&lt;br /&gt;
3. Restart the driver: &lt;br /&gt;
 # /etc/init.d/openibd restart&lt;br /&gt;
&lt;br /&gt;
===Nova Compute===&lt;br /&gt;
Nova-compute needs to know which PCI devices are allowed to be passed through to the VMs. &lt;br /&gt;
Also for SRIOV PCI devices it needs to know to which physical network the VF belongs.&lt;br /&gt;
This is done through the pci_passthrough_whitelist parameter under the default section in '''/etc/nova/nova.conf'''.&lt;br /&gt;
For example if we want to whitelist and tag the VFs by their PCI address we would use the following setting:&lt;br /&gt;
[pci]&lt;br /&gt;
passthrough_whitelist = {&amp;quot;address&amp;quot;:&amp;quot;*:0a:00.*&amp;quot;,&amp;quot;physical_network&amp;quot;:&amp;quot;default&amp;quot;}&lt;br /&gt;
This associates any VF with address that includes ':0a:00.' in its address to the physical network default.&lt;br /&gt;
&lt;br /&gt;
1. add  pci passthrough_whitelist to '''/etc/nova/nova.conf'''&lt;br /&gt;
&lt;br /&gt;
2. Restart Nova:&lt;br /&gt;
 # systemctl restart openstack-nova-compute&lt;br /&gt;
&lt;br /&gt;
===Neutron MLNX Agent===&lt;br /&gt;
1. Run: &lt;br /&gt;
 # systemctl enable neutron-mlnx-agent.service&lt;br /&gt;
 # systemctl start neutron-mlnx-agent.service&lt;br /&gt;
&lt;br /&gt;
2. Run: &lt;br /&gt;
 # systemctl daemon-reload&lt;br /&gt;
&lt;br /&gt;
3. In the file '''/etc/neutron/plugins/mlnx/mlnx_conf.ini''', the parameters tenant_network_type , and network_vlan_ranges should be configured as the controllers: &lt;br /&gt;
 physical_interface_mappings = default:&amp;lt;ib_interface&amp;gt;(for example default:ib0)&lt;br /&gt;
&lt;br /&gt;
4. Modify the file '''/etc/neutron/plugins/ml2/eswitchd.conf''' as follows:&lt;br /&gt;
 fabrics = default:&amp;lt;ib_interface&amp;gt; (for example default:ib0)&lt;br /&gt;
&lt;br /&gt;
5. Start eSwitchd: &lt;br /&gt;
 # systemctl enable eswitchd.service&lt;br /&gt;
 # systemctl start  eswitchd.service&lt;br /&gt;
&lt;br /&gt;
6. Start the Neutron agent: &lt;br /&gt;
 # systemctl restart neutron-mlnx-agent&lt;br /&gt;
&lt;br /&gt;
==Known issues and Troubleshooting==&lt;br /&gt;
For known issues and troubleshooting options refer to [https://community.mellanox.com/docs/DOC-1127 Mellanox OpenStack Troubleshooting]&lt;br /&gt;
&lt;br /&gt;
Issue: Missing zmq package on all nodes (Controller/Compute)&lt;br /&gt;
Solution:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 # wget https://bootstrap.pypa.io/get-pip.py&lt;br /&gt;
 # sudo python get-pip.py&lt;br /&gt;
 # sudo pip install pyzmq&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hasanq</name></author>	</entry>

	<entry>
		<id>https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-Rocky-Redhat-InfiniBand&amp;diff=166892</id>
		<title>Mellanox-Neutron-Rocky-Redhat-InfiniBand</title>
		<link rel="alternate" type="text/html" href="https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-Rocky-Redhat-InfiniBand&amp;diff=166892"/>
				<updated>2018-11-25T13:33:31Z</updated>
		
		<summary type="html">&lt;p&gt;Hasanq: Created page with &amp;quot;=Overview=  ==Mellanox Neutron ML2 Driver==   Mellanox ML2 Mechanism Driver implements the ML2 Plugin Mechanism Driver API.   This driver supports Mellanox embedded switch fun...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Overview=&lt;br /&gt;
&lt;br /&gt;
==Mellanox Neutron ML2 Driver==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Mellanox ML2 Mechanism Driver implements the ML2 Plugin Mechanism Driver API. &lt;br /&gt;
&lt;br /&gt;
This driver supports Mellanox embedded switch functionality as part of the InfiniBand HCA. Mellanox ML2 Mechanism Driver provides functional parity with Mellanox Neutron plugin. &lt;br /&gt;
&lt;br /&gt;
Mellanox ML2 Mechanism Driver supports DIRECT (pci passthrough) vnic type. For vnic type configuration API details, please refer to configuration reference guide.&lt;br /&gt;
Hardware vNICs mapped to the guest VMs allow higher performance and advanced features such as RDMA (remote direct memory access). &lt;br /&gt;
&lt;br /&gt;
The driver supports VLAN network type to facilitate virtual networks either on InfiniBand fabrics. &lt;br /&gt;
* Mellanox OpenStack Neutron Agent (L2 Agent) runs on each compute node. &lt;br /&gt;
* Agent should apply VIF connectivity based on mapping between a VIF (VM vNIC) and Embedded Switch port. &lt;br /&gt;
&lt;br /&gt;
===Prerequisites===&lt;br /&gt;
* Red Hat Installation &amp;gt; 7.1&lt;br /&gt;
* Mellanox [http://www.mellanox.com/page/products_dyn?product_family=119  ConnectX®-3/Mellanox ConnectX®-3 PRO] with [http://www.mellanox.com/page/products_dyn?product_family=26&amp;amp;mtag=linux_sw_drivers Mellanox OFED]  the latest 3.X &lt;br /&gt;
* Mellanox [http://www.mellanox.com/page/products_dyn?product_family=201&amp;amp; ConnectX®-4]/[http://www.mellanox.com/page/products_dyn?product_family=214&amp;amp;mtag=connectx_4_lx_en_ic ConnectX®-4Lx]/[http://www.mellanox.com/page/products_dyn?product_family=258&amp;amp;mtag=connectx_5_vpi_card ConnectX®-5] with [http://www.mellanox.com/page/products_dyn?product_family=26&amp;amp;mtag=linux_sw_drivers MLNX_OFED_LINUX] the latest 3.X .&lt;br /&gt;
* A running OpenStack environment installed with the ML2 plugin on top of OpenVswitch or Linux Bridge (RDO Manager or Packstack).&lt;br /&gt;
* [https://community.mellanox.com/docs/DOC-1317 SR-IOV] enabled on all compute nodes.&lt;br /&gt;
* The software package [http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2 iproute2] installed on all Compute nodes&lt;br /&gt;
* [http://www.mellanox.com/page/products_dyn?product_family=100 Mellanox UFM] greater than 5.9.5&lt;br /&gt;
* Add the following repositories on each node&lt;br /&gt;
 yum -y install yum-plugin-priorities&lt;br /&gt;
 cd /etc/yum.repos.d/&lt;br /&gt;
 sudo wget https://trunk.rdoproject.org/centos7-rocky/current/delorean.repo&lt;br /&gt;
 yum update -y&lt;br /&gt;
&lt;br /&gt;
=InfiniBand Network=&lt;br /&gt;
The Mellanox Neutron Plugin uses InfiniBand Partitions (PKeys) to separate Networks. &lt;br /&gt;
&lt;br /&gt;
==SM Node==&lt;br /&gt;
&lt;br /&gt;
=== OpenSM Provisioning with SDN Mechanism Driver ===&lt;br /&gt;
&lt;br /&gt;
[https://community.mellanox.com/docs/DOC-2155 SDN Mechanism Driver] allows OpenSM dynamically assign PKs in the IB network.&lt;br /&gt;
&lt;br /&gt;
More details about applying SDN Mechanism Driver with [http://www.mellanox.com/page/products_dyn?product_family=220&amp;amp;mtag=mellanox_neo NEO] can be found [https://community.mellanox.com/docs/DOC-2251 here]&lt;br /&gt;
&lt;br /&gt;
=== Manual OpenSM Configuration ===&lt;br /&gt;
&lt;br /&gt;
All the PKeys should be predefined in the partitions.conf file (/etc/opensm/partitions.conf)&lt;br /&gt;
(Automatic cofiguration is planned in future phase)&lt;br /&gt;
&lt;br /&gt;
====For ConnectX®-3/ConnectX®-3Pro use the following configuration====&lt;br /&gt;
&lt;br /&gt;
Add/Change the following in the partitions.conf file&lt;br /&gt;
   management=0x7fff,ipoib, sl=0, defmember=full : ALL, ALL_SWITCHES=full,SELF=full;&lt;br /&gt;
   vlan1=0x1, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan2=0x2, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan3=0x3, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan4=0x4, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan5=0x5, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan6=0x6, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan7=0x7, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan8=0x8, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan9=0x9, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan10=0xa, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
Change the following in /etc/opensm/opensm.conf:&lt;br /&gt;
   allow_both_pkeys TRUE&lt;br /&gt;
&lt;br /&gt;
====For ConnectX®-4/ConnectX®-5 use the following configuration====&lt;br /&gt;
&lt;br /&gt;
Add/Change the following in the partitions.conf.user_ext&lt;br /&gt;
 vlan1=0x1, ipoib, sl=0, defmember=full: ALL_CAS;&lt;br /&gt;
 #Storage and management vlan should be define as follow&lt;br /&gt;
 vlan2=0x2, ipoib, sl=0, defmember=full: ALL_CAS;&lt;br /&gt;
 vlan3=0x3, ipoib, sl=0, defmember=full: ALL_CAS;&lt;br /&gt;
 #define OpenSM as a member for all OpenStack vlans. If not guest will have link down on “ibdev2netdev” and no connectivity.&lt;br /&gt;
 vlan4=0x4, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan5=0x5, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan6=0x6, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan7=0x7, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan8=0x8, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan9=0x9, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan10=0xa, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 &lt;br /&gt;
Change the following in /etc/opensm/opensm.conf:&lt;br /&gt;
 virt_enabled 2&lt;br /&gt;
 part_enforce off&lt;br /&gt;
 allow_both_pkeys FALSE&lt;br /&gt;
&lt;br /&gt;
4. Restart the OpenSM: &lt;br /&gt;
 # systemctl restart opensmd.service&lt;br /&gt;
&lt;br /&gt;
==Controller Node==&lt;br /&gt;
&lt;br /&gt;
To configure the Controller node:&lt;br /&gt;
&lt;br /&gt;
1. Install Mellanox RPMs: &lt;br /&gt;
 # yum install -y --nogpgcheck python-networking-mlnx &lt;br /&gt;
&lt;br /&gt;
===Neutron Server===&lt;br /&gt;
1. Make sure ML2 is the current Neutron plugin by checking the core_plugin parameter in '''/etc/neutron/neutron.conf''': &lt;br /&gt;
 core_plugin = neutron.plugins.ml2.plugin.Ml2Plugin&lt;br /&gt;
&lt;br /&gt;
2. Make sure '''/etc/neutron/plugin.ini''' is pointing to '''/etc/neutron/plugins/ml2/ml2_conf.ini''' (symbolic link) &lt;br /&gt;
&lt;br /&gt;
3. Modify '''/etc/neutron/plugins/ml2/ml2_conf.ini''' by adding the following: &lt;br /&gt;
 [ml2]&lt;br /&gt;
 type_drivers = vlan,flat&lt;br /&gt;
 tenant_network_types = vlan&lt;br /&gt;
 mechanism_drivers = mlnx_infiniband, openvswitch&lt;br /&gt;
 # or mechanism_drivers = mlnx_infiniband, linuxbridge&lt;br /&gt;
 [ml2_type_vlan]&lt;br /&gt;
 network_vlan_ranges = default:1:10&lt;br /&gt;
&lt;br /&gt;
4. Start (or restart) the Neutron server: &lt;br /&gt;
 # systemctl restart neutron-server.service&lt;br /&gt;
&lt;br /&gt;
===Nova Scheduler===&lt;br /&gt;
Enabling PciPassthroughFilter modify /etc/nova/nova.conf&lt;br /&gt;
  scheduler_available_filters = nova.scheduler.filters.all_filters&lt;br /&gt;
  scheduler_default_filters = RetryFilter, AvailabilityZoneFilter, RamFilter, ComputeFilter, ComputeCapabilitiesFilter, ImagePropertiesFilter, PciPassthroughFilter&lt;br /&gt;
&lt;br /&gt;
== Network Node==&lt;br /&gt;
To configure the Network node:&lt;br /&gt;
&lt;br /&gt;
Prerequisites:&lt;br /&gt;
 E_IPoIB port is configured and up&lt;br /&gt;
&lt;br /&gt;
1. Make sure that eIPoIB module is up and configured in '''/etc/infiniband/openib.conf''': For more information, please refer to eIPoIB configuration in Mellanox OFED User Manual. &lt;br /&gt;
 E_IPOIB_LOAD=yes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Restart openibd: &lt;br /&gt;
 # service openibd restart&lt;br /&gt;
&lt;br /&gt;
3. Modify the network bridge configuration according to the use of OpenVswitch or LinuxBridge&lt;br /&gt;
* 3.1 OpenVswitch '''/etc/neutron/plugins/ml2/openvswitch_agent.ini''' &lt;br /&gt;
 [ovs]&lt;br /&gt;
 bridge_mappings = default:br-&amp;lt;eIPoIB interface&amp;gt;&lt;br /&gt;
* 3.2 LinuxBridge file '''/etc/neutron/plugins/ml2/linuxbridge_agent.ini''':&lt;br /&gt;
 [linux_bridge] &lt;br /&gt;
 physical_interface_mappings = default:&amp;lt;eIPoIB interface&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NOTE: In order to obtain the eIPoIB interface name, run the ethtool tool command (see below) and check that driver name is eth_ipoib: &lt;br /&gt;
 # ethtool -i &amp;lt;eIPoIB_interface&amp;gt; &lt;br /&gt;
 driver: eth_ipoib&lt;br /&gt;
 .....&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4. Restart network bridge: &lt;br /&gt;
* 4.1 OpenVswitch&lt;br /&gt;
 systemctl restart neutron-openvswitch-agent.service&lt;br /&gt;
* 4.2 LinuxBridge (if using linux bridge)&lt;br /&gt;
 # service neutron-linuxbridge-agent restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NOTE: For DHCP support, the Network node should use the Mellanox Dnsmasq driver as the DHCP driver. &lt;br /&gt;
&lt;br /&gt;
===DHCP Server (Usually part of the Network node)===&lt;br /&gt;
&lt;br /&gt;
1. Modify '''/etc/neutron/dhcp_agent.ini''' as follows and according to OVS or Linuxbridge: &lt;br /&gt;
 dhcp_driver = networking_mlnx.dhcp.mlnx_dhcp.MlnxDnsmasq&lt;br /&gt;
 dhcp_broadcast_reply = True&lt;br /&gt;
&lt;br /&gt;
 1.1 For OVS&lt;br /&gt;
     interface_driver =  neutron.agent.linux.interface.OVSInterfaceDriver&lt;br /&gt;
 1.2 For Linux Bridge&lt;br /&gt;
      interface_driver =  neutron.agent.linux.interface.BridgeInterfaceDriver&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Restart DHCP server: &lt;br /&gt;
 # systemctl restart neutron-dhcp-agent.service&lt;br /&gt;
&lt;br /&gt;
==Compute Nodes==&lt;br /&gt;
&lt;br /&gt;
To configure the Compute Node: &lt;br /&gt;
&lt;br /&gt;
1. Install Mellanox RPMs: &lt;br /&gt;
 # yum install --nogpgcheck -y python-networking-mlnx&lt;br /&gt;
&lt;br /&gt;
2. Create the file '''/etc/modprobe.d/mlx4_ib.conf''' and add the following:  &lt;br /&gt;
 options mlx4_ib sm_guid_assign=0&lt;br /&gt;
&lt;br /&gt;
3. Restart the driver: &lt;br /&gt;
 # /etc/init.d/openibd restart&lt;br /&gt;
&lt;br /&gt;
===Nova Compute===&lt;br /&gt;
Nova-compute needs to know which PCI devices are allowed to be passed through to the VMs. &lt;br /&gt;
Also for SRIOV PCI devices it needs to know to which physical network the VF belongs.&lt;br /&gt;
This is done through the pci_passthrough_whitelist parameter under the default section in '''/etc/nova/nova.conf'''.&lt;br /&gt;
For example if we want to whitelist and tag the VFs by their PCI address we would use the following setting:&lt;br /&gt;
[pci]&lt;br /&gt;
passthrough_whitelist = {&amp;quot;address&amp;quot;:&amp;quot;*:0a:00.*&amp;quot;,&amp;quot;physical_network&amp;quot;:&amp;quot;default&amp;quot;}&lt;br /&gt;
This associates any VF with address that includes ':0a:00.' in its address to the physical network default.&lt;br /&gt;
&lt;br /&gt;
1. add  pci passthrough_whitelist to '''/etc/nova/nova.conf'''&lt;br /&gt;
&lt;br /&gt;
2. Restart Nova:&lt;br /&gt;
 # systemctl restart openstack-nova-compute&lt;br /&gt;
&lt;br /&gt;
===Neutron MLNX Agent===&lt;br /&gt;
1. Run: &lt;br /&gt;
 # systemctl enable neutron-mlnx-agent.service&lt;br /&gt;
 # systemctl start neutron-mlnx-agent.service&lt;br /&gt;
&lt;br /&gt;
2. Run: &lt;br /&gt;
 # systemctl daemon-reload&lt;br /&gt;
&lt;br /&gt;
3. In the file '''/etc/neutron/plugins/mlnx/mlnx_conf.ini''', the parameters tenant_network_type , and network_vlan_ranges should be configured as the controllers: &lt;br /&gt;
 physical_interface_mappings = default:&amp;lt;ib_interface&amp;gt;(for example default:ib0)&lt;br /&gt;
&lt;br /&gt;
4. Modify the file '''/etc/neutron/plugins/ml2/eswitchd.conf''' as follows:&lt;br /&gt;
 fabrics = default:&amp;lt;ib_interface&amp;gt; (for example default:ib0)&lt;br /&gt;
&lt;br /&gt;
5. Start eSwitchd: &lt;br /&gt;
 # systemctl enable eswitchd.service&lt;br /&gt;
 # systemctl start  eswitchd.service&lt;br /&gt;
&lt;br /&gt;
6. Start the Neutron agent: &lt;br /&gt;
 # systemctl restart neutron-mlnx-agent&lt;br /&gt;
&lt;br /&gt;
==Known issues and Troubleshooting==&lt;br /&gt;
For known issues and troubleshooting options refer to [https://community.mellanox.com/docs/DOC-1127 Mellanox OpenStack Troubleshooting]&lt;br /&gt;
&lt;br /&gt;
Issue: Missing zmq package on all nodes (Controller/Compute)&lt;br /&gt;
Solution:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 # wget https://bootstrap.pypa.io/get-pip.py&lt;br /&gt;
 # sudo python get-pip.py&lt;br /&gt;
 # sudo pip install pyzmq&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hasanq</name></author>	</entry>

	<entry>
		<id>https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-Rocky-InfiniBand&amp;diff=166891</id>
		<title>Mellanox-Neutron-Rocky-InfiniBand</title>
		<link rel="alternate" type="text/html" href="https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-Rocky-InfiniBand&amp;diff=166891"/>
				<updated>2018-11-25T13:31:33Z</updated>
		
		<summary type="html">&lt;p&gt;Hasanq: Created page with &amp;quot;Mellanox ML2 Mechanism Driver implements the ML2 Plugin Mechanism Driver API.   This driver supports Mellanox embedded switch functionality as part of the VPI (Ethernet/Infini...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Mellanox ML2 Mechanism Driver implements the ML2 Plugin Mechanism Driver API. &lt;br /&gt;
&lt;br /&gt;
This driver supports Mellanox embedded switch functionality as part of the VPI (Ethernet/InfiniBand) HCA.&lt;br /&gt;
Mellanox ML2 Mechanism Driver provides a functional parity with Mellanox Neutron plugin.&lt;br /&gt;
&lt;br /&gt;
Mellanox ML2 Mechanism Driver supports DIRECT (PCI passthrough) vNIC type. For vNIC type configuration API details, please refer to [https://wiki.openstack.org/wiki/SR-IOV-Passthrough-For-Networking#VM_creation_flow_with_SR-IOV_vNIC configuration reference guide].&lt;br /&gt;
Hardware vNICs mapped to the guest VMs allow higher performance and advanced features such as Remote Direct Memory Access (RDMA). &lt;br /&gt;
&lt;br /&gt;
The driver supports VLAN network type to facilitate virtual networks either on Ethernet or on InfiniBand fabrics. &lt;br /&gt;
* Mellanox OpenStack Neutron Agent (L2 Agent) runs on each compute node. &lt;br /&gt;
* Agent should apply VIF connectivity based on mapping between a VIF (VM vNIC) and an embedded switch port.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Prerequisites'''&lt;br /&gt;
* Mellanox ConnectX®-3/Mellanox ConnectX®-3 PRO [http://www.mellanox.com/page/products_dyn?product_family=119 Network Adapter] with [http://www.mellanox.com/page/products_dyn?product_family=26&amp;amp;mtag=linux_sw_drivers Mellanox OFED 2.4 or greater]&lt;br /&gt;
* Mellanox ConnectX®-4 [http://www.mellanox.com/page/products_dyn?product_family=201&amp;amp; Network Adapter] with [http://www.mellanox.com/page/products_dyn?product_family=26&amp;amp;mtag=linux_sw_drivers MLNX_OFED_LINUX-3.1-1.5.7 or greater].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For '''Rocky''' release Information refer to the relevant OS as follows:&lt;br /&gt;
&lt;br /&gt;
* [[Mellanox-Neutron-Rocky-Redhat-InfiniBand | Redhat7]]&lt;br /&gt;
* [[Mellanox-Neutron-Rocky-Ubuntu-InfiniBand | Ubuntu14.04]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hasanq</name></author>	</entry>

	<entry>
		<id>https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-Rocky-Ethernet&amp;diff=166890</id>
		<title>Mellanox-Neutron-Rocky-Ethernet</title>
		<link rel="alternate" type="text/html" href="https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-Rocky-Ethernet&amp;diff=166890"/>
				<updated>2018-11-25T13:29:58Z</updated>
		
		<summary type="html">&lt;p&gt;Hasanq: Created page with &amp;quot; Search BoldItalicLinkEmbedded fileReferenceAdvancedSpecial charactersHelp   ==Configuration== [https://wiki.openstack.org/wiki/SR-IOV-Passthrough-For-Networking Configure SR-...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
Search&lt;br /&gt;
BoldItalicLinkEmbedded fileReferenceAdvancedSpecial charactersHelp&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
[https://wiki.openstack.org/wiki/SR-IOV-Passthrough-For-Networking Configure SR-IOV]&lt;br /&gt;
&lt;br /&gt;
==SDN Mechanism Driver==&lt;br /&gt;
[https://community.mellanox.com/docs/DOC-2155 SDN Mechanism Driver] allows NEO to dynamically configure VLANs on the Mellanox Switches.&lt;br /&gt;
Further reading:&lt;br /&gt;
* [http://www.mellanox.com/page/products_dyn?product_family=220&amp;amp;mtag=mellanox_neo NEO]&lt;br /&gt;
* [http://www.mellanox.com/page/ethernet_switch_overview Mellanox Switches]&lt;br /&gt;
* [https://community.mellanox.com/docs/DOC-2251 SDN Mechanism Driver]&lt;br /&gt;
&lt;br /&gt;
==Ceilometer==&lt;br /&gt;
The Mellanox Ceilometer SR-IOV module allows the OpenStack Ceilometer to collect measurements of SR-IOV counters.&lt;br /&gt;
&lt;br /&gt;
More details about applying Mellanox Ceilometer module can be found [https://community.mellanox.com/docs/DOC-2145 here]&lt;br /&gt;
&lt;br /&gt;
Summary: &lt;br /&gt;
 This is a minor edit  Watch this page&lt;br /&gt;
Please note that all contributions to OpenStack are considered to be released under the Attribution 3.0 Unported (CC BY 3.0) (see OpenStack:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.&lt;br /&gt;
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!&lt;br /&gt;
&lt;br /&gt;
   Cancel&lt;br /&gt;
Privacy policy About OpenStack Disclaimers&lt;br /&gt;
 Attribution 3.0 Unported (CC BY 3.0)  Powered by MediaWiki&lt;/div&gt;</summary>
		<author><name>Hasanq</name></author>	</entry>

	<entry>
		<id>https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-Queens-InfiniBand&amp;diff=166889</id>
		<title>Mellanox-Neutron-Queens-InfiniBand</title>
		<link rel="alternate" type="text/html" href="https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-Queens-InfiniBand&amp;diff=166889"/>
				<updated>2018-11-25T13:27:47Z</updated>
		
		<summary type="html">&lt;p&gt;Hasanq: Created page with &amp;quot;Mellanox ML2 Mechanism Driver implements the ML2 Plugin Mechanism Driver API.   This driver supports Mellanox embedded switch functionality as part of the VPI (Ethernet/Infini...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Mellanox ML2 Mechanism Driver implements the ML2 Plugin Mechanism Driver API. &lt;br /&gt;
&lt;br /&gt;
This driver supports Mellanox embedded switch functionality as part of the VPI (Ethernet/InfiniBand) HCA.&lt;br /&gt;
Mellanox ML2 Mechanism Driver provides a functional parity with Mellanox Neutron plugin.&lt;br /&gt;
&lt;br /&gt;
Mellanox ML2 Mechanism Driver supports DIRECT (PCI passthrough) vNIC type. For vNIC type configuration API details, please refer to [https://wiki.openstack.org/wiki/SR-IOV-Passthrough-For-Networking#VM_creation_flow_with_SR-IOV_vNIC configuration reference guide].&lt;br /&gt;
Hardware vNICs mapped to the guest VMs allow higher performance and advanced features such as Remote Direct Memory Access (RDMA). &lt;br /&gt;
&lt;br /&gt;
The driver supports VLAN network type to facilitate virtual networks either on Ethernet or on InfiniBand fabrics. &lt;br /&gt;
* Mellanox OpenStack Neutron Agent (L2 Agent) runs on each compute node. &lt;br /&gt;
* Agent should apply VIF connectivity based on mapping between a VIF (VM vNIC) and an embedded switch port.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Prerequisites'''&lt;br /&gt;
* Mellanox ConnectX®-3/Mellanox ConnectX®-3 PRO [http://www.mellanox.com/page/products_dyn?product_family=119 Network Adapter] with [http://www.mellanox.com/page/products_dyn?product_family=26&amp;amp;mtag=linux_sw_drivers Mellanox OFED 2.4 or greater]&lt;br /&gt;
* Mellanox ConnectX®-4 [http://www.mellanox.com/page/products_dyn?product_family=201&amp;amp; Network Adapter] with [http://www.mellanox.com/page/products_dyn?product_family=26&amp;amp;mtag=linux_sw_drivers MLNX_OFED_LINUX-3.1-1.5.7 or greater].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For '''Queens''' release Information refer to the relevant OS as follows:&lt;br /&gt;
&lt;br /&gt;
* [[Mellanox-Neutron-Queens-Redhat-InfiniBand | Redhat7]]&lt;br /&gt;
* [[Mellanox-Neutron-Queens-Ubuntu-InfiniBand | Ubuntu14.04]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hasanq</name></author>	</entry>

	<entry>
		<id>https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-Queens-Redhat-InfiniBand&amp;diff=162789</id>
		<title>Mellanox-Neutron-Queens-Redhat-InfiniBand</title>
		<link rel="alternate" type="text/html" href="https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-Queens-Redhat-InfiniBand&amp;diff=162789"/>
				<updated>2018-07-16T12:22:45Z</updated>
		
		<summary type="html">&lt;p&gt;Hasanq: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Overview=&lt;br /&gt;
&lt;br /&gt;
==Mellanox Neutron ML2 Driver==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Mellanox ML2 Mechanism Driver implements the ML2 Plugin Mechanism Driver API. &lt;br /&gt;
&lt;br /&gt;
This driver supports Mellanox embedded switch functionality as part of the InfiniBand HCA. Mellanox ML2 Mechanism Driver provides functional parity with Mellanox Neutron plugin. &lt;br /&gt;
&lt;br /&gt;
Mellanox ML2 Mechanism Driver supports DIRECT (pci passthrough) vnic type. For vnic type configuration API details, please refer to configuration reference guide.&lt;br /&gt;
Hardware vNICs mapped to the guest VMs allow higher performance and advanced features such as RDMA (remote direct memory access). &lt;br /&gt;
&lt;br /&gt;
The driver supports VLAN network type to facilitate virtual networks either on InfiniBand fabrics. &lt;br /&gt;
* Mellanox OpenStack Neutron Agent (L2 Agent) runs on each compute node. &lt;br /&gt;
* Agent should apply VIF connectivity based on mapping between a VIF (VM vNIC) and Embedded Switch port. &lt;br /&gt;
&lt;br /&gt;
===Prerequisites===&lt;br /&gt;
* Red Hat Installation &amp;gt; 7.1&lt;br /&gt;
* Mellanox [http://www.mellanox.com/page/products_dyn?product_family=119  ConnectX®-3/Mellanox ConnectX®-3 PRO] with [http://www.mellanox.com/page/products_dyn?product_family=26&amp;amp;mtag=linux_sw_drivers Mellanox OFED]  the latest 3.X &lt;br /&gt;
* Mellanox [http://www.mellanox.com/page/products_dyn?product_family=201&amp;amp; ConnectX®-4]/[http://www.mellanox.com/page/products_dyn?product_family=214&amp;amp;mtag=connectx_4_lx_en_ic ConnectX®-4Lx]/[http://www.mellanox.com/page/products_dyn?product_family=258&amp;amp;mtag=connectx_5_vpi_card ConnectX®-5] with [http://www.mellanox.com/page/products_dyn?product_family=26&amp;amp;mtag=linux_sw_drivers MLNX_OFED_LINUX] the latest 3.X .&lt;br /&gt;
* A running OpenStack environment installed with the ML2 plugin on top of OpenVswitch or Linux Bridge (RDO Manager or Packstack).&lt;br /&gt;
* [https://community.mellanox.com/docs/DOC-1317 SR-IOV] enabled on all compute nodes.&lt;br /&gt;
* The software package [http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2 iproute2] installed on all Compute nodes&lt;br /&gt;
* [http://www.mellanox.com/page/products_dyn?product_family=100 Mellanox UFM] greater than 5.9.5&lt;br /&gt;
* Add the following repositories on each node&lt;br /&gt;
 yum -y install yum-plugin-priorities&lt;br /&gt;
 cd /etc/yum.repos.d/&lt;br /&gt;
 sudo wget https://trunk.rdoproject.org/centos7-queens/current/delorean.repo&lt;br /&gt;
 yum update -y&lt;br /&gt;
&lt;br /&gt;
=InfiniBand Network=&lt;br /&gt;
The Mellanox Neutron Plugin uses InfiniBand Partitions (PKeys) to separate Networks. &lt;br /&gt;
&lt;br /&gt;
==SM Node==&lt;br /&gt;
&lt;br /&gt;
=== OpenSM Provisioning with SDN Mechanism Driver ===&lt;br /&gt;
&lt;br /&gt;
[https://community.mellanox.com/docs/DOC-2155 SDN Mechanism Driver] allows OpenSM dynamically assign PKs in the IB network.&lt;br /&gt;
&lt;br /&gt;
More details about applying SDN Mechanism Driver with [http://www.mellanox.com/page/products_dyn?product_family=220&amp;amp;mtag=mellanox_neo NEO] can be found [https://community.mellanox.com/docs/DOC-2251 here]&lt;br /&gt;
&lt;br /&gt;
=== Manual OpenSM Configuration ===&lt;br /&gt;
&lt;br /&gt;
All the PKeys should be predefined in the partitions.conf file (/etc/opensm/partitions.conf)&lt;br /&gt;
(Automatic cofiguration is planned in future phase)&lt;br /&gt;
&lt;br /&gt;
====For ConnectX®-3/ConnectX®-3Pro use the following configuration====&lt;br /&gt;
&lt;br /&gt;
Add/Change the following in the partitions.conf file&lt;br /&gt;
   management=0x7fff,ipoib, sl=0, defmember=full : ALL, ALL_SWITCHES=full,SELF=full;&lt;br /&gt;
   vlan1=0x1, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan2=0x2, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan3=0x3, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan4=0x4, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan5=0x5, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan6=0x6, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan7=0x7, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan8=0x8, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan9=0x9, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan10=0xa, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
Change the following in /etc/opensm/opensm.conf:&lt;br /&gt;
   allow_both_pkeys TRUE&lt;br /&gt;
&lt;br /&gt;
====For ConnectX®-4/ConnectX®-5 use the following configuration====&lt;br /&gt;
&lt;br /&gt;
Add/Change the following in the partitions.conf.user_ext&lt;br /&gt;
 vlan1=0x1, ipoib, sl=0, defmember=full: ALL_CAS;&lt;br /&gt;
 #Storage and management vlan should be define as follow&lt;br /&gt;
 vlan2=0x2, ipoib, sl=0, defmember=full: ALL_CAS;&lt;br /&gt;
 vlan3=0x3, ipoib, sl=0, defmember=full: ALL_CAS;&lt;br /&gt;
 #define OpenSM as a member for all OpenStack vlans. If not guest will have link down on “ibdev2netdev” and no connectivity.&lt;br /&gt;
 vlan4=0x4, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan5=0x5, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan6=0x6, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan7=0x7, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan8=0x8, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan9=0x9, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan10=0xa, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 &lt;br /&gt;
Change the following in /etc/opensm/opensm.conf:&lt;br /&gt;
 virt_enabled 2&lt;br /&gt;
 part_enforce off&lt;br /&gt;
 allow_both_pkeys FALSE&lt;br /&gt;
&lt;br /&gt;
4. Restart the OpenSM: &lt;br /&gt;
 # systemctl restart opensmd.service&lt;br /&gt;
&lt;br /&gt;
==Controller Node==&lt;br /&gt;
&lt;br /&gt;
To configure the Controller node:&lt;br /&gt;
&lt;br /&gt;
1. Install Mellanox RPMs: &lt;br /&gt;
 # yum install -y --nogpgcheck python-networking-mlnx &lt;br /&gt;
&lt;br /&gt;
===Neutron Server===&lt;br /&gt;
1. Make sure ML2 is the current Neutron plugin by checking the core_plugin parameter in '''/etc/neutron/neutron.conf''': &lt;br /&gt;
 core_plugin = neutron.plugins.ml2.plugin.Ml2Plugin&lt;br /&gt;
&lt;br /&gt;
2. Make sure '''/etc/neutron/plugin.ini''' is pointing to '''/etc/neutron/plugins/ml2/ml2_conf.ini''' (symbolic link) &lt;br /&gt;
&lt;br /&gt;
3. Modify '''/etc/neutron/plugins/ml2/ml2_conf.ini''' by adding the following: &lt;br /&gt;
 [ml2]&lt;br /&gt;
 type_drivers = vlan,flat&lt;br /&gt;
 tenant_network_types = vlan&lt;br /&gt;
 mechanism_drivers = mlnx_infiniband, openvswitch&lt;br /&gt;
 # or mechanism_drivers = mlnx_infiniband, linuxbridge&lt;br /&gt;
 [ml2_type_vlan]&lt;br /&gt;
 network_vlan_ranges = default:1:10&lt;br /&gt;
&lt;br /&gt;
4. Start (or restart) the Neutron server: &lt;br /&gt;
 # systemctl restart neutron-server.service&lt;br /&gt;
&lt;br /&gt;
===Nova Scheduler===&lt;br /&gt;
Enabling PciPassthroughFilter modify /etc/nova/nova.conf&lt;br /&gt;
  scheduler_available_filters = nova.scheduler.filters.all_filters&lt;br /&gt;
  scheduler_default_filters = RetryFilter, AvailabilityZoneFilter, RamFilter, ComputeFilter, ComputeCapabilitiesFilter, ImagePropertiesFilter, PciPassthroughFilter&lt;br /&gt;
&lt;br /&gt;
== Network Node==&lt;br /&gt;
To configure the Network node:&lt;br /&gt;
&lt;br /&gt;
Prerequisites:&lt;br /&gt;
 E_IPoIB port is configured and up&lt;br /&gt;
&lt;br /&gt;
1. Make sure that eIPoIB module is up and configured in '''/etc/infiniband/openib.conf''': For more information, please refer to eIPoIB configuration in Mellanox OFED User Manual. &lt;br /&gt;
 E_IPOIB_LOAD=yes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Restart openibd: &lt;br /&gt;
 # service openibd restart&lt;br /&gt;
&lt;br /&gt;
3. Modify the network bridge configuration according to the use of OpenVswitch or LinuxBridge&lt;br /&gt;
* 3.1 OpenVswitch '''/etc/neutron/plugins/ml2/openvswitch_agent.ini''' &lt;br /&gt;
 [ovs]&lt;br /&gt;
 bridge_mappings = default:br-&amp;lt;eIPoIB interface&amp;gt;&lt;br /&gt;
* 3.2 LinuxBridge file '''/etc/neutron/plugins/ml2/linuxbridge_agent.ini''':&lt;br /&gt;
 [linux_bridge] &lt;br /&gt;
 physical_interface_mappings = default:&amp;lt;eIPoIB interface&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NOTE: In order to obtain the eIPoIB interface name, run the ethtool tool command (see below) and check that driver name is eth_ipoib: &lt;br /&gt;
 # ethtool -i &amp;lt;eIPoIB_interface&amp;gt; &lt;br /&gt;
 driver: eth_ipoib&lt;br /&gt;
 .....&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4. Restart network bridge: &lt;br /&gt;
* 4.1 OpenVswitch&lt;br /&gt;
 systemctl restart neutron-openvswitch-agent.service&lt;br /&gt;
* 4.2 LinuxBridge (if using linux bridge)&lt;br /&gt;
 # service neutron-linuxbridge-agent restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NOTE: For DHCP support, the Network node should use the Mellanox Dnsmasq driver as the DHCP driver. &lt;br /&gt;
&lt;br /&gt;
===DHCP Server (Usually part of the Network node)===&lt;br /&gt;
&lt;br /&gt;
1. Modify '''/etc/neutron/dhcp_agent.ini''' as follows and according to OVS or Linuxbridge: &lt;br /&gt;
 dhcp_driver = networking_mlnx.dhcp.mlnx_dhcp.MlnxDnsmasq&lt;br /&gt;
 dhcp_broadcast_reply = True&lt;br /&gt;
&lt;br /&gt;
 1.1 For OVS&lt;br /&gt;
     interface_driver =  neutron.agent.linux.interface.OVSInterfaceDriver&lt;br /&gt;
 1.2 For Linux Bridge&lt;br /&gt;
      interface_driver =  neutron.agent.linux.interface.BridgeInterfaceDriver&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Restart DHCP server: &lt;br /&gt;
 # systemctl restart neutron-dhcp-agent.service&lt;br /&gt;
&lt;br /&gt;
==Compute Nodes==&lt;br /&gt;
&lt;br /&gt;
To configure the Compute Node: &lt;br /&gt;
&lt;br /&gt;
1. Install Mellanox RPMs: &lt;br /&gt;
 # yum install --nogpgcheck -y python-networking-mlnx&lt;br /&gt;
&lt;br /&gt;
2. Create the file '''/etc/modprobe.d/mlx4_ib.conf''' and add the following:  &lt;br /&gt;
 options mlx4_ib sm_guid_assign=0&lt;br /&gt;
&lt;br /&gt;
3. Restart the driver: &lt;br /&gt;
 # /etc/init.d/openibd restart&lt;br /&gt;
&lt;br /&gt;
===Nova Compute===&lt;br /&gt;
Nova-compute needs to know which PCI devices are allowed to be passed through to the VMs. &lt;br /&gt;
Also for SRIOV PCI devices it needs to know to which physical network the VF belongs.&lt;br /&gt;
This is done through the pci_passthrough_whitelist parameter under the default section in '''/etc/nova/nova.conf'''.&lt;br /&gt;
For example if we want to whitelist and tag the VFs by their PCI address we would use the following setting:&lt;br /&gt;
[pci]&lt;br /&gt;
passthrough_whitelist = {&amp;quot;address&amp;quot;:&amp;quot;*:0a:00.*&amp;quot;,&amp;quot;physical_network&amp;quot;:&amp;quot;default&amp;quot;}&lt;br /&gt;
This associates any VF with address that includes ':0a:00.' in its address to the physical network default.&lt;br /&gt;
&lt;br /&gt;
1. add  pci passthrough_whitelist to '''/etc/nova/nova.conf'''&lt;br /&gt;
&lt;br /&gt;
2. Restart Nova:&lt;br /&gt;
 # systemctl restart openstack-nova-compute&lt;br /&gt;
&lt;br /&gt;
===Neutron MLNX Agent===&lt;br /&gt;
1. Run: &lt;br /&gt;
 # systemctl enable neutron-mlnx-agent.service&lt;br /&gt;
 # systemctl start neutron-mlnx-agent.service&lt;br /&gt;
&lt;br /&gt;
2. Run: &lt;br /&gt;
 # systemctl daemon-reload&lt;br /&gt;
&lt;br /&gt;
3. In the file '''/etc/neutron/plugins/mlnx/mlnx_conf.ini''', the parameters tenant_network_type , and network_vlan_ranges should be configured as the controllers: &lt;br /&gt;
 physical_interface_mappings = default:&amp;lt;ib_interface&amp;gt;(for example default:ib0)&lt;br /&gt;
&lt;br /&gt;
4. Modify the file '''/etc/neutron/plugins/ml2/eswitchd.conf''' as follows:&lt;br /&gt;
 fabrics = default:&amp;lt;ib_interface&amp;gt; (for example default:ib0)&lt;br /&gt;
&lt;br /&gt;
5. Start eSwitchd: &lt;br /&gt;
 # systemctl enable eswitchd.service&lt;br /&gt;
 # systemctl start  eswitchd.service&lt;br /&gt;
&lt;br /&gt;
6. Start the Neutron agent: &lt;br /&gt;
 # systemctl restart neutron-mlnx-agent&lt;br /&gt;
&lt;br /&gt;
==Known issues and Troubleshooting==&lt;br /&gt;
For known issues and troubleshooting options refer to [https://community.mellanox.com/docs/DOC-1127 Mellanox OpenStack Troubleshooting]&lt;br /&gt;
&lt;br /&gt;
Issue: Missing zmq package on all nodes (Controller/Compute)&lt;br /&gt;
Solution:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 # wget https://bootstrap.pypa.io/get-pip.py&lt;br /&gt;
 # sudo python get-pip.py&lt;br /&gt;
 # sudo pip install pyzmq&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hasanq</name></author>	</entry>

	<entry>
		<id>https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-Queens-Ubuntu-InfiniBand&amp;diff=162788</id>
		<title>Mellanox-Neutron-Queens-Ubuntu-InfiniBand</title>
		<link rel="alternate" type="text/html" href="https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-Queens-Ubuntu-InfiniBand&amp;diff=162788"/>
				<updated>2018-07-16T12:20:55Z</updated>
		
		<summary type="html">&lt;p&gt;Hasanq: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Overview=&lt;br /&gt;
&lt;br /&gt;
==Mellanox Neutron ML2 Driver==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Mellanox ML2 Mechanism Driver implements the ML2 Plugin Mechanism Driver API. &lt;br /&gt;
&lt;br /&gt;
This driver supports Mellanox embedded switch functionality as part of the InfiniBand HCA. Mellanox ML2 Mechanism Driver provides functional parity with Mellanox Neutron plugin. &lt;br /&gt;
&lt;br /&gt;
Mellanox ML2 Mechanism Driver supports DIRECT (pci passthrough) vnic type. For vnic type configuration API details, please refer to configuration reference guide.&lt;br /&gt;
Hardware vNICs mapped to the guest VMs allow higher performance and advanced features such as RDMA (remote direct memory access). &lt;br /&gt;
&lt;br /&gt;
The driver supports VLAN network type to facilitate virtual networks either on InfiniBand fabrics. &lt;br /&gt;
* Mellanox OpenStack Neutron Agent (L2 Agent) runs on each compute node. &lt;br /&gt;
* Agent should apply VIF connectivity based on mapping between a VIF (VM vNIC) and Embedded Switch port. &lt;br /&gt;
&lt;br /&gt;
===Prerequisites===&lt;br /&gt;
* Red Hat Installation &amp;gt; 7.1&lt;br /&gt;
* Mellanox [http://www.mellanox.com/page/products_dyn?product_family=119  ConnectX®-3/Mellanox ConnectX®-3 PRO] with [http://www.mellanox.com/page/products_dyn?product_family=26&amp;amp;mtag=linux_sw_drivers Mellanox OFED]  the latest 3.X &lt;br /&gt;
* Mellanox [http://www.mellanox.com/page/products_dyn?product_family=201&amp;amp; ConnectX®-4]/[http://www.mellanox.com/page/products_dyn?product_family=214&amp;amp;mtag=connectx_4_lx_en_ic ConnectX®-4Lx]/[http://www.mellanox.com/page/products_dyn?product_family=258&amp;amp;mtag=connectx_5_vpi_card ConnectX®-5] with [http://www.mellanox.com/page/products_dyn?product_family=26&amp;amp;mtag=linux_sw_drivers MLNX_OFED_LINUX] the latest 3.X .&lt;br /&gt;
* A running OpenStack environment installed with the ML2 plugin on top of OpenVswitch or Linux Bridge (RDO Manager or Packstack).&lt;br /&gt;
* [https://community.mellanox.com/docs/DOC-1317 SR-IOV] enabled on all compute nodes.&lt;br /&gt;
* The software package [http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2 iproute2] installed on all Compute nodes&lt;br /&gt;
* [http://www.mellanox.com/page/products_dyn?product_family=100 Mellanox UFM] greater than 5.9.5&lt;br /&gt;
* Add the following repositories on each node&lt;br /&gt;
 yum -y install yum-plugin-priorities&lt;br /&gt;
 cd /etc/yum.repos.d/&lt;br /&gt;
 sudo wget https://trunk.rdoproject.org/centos7-queens/current/delorean.repo&lt;br /&gt;
 yum update -y&lt;br /&gt;
&lt;br /&gt;
=InfiniBand Network=&lt;br /&gt;
The Mellanox Neutron Plugin uses InfiniBand Partitions (PKeys) to separate Networks. &lt;br /&gt;
&lt;br /&gt;
==SM Node==&lt;br /&gt;
&lt;br /&gt;
=== OpenSM Provisioning with SDN Mechanism Driver ===&lt;br /&gt;
&lt;br /&gt;
[https://community.mellanox.com/docs/DOC-2155 SDN Mechanism Driver] allows OpenSM dynamically assign PKs in the IB network.&lt;br /&gt;
&lt;br /&gt;
More details about applying SDN Mechanism Driver with [http://www.mellanox.com/page/products_dyn?product_family=220&amp;amp;mtag=mellanox_neo NEO] can be found [https://community.mellanox.com/docs/DOC-2251 here]&lt;br /&gt;
&lt;br /&gt;
=== Manual OpenSM Configuration ===&lt;br /&gt;
&lt;br /&gt;
All the PKeys should be predefined in the partitions.conf file (/etc/opensm/partitions.conf)&lt;br /&gt;
(Automatic cofiguration is planned in future phase)&lt;br /&gt;
&lt;br /&gt;
====For ConnectX®-3/ConnectX®-3Pro use the following configuration====&lt;br /&gt;
&lt;br /&gt;
Add/Change the following in the partitions.conf file&lt;br /&gt;
   management=0x7fff,ipoib, sl=0, defmember=full : ALL, ALL_SWITCHES=full,SELF=full;&lt;br /&gt;
   vlan1=0x1, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan2=0x2, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan3=0x3, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan4=0x4, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan5=0x5, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan6=0x6, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan7=0x7, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan8=0x8, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan9=0x9, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan10=0xa, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
Change the following in /etc/opensm/opensm.conf:&lt;br /&gt;
   allow_both_pkeys TRUE&lt;br /&gt;
&lt;br /&gt;
====For ConnectX®-4/ConnectX®-5 use the following configuration====&lt;br /&gt;
&lt;br /&gt;
Add/Change the following in the partitions.conf.user_ext&lt;br /&gt;
 vlan1=0x1, ipoib, sl=0, defmember=full: ALL_CAS;&lt;br /&gt;
 #Storage and management vlan should be define as follow&lt;br /&gt;
 vlan2=0x2, ipoib, sl=0, defmember=full: ALL_CAS;&lt;br /&gt;
 vlan3=0x3, ipoib, sl=0, defmember=full: ALL_CAS;&lt;br /&gt;
 #define OpenSM as a member for all OpenStack vlans. If not guest will have link down on “ibdev2netdev” and no connectivity.&lt;br /&gt;
 vlan4=0x4, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan5=0x5, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan6=0x6, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan7=0x7, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan8=0x8, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan9=0x9, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan10=0xa, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 &lt;br /&gt;
Change the following in /etc/opensm/opensm.conf:&lt;br /&gt;
 virt_enabled 2&lt;br /&gt;
 part_enforce off&lt;br /&gt;
 allow_both_pkeys FALSE&lt;br /&gt;
&lt;br /&gt;
4. Restart the OpenSM: &lt;br /&gt;
 # systemctl restart opensmd.service&lt;br /&gt;
&lt;br /&gt;
==Controller Node==&lt;br /&gt;
&lt;br /&gt;
To configure the Controller node:&lt;br /&gt;
&lt;br /&gt;
1. Install Mellanox RPMs: &lt;br /&gt;
 # yum install -y --nogpgcheck python-networking-mlnx &lt;br /&gt;
&lt;br /&gt;
===Neutron Server===&lt;br /&gt;
1. Make sure ML2 is the current Neutron plugin by checking the core_plugin parameter in '''/etc/neutron/neutron.conf''': &lt;br /&gt;
 core_plugin = neutron.plugins.ml2.plugin.Ml2Plugin&lt;br /&gt;
&lt;br /&gt;
2. Make sure '''/etc/neutron/plugin.ini''' is pointing to '''/etc/neutron/plugins/ml2/ml2_conf.ini''' (symbolic link) &lt;br /&gt;
&lt;br /&gt;
3. Modify '''/etc/neutron/plugins/ml2/ml2_conf.ini''' by adding the following: &lt;br /&gt;
 [ml2]&lt;br /&gt;
 type_drivers = vlan,flat&lt;br /&gt;
 tenant_network_types = vlan&lt;br /&gt;
 mechanism_drivers = mlnx_infiniband, openvswitch&lt;br /&gt;
 # or mechanism_drivers = mlnx_infiniband, linuxbridge&lt;br /&gt;
 [ml2_type_vlan]&lt;br /&gt;
 network_vlan_ranges = default:1:10&lt;br /&gt;
&lt;br /&gt;
4. Start (or restart) the Neutron server: &lt;br /&gt;
 # systemctl restart neutron-server.service&lt;br /&gt;
&lt;br /&gt;
===Nova Scheduler===&lt;br /&gt;
Enabling PciPassthroughFilter modify /etc/nova/nova.conf&lt;br /&gt;
  scheduler_available_filters = nova.scheduler.filters.all_filters&lt;br /&gt;
  scheduler_default_filters = RetryFilter, AvailabilityZoneFilter, RamFilter, ComputeFilter, ComputeCapabilitiesFilter, ImagePropertiesFilter, PciPassthroughFilter&lt;br /&gt;
&lt;br /&gt;
== Network Node==&lt;br /&gt;
To configure the Network node:&lt;br /&gt;
&lt;br /&gt;
Prerequisites:&lt;br /&gt;
 E_IPoIB port is configured and up&lt;br /&gt;
&lt;br /&gt;
1. Make sure that eIPoIB module is up and configured in '''/etc/infiniband/openib.conf''': For more information, please refer to eIPoIB configuration in Mellanox OFED User Manual. &lt;br /&gt;
 E_IPOIB_LOAD=yes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Restart openibd: &lt;br /&gt;
 # service openibd restart&lt;br /&gt;
&lt;br /&gt;
3. Modify the network bridge configuration according to the use of OpenVswitch or LinuxBridge&lt;br /&gt;
* 3.1 OpenVswitch '''/etc/neutron/plugins/ml2/openvswitch_agent.ini''' &lt;br /&gt;
 [ovs]&lt;br /&gt;
 bridge_mappings = default:br-&amp;lt;eIPoIB interface&amp;gt;&lt;br /&gt;
* 3.2 LinuxBridge file '''/etc/neutron/plugins/ml2/linuxbridge_agent.ini''':&lt;br /&gt;
 [linux_bridge] &lt;br /&gt;
 physical_interface_mappings = default:&amp;lt;eIPoIB interface&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NOTE: In order to obtain the eIPoIB interface name, run the ethtool tool command (see below) and check that driver name is eth_ipoib: &lt;br /&gt;
 # ethtool -i &amp;lt;eIPoIB_interface&amp;gt; &lt;br /&gt;
 driver: eth_ipoib&lt;br /&gt;
 .....&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4. Restart network bridge: &lt;br /&gt;
* 4.1 OpenVswitch&lt;br /&gt;
 systemctl restart neutron-openvswitch-agent.service&lt;br /&gt;
* 4.2 LinuxBridge (if using linux bridge)&lt;br /&gt;
 # service neutron-linuxbridge-agent restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NOTE: For DHCP support, the Network node should use the Mellanox Dnsmasq driver as the DHCP driver. &lt;br /&gt;
&lt;br /&gt;
===DHCP Server (Usually part of the Network node)===&lt;br /&gt;
&lt;br /&gt;
1. Modify '''/etc/neutron/dhcp_agent.ini''' as follows and according to OVS or Linuxbridge: &lt;br /&gt;
 dhcp_driver = networking_mlnx.dhcp.mlnx_dhcp.MlnxDnsmasq&lt;br /&gt;
 dhcp_broadcast_reply = True&lt;br /&gt;
&lt;br /&gt;
 1.1 For OVS&lt;br /&gt;
     interface_driver =  neutron.agent.linux.interface.OVSInterfaceDriver&lt;br /&gt;
 1.2 For Linux Bridge&lt;br /&gt;
      interface_driver =  neutron.agent.linux.interface.BridgeInterfaceDriver&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Restart DHCP server: &lt;br /&gt;
 # systemctl restart neutron-dhcp-agent.service&lt;br /&gt;
&lt;br /&gt;
==Compute Nodes==&lt;br /&gt;
&lt;br /&gt;
To configure the Compute Node: &lt;br /&gt;
&lt;br /&gt;
1. Install Mellanox RPMs: &lt;br /&gt;
 # yum install --nogpgcheck -y python-networking-mlnx&lt;br /&gt;
&lt;br /&gt;
2. Create the file '''/etc/modprobe.d/mlx4_ib.conf''' and add the following:  &lt;br /&gt;
 options mlx4_ib sm_guid_assign=0&lt;br /&gt;
&lt;br /&gt;
3. Restart the driver: &lt;br /&gt;
 # /etc/init.d/openibd restart&lt;br /&gt;
&lt;br /&gt;
===Nova Compute===&lt;br /&gt;
Nova-compute needs to know which PCI devices are allowed to be passed through to the VMs. &lt;br /&gt;
Also for SRIOV PCI devices it needs to know to which physical network the VF belongs.&lt;br /&gt;
This is done through the pci_passthrough_whitelist parameter under the default section in '''/etc/nova/nova.conf'''.&lt;br /&gt;
For example if we want to whitelist and tag the VFs by their PCI address we would use the following setting:&lt;br /&gt;
[pci]&lt;br /&gt;
passthrough_whitelist = {&amp;quot;address&amp;quot;:&amp;quot;*:0a:00.*&amp;quot;,&amp;quot;physical_network&amp;quot;:&amp;quot;default&amp;quot;}&lt;br /&gt;
This associates any VF with address that includes ':0a:00.' in its address to the physical network default.&lt;br /&gt;
&lt;br /&gt;
1. add  pci passthrough_whitelist to '''/etc/nova/nova.conf'''&lt;br /&gt;
&lt;br /&gt;
2. Restart Nova:&lt;br /&gt;
 # systemctl restart openstack-nova-compute&lt;br /&gt;
&lt;br /&gt;
===Neutron MLNX Agent===&lt;br /&gt;
1. Run: &lt;br /&gt;
 # systemctl enable neutron-mlnx-agent.service&lt;br /&gt;
 # systemctl start neutron-mlnx-agent.service&lt;br /&gt;
&lt;br /&gt;
2. Run: &lt;br /&gt;
 # systemctl daemon-reload&lt;br /&gt;
&lt;br /&gt;
3. In the file '''/etc/neutron/plugins/mlnx/mlnx_conf.ini''', the parameters tenant_network_type , and network_vlan_ranges should be configured as the controllers: &lt;br /&gt;
 physical_interface_mappings = default:&amp;lt;ib_interface&amp;gt;(for example default:ib0)&lt;br /&gt;
&lt;br /&gt;
4. Modify the file '''/etc/neutron/plugins/ml2/eswitchd.conf''' as follows:&lt;br /&gt;
 fabrics = default:&amp;lt;ib_interface&amp;gt; (for example default:ib0)&lt;br /&gt;
&lt;br /&gt;
5. Start eSwitchd: &lt;br /&gt;
 # systemctl enable eswitchd.service&lt;br /&gt;
 # systemctl start  eswitchd.service&lt;br /&gt;
&lt;br /&gt;
6. Start the Neutron agent: &lt;br /&gt;
 # systemctl restart neutron-mlnx-agent&lt;br /&gt;
&lt;br /&gt;
==Known issues and Troubleshooting==&lt;br /&gt;
For known issues and troubleshooting options refer to [https://community.mellanox.com/docs/DOC-1127 Mellanox OpenStack Troubleshooting]&lt;br /&gt;
&lt;br /&gt;
Issue: Missing zmq package on all nodes (Controller/Compute)&lt;br /&gt;
Solution:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 # wget https://bootstrap.pypa.io/get-pip.py&lt;br /&gt;
 # sudo python get-pip.py&lt;br /&gt;
 # sudo pip install pyzmq&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hasanq</name></author>	</entry>

	<entry>
		<id>https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-ML2-Queens&amp;diff=162780</id>
		<title>Mellanox-Neutron-ML2-Queens</title>
		<link rel="alternate" type="text/html" href="https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-ML2-Queens&amp;diff=162780"/>
				<updated>2018-07-15T13:59:43Z</updated>
		
		<summary type="html">&lt;p&gt;Hasanq: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Mellanox ML2 Mechanism Driver implements the ML2 Plugin Mechanism Driver API. &lt;br /&gt;
&lt;br /&gt;
This driver supports Mellanox embedded switch functionality as part of the VPI (Ethernet/InfiniBand) HCA.&lt;br /&gt;
Mellanox ML2 Mechanism Driver provides functional parity with Mellanox Neutron plugin.&lt;br /&gt;
&lt;br /&gt;
Mellanox ML2 Mechanism Driver supports DIRECT (pci passthrough) vnic type. For vnic type configuration API details, please refer to configuration reference guide.&lt;br /&gt;
Hardware vNICs mapped to the guest VMs allow higher performance and advanced features such as RDMA (remote direct memory access). &lt;br /&gt;
&lt;br /&gt;
The driver supports VLAN network type to facilitate virtual networks either on Ethernet or InfiniBand fabrics. &lt;br /&gt;
* Mellanox OpenStack Neutron Agent (L2 Agent) runs on each compute node. &lt;br /&gt;
* Agent should apply VIF connectivity based on mapping between a VIF (VM vNIC) and Embedded Switch port.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Prerequisites'''&lt;br /&gt;
* Mellanox [http://www.mellanox.com/page/products_dyn?product_family=119  ConnectX®-3/Mellanox ConnectX®-3 PRO] with [http://www.mellanox.com/page/products_dyn?product_family=26&amp;amp;mtag=linux_sw_drivers Mellanox OFED] 2.4 or greater&lt;br /&gt;
* Mellanox [http://www.mellanox.com/page/products_dyn?product_family=201&amp;amp; ConnectX®-4]/[http://www.mellanox.com/page/products_dyn?product_family=214&amp;amp;mtag=connectx_4_lx_en_ic ConnectX®-4Lx]/[http://www.mellanox.com/page/products_dyn?product_family=258&amp;amp;mtag=connectx_5_vpi_card ConnectX®-5] with [http://www.mellanox.com/page/products_dyn?product_family=26&amp;amp;mtag=linux_sw_drivers MLNX_OFED_LINUX] 3.1-1.5.7 or greater.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For '''Queens''' release Information refer to the relevant OS as follows:&lt;br /&gt;
&lt;br /&gt;
Infiniband&lt;br /&gt;
* [[Mellanox-Neutron-Queens-Redhat-InfiniBand | Redhat7]]&lt;br /&gt;
* [[Mellanox-Neutron-Queens-Ubuntu-InfiniBand | Ubuntu16.04]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Ethernet(SR-IOV)&lt;br /&gt;
* [[Mellanox-Neutron-Queens-Ethernet |Redhat7|Ubuntu]]&lt;/div&gt;</summary>
		<author><name>Hasanq</name></author>	</entry>

	<entry>
		<id>https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-Queens-Redhat-InfiniBand&amp;diff=162779</id>
		<title>Mellanox-Neutron-Queens-Redhat-InfiniBand</title>
		<link rel="alternate" type="text/html" href="https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-Queens-Redhat-InfiniBand&amp;diff=162779"/>
				<updated>2018-07-15T13:57:09Z</updated>
		
		<summary type="html">&lt;p&gt;Hasanq: Created page with &amp;quot;=Overview=  ==Mellanox Neutron ML2 Driver==   Mellanox ML2 Mechanism Driver implements the ML2 Plugin Mechanism Driver API.   This driver supports Mellanox embedded switch fun...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Overview=&lt;br /&gt;
&lt;br /&gt;
==Mellanox Neutron ML2 Driver==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Mellanox ML2 Mechanism Driver implements the ML2 Plugin Mechanism Driver API. &lt;br /&gt;
&lt;br /&gt;
This driver supports Mellanox embedded switch functionality as part of the InfiniBand HCA. Mellanox ML2 Mechanism Driver provides functional parity with Mellanox Neutron plugin. &lt;br /&gt;
&lt;br /&gt;
Mellanox ML2 Mechanism Driver supports DIRECT (pci passthrough) vnic type. For vnic type configuration API details, please refer to configuration reference guide.&lt;br /&gt;
Hardware vNICs mapped to the guest VMs allow higher performance and advanced features such as RDMA (remote direct memory access). &lt;br /&gt;
&lt;br /&gt;
The driver supports VLAN network type to facilitate virtual networks either on InfiniBand fabrics. &lt;br /&gt;
* Mellanox OpenStack Neutron Agent (L2 Agent) runs on each compute node. &lt;br /&gt;
* Agent should apply VIF connectivity based on mapping between a VIF (VM vNIC) and Embedded Switch port. &lt;br /&gt;
&lt;br /&gt;
===Prerequisites===&lt;br /&gt;
* Red Hat Installation &amp;gt; 7.1&lt;br /&gt;
* Mellanox [http://www.mellanox.com/page/products_dyn?product_family=119  ConnectX®-3/Mellanox ConnectX®-3 PRO] with [http://www.mellanox.com/page/products_dyn?product_family=26&amp;amp;mtag=linux_sw_drivers Mellanox OFED]  the latest 3.X &lt;br /&gt;
* Mellanox [http://www.mellanox.com/page/products_dyn?product_family=201&amp;amp; ConnectX®-4]/[http://www.mellanox.com/page/products_dyn?product_family=214&amp;amp;mtag=connectx_4_lx_en_ic ConnectX®-4Lx]/[http://www.mellanox.com/page/products_dyn?product_family=258&amp;amp;mtag=connectx_5_vpi_card ConnectX®-5] with [http://www.mellanox.com/page/products_dyn?product_family=26&amp;amp;mtag=linux_sw_drivers MLNX_OFED_LINUX] the latest 3.X .&lt;br /&gt;
* A running OpenStack environment installed with the ML2 plugin on top of OpenVswitch or Linux Bridge (RDO Manager or Packstack).&lt;br /&gt;
* [https://community.mellanox.com/docs/DOC-1317 SR-IOV] enabled on all compute nodes.&lt;br /&gt;
* The software package [http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2 iproute2] installed on all Compute nodes&lt;br /&gt;
* [http://www.mellanox.com/page/products_dyn?product_family=100 Mellanox UFM] greater than 5.9.5&lt;br /&gt;
* Add the following repositories on each node&lt;br /&gt;
 yum -y install yum-plugin-priorities&lt;br /&gt;
 cd /etc/yum.repos.d/&lt;br /&gt;
 sudo wget https://trunk.rdoproject.org/centos7-pike/current/delorean.repo&lt;br /&gt;
 yum update -y&lt;br /&gt;
&lt;br /&gt;
=InfiniBand Network=&lt;br /&gt;
The Mellanox Neutron Plugin uses InfiniBand Partitions (PKeys) to separate Networks. &lt;br /&gt;
&lt;br /&gt;
==SM Node==&lt;br /&gt;
&lt;br /&gt;
=== OpenSM Provisioning with SDN Mechanism Driver ===&lt;br /&gt;
&lt;br /&gt;
[https://community.mellanox.com/docs/DOC-2155 SDN Mechanism Driver] allows OpenSM dynamically assign PKs in the IB network.&lt;br /&gt;
&lt;br /&gt;
More details about applying SDN Mechanism Driver with [http://www.mellanox.com/page/products_dyn?product_family=220&amp;amp;mtag=mellanox_neo NEO] can be found [https://community.mellanox.com/docs/DOC-2251 here]&lt;br /&gt;
&lt;br /&gt;
=== Manual OpenSM Configuration ===&lt;br /&gt;
&lt;br /&gt;
All the PKeys should be predefined in the partitions.conf file (/etc/opensm/partitions.conf)&lt;br /&gt;
(Automatic cofiguration is planned in future phase)&lt;br /&gt;
&lt;br /&gt;
====For ConnectX®-3/ConnectX®-3Pro use the following configuration====&lt;br /&gt;
&lt;br /&gt;
Add/Change the following in the partitions.conf file&lt;br /&gt;
   management=0x7fff,ipoib, sl=0, defmember=full : ALL, ALL_SWITCHES=full,SELF=full;&lt;br /&gt;
   vlan1=0x1, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan2=0x2, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan3=0x3, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan4=0x4, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan5=0x5, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan6=0x6, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan7=0x7, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan8=0x8, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan9=0x9, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan10=0xa, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
Change the following in /etc/opensm/opensm.conf:&lt;br /&gt;
   allow_both_pkeys TRUE&lt;br /&gt;
&lt;br /&gt;
====For ConnectX®-4 use the following configuration====&lt;br /&gt;
&lt;br /&gt;
Add/Change the following in the partitions.conf.user_ext&lt;br /&gt;
 vlan1=0x1, ipoib, sl=0, defmember=full: ALL_CAS;&lt;br /&gt;
 #Storage and management vlan should be define as follow&lt;br /&gt;
 vlan2=0x2, ipoib, sl=0, defmember=full: ALL_CAS;&lt;br /&gt;
 vlan3=0x3, ipoib, sl=0, defmember=full: ALL_CAS;&lt;br /&gt;
 #define OpenSM as a member for all OpenStack vlans. If not guest will have link down on “ibdev2netdev” and no connectivity.&lt;br /&gt;
 vlan4=0x4, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan5=0x5, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan6=0x6, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan7=0x7, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan8=0x8, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan9=0x9, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan10=0xa, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 &lt;br /&gt;
Change the following in /etc/opensm/opensm.conf:&lt;br /&gt;
 virt_enabled 2&lt;br /&gt;
 part_enforce off&lt;br /&gt;
 allow_both_pkeys FALSE&lt;br /&gt;
&lt;br /&gt;
4. Restart the OpenSM: &lt;br /&gt;
 # systemctl restart opensmd.service&lt;br /&gt;
&lt;br /&gt;
==Controller Node==&lt;br /&gt;
&lt;br /&gt;
To configure the Controller node:&lt;br /&gt;
&lt;br /&gt;
1. Install Mellanox RPMs: &lt;br /&gt;
 # yum install -y --nogpgcheck python-networking-mlnx &lt;br /&gt;
&lt;br /&gt;
===Neutron Server===&lt;br /&gt;
1. Make sure ML2 is the current Neutron plugin by checking the core_plugin parameter in '''/etc/neutron/neutron.conf''': &lt;br /&gt;
 core_plugin = neutron.plugins.ml2.plugin.Ml2Plugin&lt;br /&gt;
&lt;br /&gt;
2. Make sure '''/etc/neutron/plugin.ini''' is pointing to '''/etc/neutron/plugins/ml2/ml2_conf.ini''' (symbolic link) &lt;br /&gt;
&lt;br /&gt;
3. Modify '''/etc/neutron/plugins/ml2/ml2_conf.ini''' by adding the following: &lt;br /&gt;
 [ml2]&lt;br /&gt;
 type_drivers = vlan,flat&lt;br /&gt;
 tenant_network_types = vlan&lt;br /&gt;
 mechanism_drivers = mlnx_infiniband, openvswitch&lt;br /&gt;
 # or mechanism_drivers = mlnx_infiniband, linuxbridge&lt;br /&gt;
 [ml2_type_vlan]&lt;br /&gt;
 network_vlan_ranges = default:1:10&lt;br /&gt;
&lt;br /&gt;
4. Start (or restart) the Neutron server: &lt;br /&gt;
 # systemctl restart neutron-server.service&lt;br /&gt;
&lt;br /&gt;
===Nova Scheduler===&lt;br /&gt;
Enabling PciPassthroughFilter modify /etc/nova/nova.conf&lt;br /&gt;
  scheduler_available_filters = nova.scheduler.filters.all_filters&lt;br /&gt;
  scheduler_default_filters = RetryFilter, AvailabilityZoneFilter, RamFilter, ComputeFilter, ComputeCapabilitiesFilter, ImagePropertiesFilter, PciPassthroughFilter&lt;br /&gt;
&lt;br /&gt;
== Network Node==&lt;br /&gt;
To configure the Network node:&lt;br /&gt;
&lt;br /&gt;
Prerequisites:&lt;br /&gt;
 E_IPoIB port is configured and up&lt;br /&gt;
&lt;br /&gt;
1. Make sure that eIPoIB module is up and configured in '''/etc/infiniband/openib.conf''': For more information, please refer to eIPoIB configuration in Mellanox OFED User Manual. &lt;br /&gt;
 E_IPOIB_LOAD=yes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Restart openibd: &lt;br /&gt;
 # service openibd restart&lt;br /&gt;
&lt;br /&gt;
3. Modify the network bridge configuration according to the use of OpenVswitch or LinuxBridge&lt;br /&gt;
* 3.1 OpenVswitch '''/etc/neutron/plugins/ml2/openvswitch_agent.ini''' &lt;br /&gt;
 [ovs]&lt;br /&gt;
 bridge_mappings = default:br-&amp;lt;eIPoIB interface&amp;gt;&lt;br /&gt;
* 3.2 LinuxBridge file '''/etc/neutron/plugins/ml2/linuxbridge_agent.ini''':&lt;br /&gt;
 [linux_bridge] &lt;br /&gt;
 physical_interface_mappings = default:&amp;lt;eIPoIB interface&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NOTE: In order to obtain the eIPoIB interface name, run the ethtool tool command (see below) and check that driver name is eth_ipoib: &lt;br /&gt;
 # ethtool -i &amp;lt;eIPoIB_interface&amp;gt; &lt;br /&gt;
 driver: eth_ipoib&lt;br /&gt;
 .....&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4. Restart network bridge: &lt;br /&gt;
* 4.1 OpenVswitch&lt;br /&gt;
 systemctl restart neutron-openvswitch-agent.service&lt;br /&gt;
* 4.2 LinuxBridge (if using linux bridge)&lt;br /&gt;
 # service neutron-linuxbridge-agent restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NOTE: For DHCP support, the Network node should use the Mellanox Dnsmasq driver as the DHCP driver. &lt;br /&gt;
&lt;br /&gt;
===DHCP Server (Usually part of the Network node)===&lt;br /&gt;
&lt;br /&gt;
1. Modify '''/etc/neutron/dhcp_agent.ini''' as follows and according to OVS or Linuxbridge: &lt;br /&gt;
 dhcp_driver = networking_mlnx.dhcp.mlnx_dhcp.MlnxDnsmasq&lt;br /&gt;
 dhcp_broadcast_reply = True&lt;br /&gt;
&lt;br /&gt;
 1.1 For OVS&lt;br /&gt;
     interface_driver =  neutron.agent.linux.interface.OVSInterfaceDriver&lt;br /&gt;
 1.2 For Linux Bridge&lt;br /&gt;
      interface_driver =  neutron.agent.linux.interface.BridgeInterfaceDriver&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Restart DHCP server: &lt;br /&gt;
 # systemctl restart neutron-dhcp-agent.service&lt;br /&gt;
&lt;br /&gt;
==Compute Nodes==&lt;br /&gt;
&lt;br /&gt;
To configure the Compute Node: &lt;br /&gt;
&lt;br /&gt;
1. Install Mellanox RPMs: &lt;br /&gt;
 # yum install --nogpgcheck -y python-networking-mlnx&lt;br /&gt;
&lt;br /&gt;
2. Create the file '''/etc/modprobe.d/mlx4_ib.conf''' and add the following:  &lt;br /&gt;
 options mlx4_ib sm_guid_assign=0&lt;br /&gt;
&lt;br /&gt;
3. Restart the driver: &lt;br /&gt;
 # /etc/init.d/openibd restart&lt;br /&gt;
&lt;br /&gt;
===Nova Compute===&lt;br /&gt;
Nova-compute needs to know which PCI devices are allowed to be passed through to the VMs. &lt;br /&gt;
Also for SRIOV PCI devices it needs to know to which physical network the VF belongs.&lt;br /&gt;
This is done through the pci_passthrough_whitelist parameter under the default section in '''/etc/nova/nova.conf'''.&lt;br /&gt;
For example if we want to whitelist and tag the VFs by their PCI address we would use the following setting:&lt;br /&gt;
[pci]&lt;br /&gt;
passthrough_whitelist = {&amp;quot;address&amp;quot;:&amp;quot;*:0a:00.*&amp;quot;,&amp;quot;physical_network&amp;quot;:&amp;quot;default&amp;quot;}&lt;br /&gt;
This associates any VF with address that includes ':0a:00.' in its address to the physical network default.&lt;br /&gt;
&lt;br /&gt;
1. add  pci passthrough_whitelist to '''/etc/nova/nova.conf'''&lt;br /&gt;
&lt;br /&gt;
2. Restart Nova:&lt;br /&gt;
 # systemctl restart openstack-nova-compute&lt;br /&gt;
&lt;br /&gt;
===Neutron MLNX Agent===&lt;br /&gt;
1. Run: &lt;br /&gt;
 # systemctl enable neutron-mlnx-agent.service&lt;br /&gt;
 # systemctl start neutron-mlnx-agent.service&lt;br /&gt;
&lt;br /&gt;
2. Run: &lt;br /&gt;
 # systemctl daemon-reload&lt;br /&gt;
&lt;br /&gt;
3. In the file '''/etc/neutron/plugins/mlnx/mlnx_conf.ini''', the parameters tenant_network_type , and network_vlan_ranges should be configured as the controllers: &lt;br /&gt;
 physical_interface_mappings = default:&amp;lt;ib_interface&amp;gt;(for example default:ib0)&lt;br /&gt;
&lt;br /&gt;
4. Modify the file '''/etc/neutron/plugins/ml2/eswitchd.conf''' as follows:&lt;br /&gt;
 fabrics = default:&amp;lt;ib_interface&amp;gt; (for example default:ib0)&lt;br /&gt;
&lt;br /&gt;
5. Start eSwitchd: &lt;br /&gt;
 # systemctl enable eswitchd.service&lt;br /&gt;
 # systemctl start  eswitchd.service&lt;br /&gt;
&lt;br /&gt;
6. Start the Neutron agent: &lt;br /&gt;
 # systemctl restart neutron-mlnx-agent&lt;br /&gt;
&lt;br /&gt;
==Known issues and Troubleshooting==&lt;br /&gt;
For known issues and troubleshooting options refer to [https://community.mellanox.com/docs/DOC-1127 Mellanox OpenStack Troubleshooting]&lt;br /&gt;
&lt;br /&gt;
Issue: Missing zmq package on all nodes (Controller/Compute)&lt;br /&gt;
Solution:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 # wget https://bootstrap.pypa.io/get-pip.py&lt;br /&gt;
 # sudo python get-pip.py&lt;br /&gt;
 # sudo pip install pyzmq&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hasanq</name></author>	</entry>

	<entry>
		<id>https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-Queens-Ubuntu-InfiniBand&amp;diff=162778</id>
		<title>Mellanox-Neutron-Queens-Ubuntu-InfiniBand</title>
		<link rel="alternate" type="text/html" href="https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-Queens-Ubuntu-InfiniBand&amp;diff=162778"/>
				<updated>2018-07-15T13:53:46Z</updated>
		
		<summary type="html">&lt;p&gt;Hasanq: Created page with &amp;quot;=Overview=  ==Mellanox Neutron ML2 Driver==   Mellanox ML2 Mechanism Driver implements the ML2 Plugin Mechanism Driver API.   This driver supports Mellanox embedded switch fun...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Overview=&lt;br /&gt;
&lt;br /&gt;
==Mellanox Neutron ML2 Driver==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Mellanox ML2 Mechanism Driver implements the ML2 Plugin Mechanism Driver API. &lt;br /&gt;
&lt;br /&gt;
This driver supports Mellanox embedded switch functionality as part of the InfiniBand HCA. Mellanox ML2 Mechanism Driver provides functional parity with Mellanox Neutron plugin. &lt;br /&gt;
&lt;br /&gt;
Mellanox ML2 Mechanism Driver supports DIRECT (pci passthrough) vnic type. For vnic type configuration API details, please refer to configuration reference guide.&lt;br /&gt;
Hardware vNICs mapped to the guest VMs allow higher performance and advanced features such as RDMA (remote direct memory access). &lt;br /&gt;
&lt;br /&gt;
The driver supports VLAN network type to facilitate virtual networks either on InfiniBand fabrics. &lt;br /&gt;
* Mellanox OpenStack Neutron Agent (L2 Agent) runs on each compute node. &lt;br /&gt;
* Agent should apply VIF connectivity based on mapping between a VIF (VM vNIC) and Embedded Switch port. &lt;br /&gt;
&lt;br /&gt;
===Prerequisites===&lt;br /&gt;
* Red Hat Installation &amp;gt; 7.1&lt;br /&gt;
* Mellanox [http://www.mellanox.com/page/products_dyn?product_family=119  ConnectX®-3/Mellanox ConnectX®-3 PRO] with [http://www.mellanox.com/page/products_dyn?product_family=26&amp;amp;mtag=linux_sw_drivers Mellanox OFED]  the latest 3.X &lt;br /&gt;
* Mellanox [http://www.mellanox.com/page/products_dyn?product_family=201&amp;amp; ConnectX®-4]/[http://www.mellanox.com/page/products_dyn?product_family=214&amp;amp;mtag=connectx_4_lx_en_ic ConnectX®-4Lx]/[http://www.mellanox.com/page/products_dyn?product_family=258&amp;amp;mtag=connectx_5_vpi_card ConnectX®-5] with [http://www.mellanox.com/page/products_dyn?product_family=26&amp;amp;mtag=linux_sw_drivers MLNX_OFED_LINUX] the latest 3.X .&lt;br /&gt;
* A running OpenStack environment installed with the ML2 plugin on top of OpenVswitch or Linux Bridge (RDO Manager or Packstack).&lt;br /&gt;
* [https://community.mellanox.com/docs/DOC-1317 SR-IOV] enabled on all compute nodes.&lt;br /&gt;
* The software package [http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2 iproute2] installed on all Compute nodes&lt;br /&gt;
* [http://www.mellanox.com/page/products_dyn?product_family=100 Mellanox UFM] greater than 5.9.5&lt;br /&gt;
* Add the following repositories on each node&lt;br /&gt;
 yum -y install yum-plugin-priorities&lt;br /&gt;
 cd /etc/yum.repos.d/&lt;br /&gt;
 sudo wget https://trunk.rdoproject.org/centos7-pike/current/delorean.repo&lt;br /&gt;
 yum update -y&lt;br /&gt;
&lt;br /&gt;
=InfiniBand Network=&lt;br /&gt;
The Mellanox Neutron Plugin uses InfiniBand Partitions (PKeys) to separate Networks. &lt;br /&gt;
&lt;br /&gt;
==SM Node==&lt;br /&gt;
&lt;br /&gt;
=== OpenSM Provisioning with SDN Mechanism Driver ===&lt;br /&gt;
&lt;br /&gt;
[https://community.mellanox.com/docs/DOC-2155 SDN Mechanism Driver] allows OpenSM dynamically assign PKs in the IB network.&lt;br /&gt;
&lt;br /&gt;
More details about applying SDN Mechanism Driver with [http://www.mellanox.com/page/products_dyn?product_family=220&amp;amp;mtag=mellanox_neo NEO] can be found [https://community.mellanox.com/docs/DOC-2251 here]&lt;br /&gt;
&lt;br /&gt;
=== Manual OpenSM Configuration ===&lt;br /&gt;
&lt;br /&gt;
All the PKeys should be predefined in the partitions.conf file (/etc/opensm/partitions.conf)&lt;br /&gt;
(Automatic cofiguration is planned in future phase)&lt;br /&gt;
&lt;br /&gt;
====For ConnectX®-3/ConnectX®-3Pro use the following configuration====&lt;br /&gt;
&lt;br /&gt;
Add/Change the following in the partitions.conf file&lt;br /&gt;
   management=0x7fff,ipoib, sl=0, defmember=full : ALL, ALL_SWITCHES=full,SELF=full;&lt;br /&gt;
   vlan1=0x1, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan2=0x2, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan3=0x3, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan4=0x4, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan5=0x5, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan6=0x6, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan7=0x7, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan8=0x8, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan9=0x9, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
   vlan10=0xa, ipoib, sl=0, defmember=full : ALL;&lt;br /&gt;
Change the following in /etc/opensm/opensm.conf:&lt;br /&gt;
   allow_both_pkeys TRUE&lt;br /&gt;
&lt;br /&gt;
====For ConnectX®-4 use the following configuration====&lt;br /&gt;
&lt;br /&gt;
Add/Change the following in the partitions.conf.user_ext&lt;br /&gt;
 vlan1=0x1, ipoib, sl=0, defmember=full: ALL_CAS;&lt;br /&gt;
 #Storage and management vlan should be define as follow&lt;br /&gt;
 vlan2=0x2, ipoib, sl=0, defmember=full: ALL_CAS;&lt;br /&gt;
 vlan3=0x3, ipoib, sl=0, defmember=full: ALL_CAS;&lt;br /&gt;
 #define OpenSM as a member for all OpenStack vlans. If not guest will have link down on “ibdev2netdev” and no connectivity.&lt;br /&gt;
 vlan4=0x4, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan5=0x5, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan6=0x6, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan7=0x7, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan8=0x8, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan9=0x9, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 vlan10=0xa, ipoib, sl=0, defmember=full: SELF;&lt;br /&gt;
 &lt;br /&gt;
Change the following in /etc/opensm/opensm.conf:&lt;br /&gt;
 virt_enabled 2&lt;br /&gt;
 part_enforce off&lt;br /&gt;
 allow_both_pkeys FALSE&lt;br /&gt;
&lt;br /&gt;
4. Restart the OpenSM: &lt;br /&gt;
 # systemctl restart opensmd.service&lt;br /&gt;
&lt;br /&gt;
==Controller Node==&lt;br /&gt;
&lt;br /&gt;
To configure the Controller node:&lt;br /&gt;
&lt;br /&gt;
1. Install Mellanox RPMs: &lt;br /&gt;
 # yum install -y --nogpgcheck python-networking-mlnx &lt;br /&gt;
&lt;br /&gt;
===Neutron Server===&lt;br /&gt;
1. Make sure ML2 is the current Neutron plugin by checking the core_plugin parameter in '''/etc/neutron/neutron.conf''': &lt;br /&gt;
 core_plugin = neutron.plugins.ml2.plugin.Ml2Plugin&lt;br /&gt;
&lt;br /&gt;
2. Make sure '''/etc/neutron/plugin.ini''' is pointing to '''/etc/neutron/plugins/ml2/ml2_conf.ini''' (symbolic link) &lt;br /&gt;
&lt;br /&gt;
3. Modify '''/etc/neutron/plugins/ml2/ml2_conf.ini''' by adding the following: &lt;br /&gt;
 [ml2]&lt;br /&gt;
 type_drivers = vlan,flat&lt;br /&gt;
 tenant_network_types = vlan&lt;br /&gt;
 mechanism_drivers = mlnx_infiniband, openvswitch&lt;br /&gt;
 # or mechanism_drivers = mlnx_infiniband, linuxbridge&lt;br /&gt;
 [ml2_type_vlan]&lt;br /&gt;
 network_vlan_ranges = default:1:10&lt;br /&gt;
&lt;br /&gt;
4. Start (or restart) the Neutron server: &lt;br /&gt;
 # systemctl restart neutron-server.service&lt;br /&gt;
&lt;br /&gt;
===Nova Scheduler===&lt;br /&gt;
Enabling PciPassthroughFilter modify /etc/nova/nova.conf&lt;br /&gt;
  scheduler_available_filters = nova.scheduler.filters.all_filters&lt;br /&gt;
  scheduler_default_filters = RetryFilter, AvailabilityZoneFilter, RamFilter, ComputeFilter, ComputeCapabilitiesFilter, ImagePropertiesFilter, PciPassthroughFilter&lt;br /&gt;
&lt;br /&gt;
== Network Node==&lt;br /&gt;
To configure the Network node:&lt;br /&gt;
&lt;br /&gt;
Prerequisites:&lt;br /&gt;
 E_IPoIB port is configured and up&lt;br /&gt;
&lt;br /&gt;
1. Make sure that eIPoIB module is up and configured in '''/etc/infiniband/openib.conf''': For more information, please refer to eIPoIB configuration in Mellanox OFED User Manual. &lt;br /&gt;
 E_IPOIB_LOAD=yes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Restart openibd: &lt;br /&gt;
 # service openibd restart&lt;br /&gt;
&lt;br /&gt;
3. Modify the network bridge configuration according to the use of OpenVswitch or LinuxBridge&lt;br /&gt;
* 3.1 OpenVswitch '''/etc/neutron/plugins/ml2/openvswitch_agent.ini''' &lt;br /&gt;
 [ovs]&lt;br /&gt;
 bridge_mappings = default:br-&amp;lt;eIPoIB interface&amp;gt;&lt;br /&gt;
* 3.2 LinuxBridge file '''/etc/neutron/plugins/ml2/linuxbridge_agent.ini''':&lt;br /&gt;
 [linux_bridge] &lt;br /&gt;
 physical_interface_mappings = default:&amp;lt;eIPoIB interface&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NOTE: In order to obtain the eIPoIB interface name, run the ethtool tool command (see below) and check that driver name is eth_ipoib: &lt;br /&gt;
 # ethtool -i &amp;lt;eIPoIB_interface&amp;gt; &lt;br /&gt;
 driver: eth_ipoib&lt;br /&gt;
 .....&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4. Restart network bridge: &lt;br /&gt;
* 4.1 OpenVswitch&lt;br /&gt;
 systemctl restart neutron-openvswitch-agent.service&lt;br /&gt;
* 4.2 LinuxBridge (if using linux bridge)&lt;br /&gt;
 # service neutron-linuxbridge-agent restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NOTE: For DHCP support, the Network node should use the Mellanox Dnsmasq driver as the DHCP driver. &lt;br /&gt;
&lt;br /&gt;
===DHCP Server (Usually part of the Network node)===&lt;br /&gt;
&lt;br /&gt;
1. Modify '''/etc/neutron/dhcp_agent.ini''' as follows and according to OVS or Linuxbridge: &lt;br /&gt;
 dhcp_driver = networking_mlnx.dhcp.mlnx_dhcp.MlnxDnsmasq&lt;br /&gt;
 dhcp_broadcast_reply = True&lt;br /&gt;
&lt;br /&gt;
 1.1 For OVS&lt;br /&gt;
     interface_driver =  neutron.agent.linux.interface.OVSInterfaceDriver&lt;br /&gt;
 1.2 For Linux Bridge&lt;br /&gt;
      interface_driver =  neutron.agent.linux.interface.BridgeInterfaceDriver&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Restart DHCP server: &lt;br /&gt;
 # systemctl restart neutron-dhcp-agent.service&lt;br /&gt;
&lt;br /&gt;
==Compute Nodes==&lt;br /&gt;
&lt;br /&gt;
To configure the Compute Node: &lt;br /&gt;
&lt;br /&gt;
1. Install Mellanox RPMs: &lt;br /&gt;
 # yum install --nogpgcheck -y python-networking-mlnx&lt;br /&gt;
&lt;br /&gt;
2. Create the file '''/etc/modprobe.d/mlx4_ib.conf''' and add the following:  &lt;br /&gt;
 options mlx4_ib sm_guid_assign=0&lt;br /&gt;
&lt;br /&gt;
3. Restart the driver: &lt;br /&gt;
 # /etc/init.d/openibd restart&lt;br /&gt;
&lt;br /&gt;
===Nova Compute===&lt;br /&gt;
Nova-compute needs to know which PCI devices are allowed to be passed through to the VMs. &lt;br /&gt;
Also for SRIOV PCI devices it needs to know to which physical network the VF belongs.&lt;br /&gt;
This is done through the pci_passthrough_whitelist parameter under the default section in '''/etc/nova/nova.conf'''.&lt;br /&gt;
For example if we want to whitelist and tag the VFs by their PCI address we would use the following setting:&lt;br /&gt;
[pci]&lt;br /&gt;
passthrough_whitelist = {&amp;quot;address&amp;quot;:&amp;quot;*:0a:00.*&amp;quot;,&amp;quot;physical_network&amp;quot;:&amp;quot;default&amp;quot;}&lt;br /&gt;
This associates any VF with address that includes ':0a:00.' in its address to the physical network default.&lt;br /&gt;
&lt;br /&gt;
1. add  pci passthrough_whitelist to '''/etc/nova/nova.conf'''&lt;br /&gt;
&lt;br /&gt;
2. Restart Nova:&lt;br /&gt;
 # systemctl restart openstack-nova-compute&lt;br /&gt;
&lt;br /&gt;
===Neutron MLNX Agent===&lt;br /&gt;
1. Run: &lt;br /&gt;
 # systemctl enable neutron-mlnx-agent.service&lt;br /&gt;
 # systemctl start neutron-mlnx-agent.service&lt;br /&gt;
&lt;br /&gt;
2. Run: &lt;br /&gt;
 # systemctl daemon-reload&lt;br /&gt;
&lt;br /&gt;
3. In the file '''/etc/neutron/plugins/mlnx/mlnx_conf.ini''', the parameters tenant_network_type , and network_vlan_ranges should be configured as the controllers: &lt;br /&gt;
 physical_interface_mappings = default:&amp;lt;ib_interface&amp;gt;(for example default:ib0)&lt;br /&gt;
&lt;br /&gt;
4. Modify the file '''/etc/neutron/plugins/ml2/eswitchd.conf''' as follows:&lt;br /&gt;
 fabrics = default:&amp;lt;ib_interface&amp;gt; (for example default:ib0)&lt;br /&gt;
&lt;br /&gt;
5. Start eSwitchd: &lt;br /&gt;
 # systemctl enable eswitchd.service&lt;br /&gt;
 # systemctl start  eswitchd.service&lt;br /&gt;
&lt;br /&gt;
6. Start the Neutron agent: &lt;br /&gt;
 # systemctl restart neutron-mlnx-agent&lt;br /&gt;
&lt;br /&gt;
==Known issues and Troubleshooting==&lt;br /&gt;
For known issues and troubleshooting options refer to [https://community.mellanox.com/docs/DOC-1127 Mellanox OpenStack Troubleshooting]&lt;br /&gt;
&lt;br /&gt;
Issue: Missing zmq package on all nodes (Controller/Compute)&lt;br /&gt;
Solution:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 # wget https://bootstrap.pypa.io/get-pip.py&lt;br /&gt;
 # sudo python get-pip.py&lt;br /&gt;
 # sudo pip install pyzmq&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hasanq</name></author>	</entry>

	<entry>
		<id>https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-ML2-Queens&amp;diff=162777</id>
		<title>Mellanox-Neutron-ML2-Queens</title>
		<link rel="alternate" type="text/html" href="https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-ML2-Queens&amp;diff=162777"/>
				<updated>2018-07-15T13:51:23Z</updated>
		
		<summary type="html">&lt;p&gt;Hasanq: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Mellanox ML2 Mechanism Driver implements the ML2 Plugin Mechanism Driver API. &lt;br /&gt;
&lt;br /&gt;
This driver supports Mellanox embedded switch functionality as part of the VPI (Ethernet/InfiniBand) HCA.&lt;br /&gt;
Mellanox ML2 Mechanism Driver provides functional parity with Mellanox Neutron plugin.&lt;br /&gt;
&lt;br /&gt;
Mellanox ML2 Mechanism Driver supports DIRECT (pci passthrough) vnic type. For vnic type configuration API details, please refer to configuration reference guide.&lt;br /&gt;
Hardware vNICs mapped to the guest VMs allow higher performance and advanced features such as RDMA (remote direct memory access). &lt;br /&gt;
&lt;br /&gt;
The driver supports VLAN network type to facilitate virtual networks either on Ethernet or InfiniBand fabrics. &lt;br /&gt;
* Mellanox OpenStack Neutron Agent (L2 Agent) runs on each compute node. &lt;br /&gt;
* Agent should apply VIF connectivity based on mapping between a VIF (VM vNIC) and Embedded Switch port.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Prerequisites'''&lt;br /&gt;
* Mellanox [http://www.mellanox.com/page/products_dyn?product_family=119  ConnectX®-3/Mellanox ConnectX®-3 PRO] with [http://www.mellanox.com/page/products_dyn?product_family=26&amp;amp;mtag=linux_sw_drivers Mellanox OFED] 2.4 or greater&lt;br /&gt;
* Mellanox [http://www.mellanox.com/page/products_dyn?product_family=201&amp;amp; ConnectX®-4]/[http://www.mellanox.com/page/products_dyn?product_family=214&amp;amp;mtag=connectx_4_lx_en_ic ConnectX®-4Lx]/[http://www.mellanox.com/page/products_dyn?product_family=258&amp;amp;mtag=connectx_5_vpi_card ConnectX®-5] with [http://www.mellanox.com/page/products_dyn?product_family=26&amp;amp;mtag=linux_sw_drivers MLNX_OFED_LINUX] 3.1-1.5.7 or greater.&lt;br /&gt;
&lt;br /&gt;
For '''Queens''' release Information refer to the relevant OS as follows:&lt;br /&gt;
&lt;br /&gt;
Infiniband&lt;br /&gt;
* [[Mellanox-Neutron-Queens-Redhat-InfiniBand | Redhat7]]&lt;br /&gt;
* [[Mellanox-Neutron-Queens-Ubuntu-InfiniBand | Ubuntu16.04]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Ethernet(SR-IOV)&lt;br /&gt;
* [[Mellanox-Neutron-Queens-Ethernet |Redhat7|Ubuntu]]&lt;/div&gt;</summary>
		<author><name>Hasanq</name></author>	</entry>

	<entry>
		<id>https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-Queens-Ethernet&amp;diff=162776</id>
		<title>Mellanox-Neutron-Queens-Ethernet</title>
		<link rel="alternate" type="text/html" href="https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-Queens-Ethernet&amp;diff=162776"/>
				<updated>2018-07-15T13:47:58Z</updated>
		
		<summary type="html">&lt;p&gt;Hasanq: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==Configuration==&lt;br /&gt;
[https://wiki.openstack.org/wiki/SR-IOV-Passthrough-For-Networking Configure SR-IOV]&lt;br /&gt;
&lt;br /&gt;
==SDN Mechanism Driver==&lt;br /&gt;
[https://community.mellanox.com/docs/DOC-2155 SDN Mechanism Driver] allows NEO to dynamically configure VLANs on the Mellanox Switches.&lt;br /&gt;
Further reading:&lt;br /&gt;
* [http://www.mellanox.com/page/products_dyn?product_family=220&amp;amp;mtag=mellanox_neo NEO]&lt;br /&gt;
* [http://www.mellanox.com/page/ethernet_switch_overview Mellanox Switches]&lt;br /&gt;
* [https://community.mellanox.com/docs/DOC-2251 SDN Mechanism Driver]&lt;br /&gt;
&lt;br /&gt;
==Ceilometer==&lt;br /&gt;
The Mellanox Ceilometer SR-IOV module allows the OpenStack Ceilometer to collect measurements of SR-IOV counters.&lt;br /&gt;
&lt;br /&gt;
More details about applying Mellanox Ceilometer module can be found [https://community.mellanox.com/docs/DOC-2145 here]&lt;/div&gt;</summary>
		<author><name>Hasanq</name></author>	</entry>

	<entry>
		<id>https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-Queens-Ethernet&amp;diff=162775</id>
		<title>Mellanox-Neutron-Queens-Ethernet</title>
		<link rel="alternate" type="text/html" href="https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-Queens-Ethernet&amp;diff=162775"/>
				<updated>2018-07-15T13:47:25Z</updated>
		
		<summary type="html">&lt;p&gt;Hasanq: Created page with &amp;quot;==Configuration== [https://wiki.openstack.org/wiki/SR-IOV-Passthrough-For-Networking Configure SR-IOV]&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Configuration==&lt;br /&gt;
[https://wiki.openstack.org/wiki/SR-IOV-Passthrough-For-Networking Configure SR-IOV]&lt;/div&gt;</summary>
		<author><name>Hasanq</name></author>	</entry>

	<entry>
		<id>https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-ML2-Queens&amp;diff=162774</id>
		<title>Mellanox-Neutron-ML2-Queens</title>
		<link rel="alternate" type="text/html" href="https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-ML2-Queens&amp;diff=162774"/>
				<updated>2018-07-15T13:32:06Z</updated>
		
		<summary type="html">&lt;p&gt;Hasanq: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Mellanox ML2 Mechanism Driver implements the ML2 Plugin Mechanism Driver API. &lt;br /&gt;
&lt;br /&gt;
This driver supports Mellanox embedded switch functionality as part of the VPI (Ethernet/InfiniBand) HCA.&lt;br /&gt;
Mellanox ML2 Mechanism Driver provides functional parity with Mellanox Neutron plugin.&lt;br /&gt;
&lt;br /&gt;
Mellanox ML2 Mechanism Driver supports DIRECT (pci passthrough) vnic type. For vnic type configuration API details, please refer to configuration reference guide.&lt;br /&gt;
Hardware vNICs mapped to the guest VMs allow higher performance and advanced features such as RDMA (remote direct memory access). &lt;br /&gt;
&lt;br /&gt;
The driver supports VLAN network type to facilitate virtual networks either on Ethernet or InfiniBand fabrics. &lt;br /&gt;
* Mellanox OpenStack Neutron Agent (L2 Agent) runs on each compute node. &lt;br /&gt;
* Agent should apply VIF connectivity based on mapping between a VIF (VM vNIC) and Embedded Switch port.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Prerequisites'''&lt;br /&gt;
* Mellanox [http://www.mellanox.com/page/products_dyn?product_family=119  ConnectX®-3/Mellanox ConnectX®-3 PRO] with [http://www.mellanox.com/page/products_dyn?product_family=26&amp;amp;mtag=linux_sw_drivers Mellanox OFED] 2.4 or greater&lt;br /&gt;
* Mellanox [http://www.mellanox.com/page/products_dyn?product_family=201&amp;amp; ConnectX®-4]/[http://www.mellanox.com/page/products_dyn?product_family=214&amp;amp;mtag=connectx_4_lx_en_ic ConnectX®-4Lx]/[http://www.mellanox.com/page/products_dyn?product_family=258&amp;amp;mtag=connectx_5_vpi_card ConnectX®-5] with [http://www.mellanox.com/page/products_dyn?product_family=26&amp;amp;mtag=linux_sw_drivers MLNX_OFED_LINUX] 3.1-1.5.7 or greater.&lt;/div&gt;</summary>
		<author><name>Hasanq</name></author>	</entry>

	<entry>
		<id>https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron&amp;diff=162773</id>
		<title>Mellanox-Neutron</title>
		<link rel="alternate" type="text/html" href="https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron&amp;diff=162773"/>
				<updated>2018-07-15T13:30:55Z</updated>
		
		<summary type="html">&lt;p&gt;Hasanq: /* Mellanox Neutron Plugin */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
= Mellanox Neutron Plugin  =&lt;br /&gt;
Mellanox supports the OpenStack Neutron releases with open source networking components. It delivers higher compute and storage performance and additional functionality, such as NIC based switching to provide better security and isolation for virtual cloud environments.&lt;br /&gt;
&lt;br /&gt;
* [[Mellanox-Neutron-ML2-Queens|Mellanox-Queens]] &lt;br /&gt;
* [[Mellanox-Neutron-ML2-Pike|Mellanox-Pike]] &lt;br /&gt;
* [[Mellanox-Neutron-ML2-Ocata|Mellanox-Ocata]] &lt;br /&gt;
* [[Mellanox-Neutron-ML2-Newton|Mellanox-Newton]] &lt;br /&gt;
* [[Mellanox-Neutron-ML2-Mitaka|Mellanox-Mitaka]]&lt;br /&gt;
* [[Mellanox-Neutron-ML2-Liberty|Mellanox-Liberty]]&lt;br /&gt;
* [[Mellanox-Neutron-ML2-Kilo|Mellanox-Kilo]]&lt;br /&gt;
* [[Mellanox-Neutron-ML2-Juno|Mellanox-Juno]]&lt;br /&gt;
* [[Mellanox-Neutron-ML2-Icehouse|Mellanox-Icehouse]]&lt;br /&gt;
* [[Mellanox-Neutron-Havana-Ubuntu|Mellanox-Havana-Ubuntu]] / [[Mellanox-Neutron-Havana-Redhat|Mellanox-Havana-RedHat]] &lt;br /&gt;
* [[Mellanox-Neutron-Grizzly|Mellanox-Grizzly]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* [[Mellanox-packages-versioning|Mellanox packages versions]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= References =&lt;br /&gt;
1. [http://www.mellanox.com/openstack/ OpenStack solution page at Mellanox site]&lt;br /&gt;
&lt;br /&gt;
2. [https://github.com/openstack/networking-mlnx Mellanox ML2 driver and associated tools source repository]&lt;br /&gt;
&lt;br /&gt;
3. [https://github.com/mellanox-openstack Old/previous Mellanox source repository]&lt;br /&gt;
&lt;br /&gt;
4. [http://www.mellanox.com/page/products_dyn?product_family=26 Mellanox OFED web page]&lt;br /&gt;
&lt;br /&gt;
5. [http://community.mellanox.com/community/develop/cloud-developers Mellanox Cloud Developers Community]&lt;br /&gt;
&lt;br /&gt;
For more details, please refer your question to  [mailto:openstack@mellanox.com openstack@mellanox.com]&lt;br /&gt;
&lt;br /&gt;
[[Category: Neutron]]&lt;/div&gt;</summary>
		<author><name>Hasanq</name></author>	</entry>

	<entry>
		<id>https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron&amp;diff=162772</id>
		<title>Mellanox-Neutron</title>
		<link rel="alternate" type="text/html" href="https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron&amp;diff=162772"/>
				<updated>2018-07-15T13:30:01Z</updated>
		
		<summary type="html">&lt;p&gt;Hasanq: /* Mellanox Neutron Plugin */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
= Mellanox Neutron Plugin  =&lt;br /&gt;
Mellanox supports the OpenStack Neutron releases with open source networking components. It delivers higher compute and storage performance and additional functionality, such as NIC based switching to provide better security and isolation for virtual cloud environments.&lt;br /&gt;
&lt;br /&gt;
For releases` Information refer to the relevant pages as follows:&lt;br /&gt;
* [[Mellanox-Neutron-ML2-Queens|Mellanox-Queens]] &lt;br /&gt;
* [[Mellanox-Neutron-ML2-Pike|Mellanox-Pike]] &lt;br /&gt;
* [[Mellanox-Neutron-ML2-Ocata|Mellanox-Ocata]] &lt;br /&gt;
* [[Mellanox-Neutron-ML2-Newton|Mellanox-Newton]] &lt;br /&gt;
* [[Mellanox-Neutron-ML2-Mitaka|Mellanox-Mitaka]]&lt;br /&gt;
* [[Mellanox-Neutron-ML2-Liberty|Mellanox-Liberty]]&lt;br /&gt;
* [[Mellanox-Neutron-ML2-Kilo|Mellanox-Kilo]]&lt;br /&gt;
* [[Mellanox-Neutron-ML2-Juno|Mellanox-Juno]]&lt;br /&gt;
* [[Mellanox-Neutron-ML2-Icehouse|Mellanox-Icehouse]]&lt;br /&gt;
* [[Mellanox-Neutron-Havana-Ubuntu|Mellanox-Havana-Ubuntu]] / [[Mellanox-Neutron-Havana-Redhat|Mellanox-Havana-RedHat]] &lt;br /&gt;
* [[Mellanox-Neutron-Grizzly|Mellanox-Grizzly]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* [[Mellanox-packages-versioning|Mellanox packages versions]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= References =&lt;br /&gt;
1. [http://www.mellanox.com/openstack/ OpenStack solution page at Mellanox site]&lt;br /&gt;
&lt;br /&gt;
2. [https://github.com/openstack/networking-mlnx Mellanox ML2 driver and associated tools source repository]&lt;br /&gt;
&lt;br /&gt;
3. [https://github.com/mellanox-openstack Old/previous Mellanox source repository]&lt;br /&gt;
&lt;br /&gt;
4. [http://www.mellanox.com/page/products_dyn?product_family=26 Mellanox OFED web page]&lt;br /&gt;
&lt;br /&gt;
5. [http://community.mellanox.com/community/develop/cloud-developers Mellanox Cloud Developers Community]&lt;br /&gt;
&lt;br /&gt;
For more details, please refer your question to  [mailto:openstack@mellanox.com openstack@mellanox.com]&lt;br /&gt;
&lt;br /&gt;
[[Category: Neutron]]&lt;/div&gt;</summary>
		<author><name>Hasanq</name></author>	</entry>

	<entry>
		<id>https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-ML2-Queens&amp;diff=162771</id>
		<title>Mellanox-Neutron-ML2-Queens</title>
		<link rel="alternate" type="text/html" href="https://wiki.openstack.org/w/index.php?title=Mellanox-Neutron-ML2-Queens&amp;diff=162771"/>
				<updated>2018-07-15T13:29:01Z</updated>
		
		<summary type="html">&lt;p&gt;Hasanq: Created page with &amp;quot;Mellanox ML2 Mechanism Driver implements the ML2 Plugin Mechanism Driver API.   This driver supports Mellanox embedded switch functionality as part of the VPI (Ethernet/Infini...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Mellanox ML2 Mechanism Driver implements the ML2 Plugin Mechanism Driver API. &lt;br /&gt;
&lt;br /&gt;
This driver supports Mellanox embedded switch functionality as part of the VPI (Ethernet/InfiniBand) HCA.&lt;br /&gt;
Mellanox ML2 Mechanism Driver provides functional parity with Mellanox Neutron plugin.&lt;br /&gt;
&lt;br /&gt;
Mellanox ML2 Mechanism Driver supports DIRECT (pci passthrough) vnic type. For vnic type configuration API details, please refer to configuration reference guide.&lt;br /&gt;
Hardware vNICs mapped to the guest VMs allow higher performance and advanced features such as RDMA (remote direct memory access). &lt;br /&gt;
&lt;br /&gt;
The driver supports VLAN network type to facilitate virtual networks either on Ethernet or InfiniBand fabrics. &lt;br /&gt;
* Mellanox OpenStack Neutron Agent (L2 Agent) runs on each compute node. &lt;br /&gt;
* Agent should apply VIF connectivity based on mapping between a VIF (VM vNIC) and Embedded Switch port.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Prerequisites'''&lt;br /&gt;
* Mellanox [http://www.mellanox.com/page/products_dyn?product_family=119  ConnectX®-3/Mellanox ConnectX®-3 PRO] with [http://www.mellanox.com/page/products_dyn?product_family=26&amp;amp;mtag=linux_sw_drivers Mellanox OFED] 2.4 or greater&lt;br /&gt;
* Mellanox [http://www.mellanox.com/page/products_dyn?product_family=201&amp;amp; ConnectX®-4]/[http://www.mellanox.com/page/products_dyn?product_family=214&amp;amp;mtag=connectx_4_lx_en_ic ConnectX®-4Lx]/[http://www.mellanox.com/page/products_dyn?product_family=258&amp;amp;mtag=connectx_5_vpi_card ConnectX®-5] with [http://www.mellanox.com/page/products_dyn?product_family=26&amp;amp;mtag=linux_sw_drivers MLNX_OFED_LINUX] 3.1-1.5.7 or greater.&lt;br /&gt;
* Mellanox [http://www.mellanox.com/page/products_dyn?product_family=201&amp;amp; ConnectX®-5]/[http://www.mellanox.com/page/products_dyn?product_family=214&amp;amp;mtag=connectx_4_lx_en_ic ConnectX®-4Lx]/[http://www.mellanox.com/page/products_dyn?product_family=258&amp;amp;mtag=connectx_5_vpi_card ConnectX®-5] with [http://www.mellanox.com/page/products_dyn?product_family=26&amp;amp;mtag=linux_sw_drivers MLNX_OFED_LINUX] 4.3-1.0.1.0 or greater.&lt;/div&gt;</summary>
		<author><name>Hasanq</name></author>	</entry>

	</feed>