]> git.openfabrics.org - ~emulex/tmp/compat-rdma/.git/commitdiff
correct ofed-mic scripts to manually start ibpd rather than it being started by udev...
authorPhil Cayton <phil.cayton@intel.com>
Thu, 14 Aug 2014 19:54:33 +0000 (12:54 -0700)
committerVladimir Sokolovsky <vlad@mellanox.com>
Sun, 17 Aug 2014 06:47:27 +0000 (09:47 +0300)
ofed_scripts/ofed-mic

index 89e3e451d29c183746c72f7c3270e974df2cebd8..5c9d2f1669a308f7093f31cbcdc46b93a8ab022a 100644 (file)
@@ -178,6 +178,7 @@ start()
 
        if [ "$nohost" -eq 0 ]; then
                echo -n "host"
+               (/usr/sbin/ibpd &) &&
                modprobe ib_uverbs &&
                modprobe ibp_server &&
                modprobe ibp_cm_server &&
@@ -192,10 +193,6 @@ 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
@@ -227,7 +224,7 @@ stop()
                stop_module ibp_cm_server
                retval+=$?
 
-               kill $(pidof /usr/sbin/ibpd) &>/dev/null
+               killall -q /usr/sbin/ibpd
                stop_module ibp_server
                retval+=$?