[ewg] [PATCH] ofed_1_2/ofed_scripts

Moni Shoua monisonlists at gmail.com
Wed May 9 04:04:30 PDT 2007


This patch fixes bug 538.

Set mode of IPoIB interfaces to "connected" after enslaving them.
This is required when the slaves don't have a network script.
Signed-off-by: Moni Shoua <monis at voltaire.com>
---
diff --git a/ofed_scripts/openibd b/ofed_scripts/openibd
index 8fbaa69..5fdbf6e 100755
--- a/ofed_scripts/openibd
+++ b/ofed_scripts/openibd
@@ -818,6 +818,12 @@ start()
 				else
 					echo_failure $"Bringing up interface $bond"
 				fi
+				if [ "X${SET_IPOIB_CM}" == "Xyes" ]; then
+					for slave in $(echo $bond_slaves|tr , " ") ; do
+						set_ipoib_cm ${i}
+					done
+				        /sbin/ifconfig $bond mtu ${IPOIB_MTU}
+				fi
 			done
 		fi
         fi




More information about the ewg mailing list