[ewg] [PATCH] ofed_1_2/openibd
Moni Shoua
monisonlists at gmail.com
Tue May 1 03:59:56 PDT 2007
Hi,
This patch fixed handling of child interface handling in openibd
1. Choose only valid netscripts of child interfaces
2. Don't create child if child already exists
--------------
diff --git a/ofed_scripts/openibd b/ofed_scripts/openibd
index d04d9c3..2da4b15 100755
--- a/ofed_scripts/openibd
+++ b/ofed_scripts/openibd
@@ -751,7 +751,7 @@ start()
fi
# Bring up child interfaces if configured
- for child_conf in $(/bin/ls -1 ${NETWORK_CONF_DIR}/ifcfg-${i}.* 2> /dev/null)
+ for child_conf in $(/bin/ls -1 ${NETWORK_CONF_DIR}/ifcfg-${i}.???? 2> /dev/null)
do
ch_i=${child_conf##*-}
# Skip saved interfaces rpmsave and rpmnew
@@ -769,7 +769,9 @@ start()
fi
pkey=0x${ch_i##*.}
- echo $pkey > /sys/class/net/${i}/create_child
+ if [ ! -e /sys/class/net/${i}.${ch_i##*.} ] ; then
+ echo $pkey > /sys/class/net/${i}/create_child
+ fi
bring_up $ch_i
RC=$?
More information about the ewg
mailing list