Merge "Reduce IB child size in controller"

This commit is contained in:
Jenkins 2016-03-01 14:41:01 +00:00 committed by Gerrit Code Review
commit 001ef6986e
1 changed files with 13 additions and 1 deletions

View File

@ -128,7 +128,19 @@ function update_fw_if_not_oem () {
function enable_eipoib (){
if [ $DRIVER == 'eth_ipoib' ]; then
sed -i s/^E_IPOIB_LOAD.*$/E_IPOIB_LOAD=yes/g /etc/infiniband/openib.conf
echo "options ib_ipoib recv_queue_size=128 send_queue_size=128" > /etc/modprobe.d/ipoib.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
fi