]> git.openfabrics.org - ~emulex/for-vlad/old/compat-rdma.git/commitdiff
xeon-phi: updates to ofed-mic script
authorJay Sternberg <jay.e.sternberg@intel.com>
Fri, 5 Sep 2014 17:36:13 +0000 (10:36 -0700)
committerVladimir Sokolovsky <vlad@mellanox.com>
Wed, 10 Sep 2014 11:19:35 +0000 (14:19 +0300)
Changes include:
 - Start the ibp daemon (ibpd) since udev is not longer being used.
 - Always try to unload ipoib/kmtest on the card
 - Try using another hostname when starting services on the cards
   (i.e. hostname.domain).

ofed_scripts/ofed-mic

index 0f6d48750694cad1e9ec3075c9dcf620632cf63b..238b46dc3824116be1479c4aa6527d7746575680 100755 (executable)
@@ -66,7 +66,7 @@ foreach_card()
                # Try host-cardN, cardN, host-cardN.domain, in order:
                for card_hostname in ${names[@]} ; do
                        for cmd in $@; do
-                               $cmd $card_hostname $card
+                               $cmd $card_hostname $card 2> /dev/null
                        done
 
                        [ $? == 0 ] && break
@@ -196,7 +196,7 @@ start()
                modprobe ibp_sa_server &&
                modprobe ibscif
 
-               retval+=$?
+               retval=$?
                [ $retval -eq 0 ] && eval $_success || eval $_failure
        fi
 
@@ -204,6 +204,10 @@ start()
        foreach_card copy_numa_map start_mic
        retval+=$?
 
+       # set up the special address "mic0:ib" for supporting RDMA CM over
+       # the emulated IB interface (ibscif). this is used for address
+       # resolution only. there is no need to set up "mic1:ib" even if
+       # more than one cards are installed.
        ip address add 192.0.2.100/24 dev mic0 label mic0:ib
 
        return $retval
@@ -235,7 +239,7 @@ stop()
                stop_module ibp_cm_server
                retval+=$?
 
-               killall -q /usr/sbin/ibpd
+               kill $(pidof /usr/sbin/ibpd) &>/dev/null
                stop_module ibp_server
                retval+=$?