summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shvetsov <alexxy@gentoo.org>2011-06-30 22:02:03 +0000
committerAlexey Shvetsov <alexxy@gentoo.org>2011-06-30 22:02:03 +0000
commitd6e081f04659e5825f3fbeab7f0321f22d99aa35 (patch)
tree890ae4c27667a9e709ad794017bccaa9de5dbbaa /sys-infiniband
parent[sys-infiniband/libnes] Initial import to tree (diff)
downloadhistorical-d6e081f04659e5825f3fbeab7f0321f22d99aa35.tar.gz
historical-d6e081f04659e5825f3fbeab7f0321f22d99aa35.tar.bz2
historical-d6e081f04659e5825f3fbeab7f0321f22d99aa35.zip
[sys-infiniband/openib-files] Initial import to tree
Package-Manager: portage-2.2.0_alpha41/cvs/Linux x86_64
Diffstat (limited to 'sys-infiniband')
-rw-r--r--sys-infiniband/openib-files/ChangeLog11
-rw-r--r--sys-infiniband/openib-files/Manifest29
-rw-r--r--sys-infiniband/openib-files/files/90-ib.rules5
-rw-r--r--sys-infiniband/openib-files/files/openib243
-rw-r--r--sys-infiniband/openib-files/files/openib.conf27
-rw-r--r--sys-infiniband/openib-files/files/openib.env1
-rw-r--r--sys-infiniband/openib-files/files/openib.modprobe12
-rw-r--r--sys-infiniband/openib-files/metadata.xml17
-rw-r--r--sys-infiniband/openib-files/openib-files-1.5.3.1.ebuild128
-rw-r--r--sys-infiniband/openib/Manifest23
-rw-r--r--sys-infiniband/opensm/Manifest25
11 files changed, 521 insertions, 0 deletions
diff --git a/sys-infiniband/openib-files/ChangeLog b/sys-infiniband/openib-files/ChangeLog
new file mode 100644
index 000000000000..fe5e35f467ab
--- /dev/null
+++ b/sys-infiniband/openib-files/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for sys-infiniband/openib-files
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-infiniband/openib-files/ChangeLog,v 1.1 2011/06/30 22:02:03 alexxy Exp $
+
+*openib-files-1.5.3.1 (30 Jun 2011)
+
+ 30 Jun 2011; Alexey Shvetsov <alexxy@gentoo.org> +files/90-ib.rules,
+ +openib-files-1.5.3.1.ebuild, +files/openib, +files/openib.conf,
+ +files/openib.env, +files/openib.modprobe, +metadata.xml:
+ Initial import to tree
+
diff --git a/sys-infiniband/openib-files/Manifest b/sys-infiniband/openib-files/Manifest
new file mode 100644
index 000000000000..c42152fddf2c
--- /dev/null
+++ b/sys-infiniband/openib-files/Manifest
@@ -0,0 +1,29 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX 90-ib.rules 232 RMD160 13aeac8b6ee3bb486257d1e43ce3ab73383816e9 SHA1 df6bde030ba8916eb5872b936fe816cebd189005 SHA256 c44d4937d60bb5b02d2b73d0a0e59a6b094555b060e31f2193c546dfe146f5d3
+AUX openib 6964 RMD160 ffbe0064d0f9e39ee95a56fa193f899b5e3d60f8 SHA1 7df3335c01ea4e2b4b64c2f144f4cacb0cc90f6b SHA256 afe994354e48708b7d2aa40f78888ca9a688789438de332f71f253c318129ac5
+AUX openib.conf 498 RMD160 4f8ebd6e32feade5927331561f15411bb8d7f9fe SHA1 2a1edc293445b94b27aec85acdfba22e9b73ceec SHA256 8c12ebe735d32f75c1bd4b66077e2642fa26a015cfc7992594066d7feb9fa962
+AUX openib.env 19 RMD160 2b59609462694bb3f1303e15316a4d1e3cfe96ac SHA1 ecaac97de1abe1250a6b436a5cb4a0f40c5605c4 SHA256 5f30d772b77fa4a5aaa1a4ff4188c0f38c0cf6c4138cb6597082c6d20598a467
+AUX openib.modprobe 350 RMD160 a40e8656ee1bdfc26a86b65aa3eaf5553a93b7b8 SHA1 623adbeccde3e88ce2c39d113a409c4d14091f0d SHA256 32054c7ee7caffc21ed320a9be5d0c2cd85e51295c0515521373d658f55ee68e
+DIST OFED-1.5.3.1.tgz 75331712 RMD160 03675604e228c30d630d95f514522a091326c213 SHA1 7d56d4904124cc3ea926f7a4c862069611c25334 SHA256 9cdf2e78ce1a3c0b367d75593cbd344390a1f3f02ac13d6ecfa37b0d05ac89e4
+EBUILD openib-files-1.5.3.1.ebuild 4223 RMD160 e7c7a010ed028cae7c582f0f32891627835db5bb SHA1 59b37f4898be3ba46cb87c1b79767c8cecd1b4b9 SHA256 ed3f1e22e3d25e872dd9c0424cbdb7905aa46b5decd0dafe9fa2cac3cc54cdc6
+MISC ChangeLog 488 RMD160 04a9d8bb97cce186af267ab3ecc4c97fb2709816 SHA1 f91566ae18f61c413092c974be2ce449f1142d6a SHA256 38de2148a23f456483f0ac41745a419a5cf7a82676c0485b991f89a1a9513677
+MISC metadata.xml 768 RMD160 f6ee09bfb00901e428ff9aa5eb30d039cca1d205 SHA1 827e5343a8e735a7e65b442af452cf2286a67faf SHA256 cd6e4455c6d58d7be09f28c1bb7fbab102f39484a1e68eb8bf0e3dfd710d4648
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.17 (GNU/Linux)
+
+iQIcBAEBCAAGBQJODPJRAAoJEOf+E+/4L5Lm7fkP/0Qd+aroTkKid+OBJlkTSvGo
+vBxw3kN784h/QFjtePffyR0lsNZbB6d4Y82/etjUv+Ni2MMm9NQlucjIIHL7DG+V
+Jx6EPsi01pqXd0eJWHCn9KOqLkqshqJnhJZAUUR9iDTYi8yHKyHSJeSfOKNwY6be
+iVp63VQHV2LfHcteO4Gf1jJD6MgaTo1Fnh26CH8JgucY+Qurt7E9sTLIXTAkyXjN
+zVJHcaCPfHqYPjqhDelOpp+0pL0HDgrh5syNpNGau6xvRKmsvmZq8TmB1/YCbEdF
+io8JF/GPO/mhHwWFsOIJGIISMmTDwFX426caSIwtYgpOKKiLtd6tt8VcyrJlIkfA
+7R+INX3pWzOwu+My8kfXtjvGxNsvin1X5C8EhL3OwYIDxw887bMopoUXuc/O9Wdv
+gWiErg89EJt1uxfVFLeNO6VPjfAw6nFGUgxWDj7S2iez1kTqPQE4FHAfTg8X9pQr
+LLY8rz8cawybQP5ABNCC5lUHQ86WvxqiU5c0bOGKTTojP2jxmjQOz5Qvt2ZK5/Yd
+cAeFvLBQhwBhrujog79XswdGhBuDGbbVsp6IxAQIaVuCH95TmjVVz9fqLmOEITNV
+dw5qbiY5GwlvXO1tSrzfxibKMA6uBYNUbUvz5XzMHT6+qbT1P9k7doPvHvpRfiAs
+CJ2jB/NsNy7Q8dI3a41a
+=SGzK
+-----END PGP SIGNATURE-----
diff --git a/sys-infiniband/openib-files/files/90-ib.rules b/sys-infiniband/openib-files/files/90-ib.rules
new file mode 100644
index 000000000000..789668486c8c
--- /dev/null
+++ b/sys-infiniband/openib-files/files/90-ib.rules
@@ -0,0 +1,5 @@
+KERNEL=="umad*", NAME="infiniband/%k"
+KERNEL=="issm*", NAME="infiniband/%k"
+KERNEL=="uverbs*", NAME="infiniband/%k", MODE="0666"
+KERNEL=="ucm*", NAME="infiniband/%k", MODE="0666"
+KERNEL=="rdma_cm", NAME="infiniband/%k", MODE="0666"
diff --git a/sys-infiniband/openib-files/files/openib b/sys-infiniband/openib-files/files/openib
new file mode 100644
index 000000000000..b65483174b88
--- /dev/null
+++ b/sys-infiniband/openib-files/files/openib
@@ -0,0 +1,243 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-infiniband/openib-files/files/openib,v 1.1 2011/06/30 22:02:03 alexxy Exp $
+
+# Based on openibd script from openfabrics.org,
+# Copyright (c) 2006 Mellanox Technologies. All rights reserved.
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ after hotplug
+ before net # init openib before starting any ipoib interfaces
+}
+
+OPENIB_CONFDIR=${OPENIB_CONFDIR:-/etc/infiniband}
+
+if [[ -r ${OPENIB_CONFDIR}/openib.conf ]] ; then
+ . ${OPENIB_CONFDIR}/openib.conf
+fi
+
+# Setting OpenIB start parameters
+POST_LOAD_MODULES=""
+
+if [ "X${SDP_LOAD}" == "Xyes" ]; then
+ POST_LOAD_MODULES="$POST_LOAD_MODULES ib_sdp"
+ IPOIB_LOAD="yes"
+fi
+
+IPOIB=0
+if [ "X${IPOIB_LOAD}" == "Xyes" ]; then
+ IPOIB=1
+fi
+
+if [ "X${SRP_LOAD}" == "Xyes" ]; then
+ POST_LOAD_MODULES="$POST_LOAD_MODULES ib_srp"
+fi
+
+if [ "X${SRP_TARGET_LOAD}" == "Xyes" ]; then
+ POST_LOAD_MODULES="$POST_LOAD_MODULES ib_srp_target"
+fi
+
+if [ "X${RDMA_CM_LOAD}" == "Xyes" ]; then
+ POST_LOAD_MODULES="$POST_LOAD_MODULES rdma_cm"
+fi
+
+if [ "X${UCM_LOAD}" == "Xyes" ]; then
+ POST_LOAD_MODULES="$POST_LOAD_MODULES ib_ucm"
+fi
+
+if [ "X${RDS_LOAD}" == "Xyes" ]; then
+ POST_LOAD_MODULES="$POST_LOAD_MODULES ib_rds"
+fi
+
+if [ "X${ISER_LOAD}" == "Xyes" ]; then
+ POST_LOAD_MODULES="$POST_LOAD_MODULES ib_iser"
+fi
+
+if [ "X${RDMA_UCM_LOAD}" == "Xyes" ]; then
+ POST_LOAD_MODULES="$POST_LOAD_MODULES rdma_ucm"
+fi
+
+PRE_UNLOAD_MODULES="ib_rds ib_ucm kdapl ib_srp_target scsi_target ib_srp ib_iser ib_sdp rdma_ucm rdma_cm ib_addr ib_cm ib_local_sa findex"
+
+# W/A for unloading modules
+POST_UNLOAD_MODULES="$PRE_UNLOAD_MODULES ib_ipoib ib_sa ib_uverbs ib_umad"
+# ib_mthca ib_ipath - don't unload unless they are in openib.conf
+[[ "${MTHCA_LOAD}" == "yes" ]] && \
+ POST_UNLOAD_MODULES="$POST_UNLOAD_MODULES ib_mthca"
+[[ "${IPATH_LOAD}" == "yes" ]] && \
+ POST_UNLOAD_MODULES="$POST_UNLOAD_MODULES ib_ipath ipath_core"
+
+[[ "${MTHCA_LOAD}" == "yes" || "${IPATH_LOAD}" == "yes" ]] && \
+ POST_UNLOAD_MODULES="$POST_UNLOAD_MODULES ib_mad ib_core"
+
+#STATUS_MODULES="rdma_ucm ib_rds ib_srp ib_sdp rdma_cm ib_addr ib_local_sa findex ib_ipoib ib_ipath ipath_core ib_mthca ib_uverbs ib_umad ib_ucm ib_sa ib_cm ib_mad ib_core"
+
+
+# If module $1 is loaded return - 0 else - 1
+is_module()
+{
+ local RC
+
+ /bin/lsmod | grep -w "$1" > /dev/null 2>&1
+ RC=$?
+
+ return $RC
+}
+
+unload()
+{
+ # Unload module $1
+ if is_module $mod; then
+ /sbin/modprobe -r $mod > /dev/null 2>&1
+ if [ $? -ne 0 ]; then
+ # Try rmmod if modprobe failed: case that previous installation included more IB modules.
+ /sbin/rmmod $mod > /dev/null 2>&1
+ if [ $? -ne 0 ]; then
+ ewarn "Failed to unload $mod"
+ return 1
+ fi
+ fi
+ fi
+}
+
+start() {
+ local RC=0
+ ebegin "Initializing Infiniband"
+ eindent
+
+ # Load Mellanox HCA driver if explicitly requested
+ # (however, it should be loaded automatically by udev)
+
+ einfo "Loading HCA and Access Layer drivers"
+
+ if [[ "${MTHCA_LOAD}" == "yes" ]]; then
+ /sbin/modprobe ib_mthca > /dev/null 2>&1
+ RC=$[ $RC + $? ]
+ fi
+ if [[ "${IPATH_LOAD}" == "yes" ]]; then
+ /sbin/modprobe ib_ipath > /dev/null 2>&1
+ RC=$[ $RC + $? ]
+ fi
+
+ # Add node description to sysfs
+ IBSYSDIR="/sys/class/infiniband"
+ if [ -d ${IBSYSDIR} ]; then
+ declare -i hca_id=1
+ for hca in ${IBSYSDIR}/*; do
+ if [ -e ${hca}/node_desc ]; then
+ echo -n "$(hostname -s) HCA-${hca_id}" >> ${hca}/node_desc
+ fi
+ let hca_id++
+ done
+ fi
+ /sbin/modprobe ib_umad > /dev/null 2>&1
+ RC=$[ $RC + $? ]
+ /sbin/modprobe ib_uverbs > /dev/null 2>&1
+ RC=$[ $RC + $? ]
+
+ if [ $IPOIB -eq 1 ]; then
+ # this section is not necessary if all ib-over-ib devices are
+ # aliased properly in /etc/modules.d/openib
+ einfo "loading ib_ipoib module"
+ /sbin/modprobe ib_ipoib > /dev/null 2>&1
+ RC=$[ $RC + $? ]
+ if (( ! RC )); then
+ # start the ipoib devices automatically...
+ # this is probably a bad idea (the concept is taken from the
+ # original SUSE/Redhat-based initscript), and should be removed.
+ # But it works, and is not enabled by default. So I leave it here
+ # for second opinions.
+ local ibdevs=`rc-status -u -nc |egrep 'net\.ib[0-9a-zA-Z]+.*stopped' | awk '{print $1}'`
+ if [ -n "$ibdevs" ] ; then
+ einfo "starting ipoib devices"
+ for ibdev in $ibdevs; do
+ /etc/init.d/$ibdev start
+ done
+ fi
+ fi
+ fi
+
+ # Devices for ib_umad and ib_uverbs should now have been created.
+ if [ ! -d /dev/infiniband/ ]; then
+ eerror "udev failed to create '/dev/infiniband/' devices"
+ RC=1
+ fi
+
+ # Load configured modules
+ if [ "$POST_LOAD_MODULES" != "" ]; then
+ for mod in $POST_LOAD_MODULES
+ do
+ case $mod in
+ ib_iser)
+ # Voltaire requirement
+ /sbin/modprobe --force-modversion $mod > /dev/null 2>&1
+ ;;
+ *)
+ /sbin/modprobe $mod > /dev/null 2>&1
+ ;;
+ esac
+ RC=$?
+ [ $RC -ne 0 ] && eerror "Failed to load $mod"
+ done
+ fi
+
+ eoutdent
+ eend $RC
+}
+
+stop() {
+ ebegin "Stopping Infiniband"
+ local RC=0
+
+ # Check if applications which use infiniband are running
+ local apps="opensm osmtest ibbs ibns"
+ local pid
+
+ for app in $apps
+ do
+ if ( ps -ef | grep $app | grep -v grep > /dev/null 2>&1 ); then
+ eerror "Please stop $app and all applications running over InfiniBand"
+ eend 1
+ return
+ fi
+ done
+
+ if ! is_module ib_core; then
+ einfo "HCA driver is not loaded"
+ eend 0
+ return
+ fi
+
+ # Unload ULPs modules
+
+ if [ "$PRE_UNLOAD_MODULES" != "" ]; then
+ for mod in $PRE_UNLOAD_MODULES
+ do
+ unload $mod || { eend 1; return; }
+ done
+ fi
+
+ # Remove srp_presistant_bind.sh before removing ib_srp module
+ PID_SCRPT_TO_KILL=`ps -efww | grep srp_persistent | grep -v grep | awk '{print $2}'`
+ if ! [ "$PID_SCRPT_TO_KILL" == "" ]; then
+ PID_SLEEP_TO_KILL=`ps -efww | grep $PID_SCRPT_TO_KILL | grep sleep | awk '{print $2}'`
+ kill -9 $PID_SCRPT_TO_KILL
+ fi
+ if ! [ "$PID_SLEEP_TO_KILL" == "" ]; then
+ kill -9 $PID_SLEEP_TO_KILL
+ fi
+
+ # Unload OpenIB modules
+
+ if [ "$POST_UNLOAD_MODULES" != "" ]; then
+ for mod in $POST_UNLOAD_MODULES
+ do
+ unload $mod || RC=1
+ done
+ fi
+
+ eend $RC
+}
+
diff --git a/sys-infiniband/openib-files/files/openib.conf b/sys-infiniband/openib-files/files/openib.conf
new file mode 100644
index 000000000000..9b4eb292857c
--- /dev/null
+++ b/sys-infiniband/openib-files/files/openib.conf
@@ -0,0 +1,27 @@
+# uncomment to load ib_ipoib module
+#IPOIB_LOAD=yes
+
+# uncomment to load ib_sdp module (implies IPOIB_LOAD=yes)
+#SDP_LOAD=yes
+
+# uncomment to load ib_srp module
+#SRP_LOAD=yes
+
+# uncomment to load ib_srp_target module
+#SRP_TARGET_LOAD=yes
+
+# uncomment to load rdma_cm module
+#RDMA_CM_LOAD=yes
+
+# uncomment to load ib_ucm module
+#UCM_LOAD=yes
+
+# uncomment to load ib_rds module
+#RDS_LOAD=yes
+
+# uncomment to load ib_iser module
+#ISER_LOAD=yes
+
+# uncomment to load rdma_ucm module
+#RDMA_UCM_LOAD=yes
+
diff --git a/sys-infiniband/openib-files/files/openib.env b/sys-infiniband/openib-files/files/openib.env
new file mode 100644
index 000000000000..2e34cf22f96b
--- /dev/null
+++ b/sys-infiniband/openib-files/files/openib.env
@@ -0,0 +1 @@
+IBPATH="/usr/sbin"
diff --git a/sys-infiniband/openib-files/files/openib.modprobe b/sys-infiniband/openib-files/files/openib.modprobe
new file mode 100644
index 000000000000..52828fb3bf65
--- /dev/null
+++ b/sys-infiniband/openib-files/files/openib.modprobe
@@ -0,0 +1,12 @@
+# Setup aliases from ip-over-ib devices to the ip-over-ib kernel module.
+# Add to this list if you have more infiniband ports. Or you can set
+# IPOIB_LOAD=yes to have the ip-over-ib interfaces brought up by init.d/openib
+alias ib0 ib_ipoib
+alias ib1 ib_ipoib
+alias ib2 ib_ipoib
+alias ib3 ib_ipoib
+
+alias net-pf-27 ib_sdp
+
+#options ib_mthca msi_x=1
+
diff --git a/sys-infiniband/openib-files/metadata.xml b/sys-infiniband/openib-files/metadata.xml
new file mode 100644
index 000000000000..f1ef0107ea73
--- /dev/null
+++ b/sys-infiniband/openib-files/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cluster</herd>
+ <longdescription>
+OpenIB system files and examples.
+</longdescription>
+ <use>
+ <flag name="ehca">Automatically generated description for ehca</flag>
+ <flag name="ipath">Automatically generated description for ipath</flag>
+ <flag name="iser">Automatically generated description for iser</flag>
+ <flag name="srp">Automatically generated description for srp</flag>
+ <flag name="vnic">Automatically generated description for vnic</flag>
+ <flag name="mlx4">Automatically generated description for mlx4</flag>
+ <flag name="rds">Automatically generated description for rds</flag>
+ </use>
+</pkgmetadata>
diff --git a/sys-infiniband/openib-files/openib-files-1.5.3.1.ebuild b/sys-infiniband/openib-files/openib-files-1.5.3.1.ebuild
new file mode 100644
index 000000000000..ae918b1a4a51
--- /dev/null
+++ b/sys-infiniband/openib-files/openib-files-1.5.3.1.ebuild
@@ -0,0 +1,128 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-infiniband/openib-files/openib-files-1.5.3.1.ebuild,v 1.1 2011/06/30 22:02:03 alexxy Exp $
+
+EAPI="4"
+
+OFED_VER="1.5.3.1"
+OFED_SUFFIX="OFED.1.5.3.1."
+
+inherit openib
+
+DESCRIPTION="OpenIB system files"
+SCRIPTDIR="${S}/ofed_scripts"
+KEYWORDS="~amd64 ~x86"
+IUSE="ehca ipath iser mlx4 rds srp vnic"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ einfo "Nothing to configure"
+}
+
+src_compile() {
+ einfo "Nothing to compile"
+}
+
+src_install() {
+ insinto /etc/udev/rules.d
+ newins "${SCRIPTDIR}/90-ib.rules" 40-ib.rules
+ insinto /etc/modprobe.d
+ newins "${FILESDIR}/openib.modprobe" openib.conf
+ newenvd "${FILESDIR}/openib.env" 02openib
+ insinto /etc/infiniband
+
+ doinitd "${FILESDIR}/openib"
+
+ # build openib.conf based on ofed_scripts/ofa_kernel.spec
+ build_ipoib=1
+ build_sdp=1
+ cp "${SCRIPTDIR}/openib.conf" "${T}"
+ IB_CONF_DIR=${T}
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load UCM module" >> ${IB_CONF_DIR}/openib.conf
+ echo "UCM_LOAD=no" >> ${IB_CONF_DIR}/openib.conf
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load RDMA_CM module" >> ${IB_CONF_DIR}/openib.conf
+ echo "RDMA_CM_LOAD=yes" >> ${IB_CONF_DIR}/openib.conf
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load RDMA_UCM module" >> ${IB_CONF_DIR}/openib.conf
+ echo "RDMA_UCM_LOAD=yes" >> ${IB_CONF_DIR}/openib.conf
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Increase ib_mad thread priority" >> ${IB_CONF_DIR}/openib.conf
+ echo "RENICE_IB_MAD=no" >> ${IB_CONF_DIR}/openib.conf
+
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load MTHCA" >> ${IB_CONF_DIR}/openib.conf
+ echo "MTHCA_LOAD=yes" >> ${IB_CONF_DIR}/openib.conf
+ if use ipath; then
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load IPATH" >> ${IB_CONF_DIR}/openib.conf
+ echo "IPATH_LOAD=yes" >> ${IB_CONF_DIR}/openib.conf
+ fi
+ if use ehca; then
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load eHCA" >> ${IB_CONF_DIR}/openib.conf
+ echo "EHCA_LOAD=yes" >> ${IB_CONF_DIR}/openib.conf
+ fi
+ if use mlx4; then
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load MLX4 modules" >> ${IB_CONF_DIR}/openib.conf
+ echo "MLX4_LOAD=yes" >> ${IB_CONF_DIR}/openib.conf
+ fi
+ if (( build_ipoib )); then
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load IPoIB" >> ${IB_CONF_DIR}/openib.conf
+ echo "#IPOIB_LOAD=yes" >> ${IB_CONF_DIR}/openib.conf
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Enable IPoIB Connected Mode" >> ${IB_CONF_DIR}/openib.conf
+ echo "#SET_IPOIB_CM=yes" >> ${IB_CONF_DIR}/openib.conf
+ # from ofa_user.spec:
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Enable IPoIB High Availability daemon" >> ${IB_CONF_DIR}/openib.conf
+ echo "#IPOIBHA_ENABLE=no" >> ${IB_CONF_DIR}/openib.conf
+ echo "# PRIMARY_IPOIB_DEV=ib0" >> ${IB_CONF_DIR}/openib.conf
+ echo "# SECONDARY_IPOIB_DEV=ib1" >> ${IB_CONF_DIR}/openib.conf
+ fi
+ if (( build_sdp )); then
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load SDP module" >> ${IB_CONF_DIR}/openib.conf
+ echo "#SDP_LOAD=yes" >> ${IB_CONF_DIR}/openib.conf
+ fi
+ if use srp; then
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load SRP module" >> ${IB_CONF_DIR}/openib.conf
+ echo "#SRP_LOAD=no" >> ${IB_CONF_DIR}/openib.conf
+ # from ofa_user.spec:
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Enable SRP High Availability daemon" >> ${IB_CONF_DIR}/openib.conf
+ echo "#SRPHA_ENABLE=no" >> ${IB_CONF_DIR}/openib.conf
+
+ fi
+ if use iser; then
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load ISER module" >> ${IB_CONF_DIR}/openib.conf
+ echo "#ISER_LOAD=no" >> ${IB_CONF_DIR}/openib.conf
+ fi
+ if use rds; then
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load RDS module" >> ${IB_CONF_DIR}/openib.conf
+ echo "#RDS_LOAD=no" >> ${IB_CONF_DIR}/openib.conf
+ fi
+ if use vnic; then
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load VNIC module" >> ${IB_CONF_DIR}/openib.conf
+ echo "#VNIC_LOAD=yes" >> ${IB_CONF_DIR}/openib.conf
+ fi
+
+ doins "${T}/openib.conf"
+}
+
+pkg_postinst() {
+ einfo "Configuration file installed in /etc/infiniband/openib.conf"
+ einfo "To automatically initialize infiniband on boot, add openib to your"
+ einfo "start-up scripts, like so:"
+ einfo "\`rc-update add openib default\`"
+
+}
diff --git a/sys-infiniband/openib/Manifest b/sys-infiniband/openib/Manifest
new file mode 100644
index 000000000000..4e6ee71f5441
--- /dev/null
+++ b/sys-infiniband/openib/Manifest
@@ -0,0 +1,23 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+EBUILD openib-1.5.3.1.ebuild 1062 RMD160 fb24008f249c12644b47ba0b3c034c132b21a799 SHA1 33208c4f2ae35a6ecc2a01d51f1f8fb641e2eebd SHA256 5512750217ca1c1d3eb176510c7635db8632e79b659c3fd099393374bd76b9ab
+MISC ChangeLog 364 RMD160 1429e5714221c910e6a74363bdcce02add23bba9 SHA1 943effda5796c8d63559279ec9c80e8837db6c5a SHA256 b4f72c49a74f0a19485a5b4bfa4df28a4e7645512ea2532725d96049b34b62ca
+MISC metadata.xml 944 RMD160 d19e8ebafbc73c50a9fc73db19e46896547e4d39 SHA1 95e92d9d44e7c259c5f0ae4ad73719d56a3b260e SHA256 8847bf7de6e3534c1e9bcff911290857e58d6eb785d1ee4e2fdbca1852065833
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.17 (GNU/Linux)
+
+iQIcBAEBCAAGBQJODPNaAAoJEOf+E+/4L5Lm9UIP/RNl1LUCv7GjK2Tn/BTPmRGF
+dp2w4jFaS1cWfiihHhYtDhuj5/YXbPg5VvKs80Ydr9QAtQXmTVfx+sAFoXXMq4ol
+wEgseSEkB7488EsfLzuxO1qZsQuh+YXQTp0+RCjGE2kNAC/kdpsUrh3z/xTT4Mo4
+fKzdFXArgmzQgu9YR6DwZ0eC2qyuLdxhwH9c7AskfTCezT6S/Cva2EVLZaBzS5/H
+5rUl2Feez6PnGrMu+Y49fG6oirE6/XEjPOhwfCJu4WLXfTPQ8VmFEbgI2zkgKD8z
+J6/ORSHC2s4/y/tGH8VnlrLj2Xz0MOXjeZZfRHsx358SC5Le8dTQi+4i5m8rNexF
+6m39u8uYeUVXDS2xnkk4oFysIEejX2NNbf+aZomO4GStTa5TRvNpHFsnvoH/vq2G
+rEBugGNxTmk2DkOVGqYtfndSJB+1OphTECVt6w7NS12dmDVxgF+tKz1X46FhiUjK
+7woaDIDUuYVH4YNzgddQKkiRBvaf3VewXVLUTmwCNSdo8i0q2HOzE+hSffTQ5jcR
+SlSxEfn+Kb7lCSJqKiIPYe1nPMcUhkJBC5pEeaPkSlAyqDInDPgoEOLabIvazXoo
+qKwBwupnzoDJkZYL7mUAIndDXx6hW0VXrLajqxO9PVnBtfQlcjI09wvnEK+oRYFH
+lS5hJjV+sfuN9yT2AI0n
+=oxiD
+-----END PGP SIGNATURE-----
diff --git a/sys-infiniband/opensm/Manifest b/sys-infiniband/opensm/Manifest
new file mode 100644
index 000000000000..9f30b2012bb7
--- /dev/null
+++ b/sys-infiniband/opensm/Manifest
@@ -0,0 +1,25 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX opensm.init.d 814 RMD160 38c1f39ea0cd2fb9e3dc8129b7ec63c23cebdf16 SHA1 782ffc0087dcae612c6ade8acdafbd82da8d83b3 SHA256 1058ffc5b105585d7b42a0caa55af475f4989031a4cbec78394e6aadd061baf7
+DIST OFED-1.5.3.1.tgz 75331712 RMD160 03675604e228c30d630d95f514522a091326c213 SHA1 7d56d4904124cc3ea926f7a4c862069611c25334 SHA256 9cdf2e78ce1a3c0b367d75593cbd344390a1f3f02ac13d6ecfa37b0d05ac89e4
+EBUILD opensm-3.3.9.ebuild 1163 RMD160 c123ef91e34c500d07306ac8ae6f49c8b6ce1200 SHA1 92972eef64f2a1c7db4f5b8e5051b2e8205aec65 SHA256 6607043b3eb47c04cf489a9ff853bcf74e70ca0bdd32ad3a83e52ef7c260e8c1
+MISC ChangeLog 382 RMD160 9375358a91a5e252555d57aae60870b1e236a6a3 SHA1 bd88861cda9fb3205238f062453d246ba5041543 SHA256 80543cf3aba900195202a0a006d95242893bc2b3e7aba2333cf69e0ed985bc3b
+MISC metadata.xml 421 RMD160 b9ff53511dc2fcd9c5b3ac94f5028d018440dada SHA1 97f82cbaddd3275d7f906cac68018c5d2433e975 SHA256 78b506cf13aff9269660e6e54f6c27e82e8359c52746036c43841feb140907f8
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.17 (GNU/Linux)
+
+iQIcBAEBCAAGBQJODPL9AAoJEOf+E+/4L5LmyuUQAIx2F9Fm8nqdrp2U0jlmz6Y3
+hRdUTb/rRtFZODU9a1j6zZwNv/0MjWZkj51ETRc1FwBMPI8iWYRNgK1q3DVsqU7T
+gqmirPb1tAZGXdqAeZhW1GUh+NbP+a5SBvBoBGw6leVr+2FlKBPfHRYXG4BeZTPa
+MQdIqQFO9K82XGIOG5mI/lJxnGjpbDKfiVWAqVKI/irONiQbiUX6u0eWW7jGvKP5
+MHKZB645W/4+LODrsxwHuuoAwpWJ2hFZV54buqnl1yWwEwsnOF+f2yCV3D7o8ALe
+8+2V7vsGZWLBUWQJufc4yriI2IwHHdAAo9IwNcoqDAMsgtCfOwuPR+JqKJjxHo5U
+MESMpj9Rxeg9mVY00pkvmLVRzdrOBvZkFxXQss9mEJFGt5vKmfasUei8u4OL54Tt
+pTTu48P2VyTOmTTBJv1TSSxKALWKh0Zdsb1I/Aw1TojfJASNCnbS14+30al17kBV
+9UWVtQRb/DLcSPHF4iJblMRHfWL0dAaPqhcGNq2rEprm8U6WLTJ9lhkmk/pljcpg
+OWh3MzNK1eX5vu7cwNoGDRQrWY8yuUwzLlcBcgy4tvu6zW0rxjJmF/+aLbI5dyFG
+hDIxHMDCirKfNbLRa27urRahBpZBf1irCMBLM6g3wUyLxpHBfafV23FdwWz47CRc
+xPENa5hwCLrfsfXmz/NO
+=BE79
+-----END PGP SIGNATURE-----