Remove pre OFED serializers and enable IB

Change-Id: I8c8d066bd5622712b276f1329213c7599464f483
This commit is contained in:
Aviram Bar-Haim 2016-05-23 17:47:26 +03:00
parent 4faa9ef57e
commit 336e3abb87
3 changed files with 15 additions and 27 deletions

View File

@ -99,24 +99,22 @@ function install_ofed_without_fw_update () {
}
function enable_eipoib (){
if [ $NETWORK_TYPE == 'infiniband' ]; then
sed -i s/^E_IPOIB_LOAD.*$/E_IPOIB_LOAD=yes/g /etc/infiniband/openib.conf
sed -i s/^E_IPOIB_LOAD.*$/E_IPOIB_LOAD=yes/g /etc/infiniband/openib.conf
# Set Buffers size
if [ -f /etc/modprobe.d/ib_ipoib.conf ];then
sed -i s/^.*queue_size.*$//g /etc/modprobe.d/ib_ipoib.conf
fi
if [[ $ROLE == *controller* ]];then
buffer_size=32
else
buffer_size=128
fi
echo "options ib_ipoib recv_queue_size=$buffer_size send_queue_size=$buffer_size" > /etc/modprobe.d/ipoib.conf
# Use fixed MLNX_OFED scripts
\cp -f ./ipoibd /sbin/ipoibd
\cp -f ./openibd /etc/init.d/openibd
# Set Buffers size
if [ -f /etc/modprobe.d/ib_ipoib.conf ];then
sed -i s/^.*queue_size.*$//g /etc/modprobe.d/ib_ipoib.conf
fi
if [[ $ROLE == *controller* ]];then
buffer_size=32
else
buffer_size=128
fi
echo "options ib_ipoib recv_queue_size=$buffer_size send_queue_size=$buffer_size" > /etc/modprobe.d/ipoib.conf
# Use fixed MLNX_OFED scripts
\cp -f ./ipoibd /sbin/ipoibd
\cp -f ./openibd /etc/init.d/openibd
}
if ! is_ofed_installed; then

View File

@ -40,16 +40,6 @@
parameters:
cmd: ./link_astute_file.sh
timeout: 10
# Add relevant settings for Mellanox manifests to mellanox plugin section in
# Hiera, to make the data easily accessible and independent of astute.yaml
- id: customize_mellanox_hiera
role: '*'
required_for: [validate_kernel_devel]
requires: [link_astute_file]
type: shell
parameters:
cmd: ./mellanox_settings.py
timeout: 100
# Verify kernel-devel packages are installed (if CentOS)
- id: validate_kernel_devel
role: '*'

View File

@ -5,7 +5,7 @@ name: mellanox-plugin
title: Mellanox ConnectX-4 Openstack Features
# Plugin version
version: 3.1.5
version: 3.1.8
# Description
description: Enable features over Mellanox ConnectX-4 Adapters