Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Deleted infiniband as everything needed is in portage now

  • Loading branch information...
commit 6c5a709561be00980abf242c96c95969bcd2cc43 1 parent 174ce3d
@nbigaouette authored
Showing with 0 additions and 3,293 deletions.
  1. +0 −5 sys-infiniband/dapl/Manifest
  2. +0 −24 sys-infiniband/dapl/dapl-2.0.30.ebuild
  3. +0 −25 sys-infiniband/dapl/dapl-2.0.32.ebuild
  4. +0 −15 sys-infiniband/dapl/files/dapl.conf.2.0.30
  5. +0 −4 sys-infiniband/libibcm/Manifest
  6. +0 −24 sys-infiniband/libibcm/libibcm-1.0.5-r1.ebuild
  7. +0 −24 sys-infiniband/libibcm/libibcm-1.0.5.ebuild
  8. +0 −4 sys-infiniband/libibmad/Manifest
  9. +0 −22 sys-infiniband/libibmad/libibmad-1.3.6.ebuild
  10. +0 −23 sys-infiniband/libibmad/libibmad-1.3.7.ebuild
  11. +0 −4 sys-infiniband/libibumad/Manifest
  12. +0 −21 sys-infiniband/libibumad/libibumad-1.3.6.ebuild
  13. +0 −22 sys-infiniband/libibumad/libibumad-1.3.7.ebuild
  14. +0 −5 sys-infiniband/libibverbs/Manifest
  15. +0 −53 sys-infiniband/libibverbs/files/libibverbs-1.1.4-pcfile.patch
  16. +0 −36 sys-infiniband/libibverbs/libibverbs-1.1.4-r1.ebuild
  17. +0 −34 sys-infiniband/libibverbs/libibverbs-1.1.4.ebuild
  18. +0 −4 sys-infiniband/libmlx4/Manifest
  19. +0 −29 sys-infiniband/libmlx4/libmlx4-1.0-r2.ebuild
  20. +0 −24 sys-infiniband/libmlx4/libmlx4-1.0.1.ebuild
  21. +0 −6 sys-infiniband/librdmacm/Manifest
  22. +0 −52 sys-infiniband/librdmacm/files/librdmacm-1.0.13-pcfile.patch
  23. +0 −52 sys-infiniband/librdmacm/files/librdmacm-1.0.14.1-pcfile.patch
  24. +0 −27 sys-infiniband/librdmacm/librdmacm-1.0.13.ebuild
  25. +0 −28 sys-infiniband/librdmacm/librdmacm-1.0.14.1.ebuild
  26. +0 −4 sys-infiniband/libsdp/Manifest
  27. +0 −22 sys-infiniband/libsdp/libsdp-1.1.103.ebuild
  28. +0 −23 sys-infiniband/libsdp/libsdp-1.1.108.ebuild
  29. +0 −8 sys-infiniband/openib-drivers/Manifest
  30. +0 −251 sys-infiniband/openib-drivers/files/net_skb-dst_accessors.patch
  31. +0 −148 sys-infiniband/openib-drivers/files/new_frags_interface.patch
  32. +0 −792 sys-infiniband/openib-drivers/files/openib
  33. +0 −12 sys-infiniband/openib-drivers/files/openib.modprobe
  34. +0 −148 sys-infiniband/openib-drivers/openib-drivers-1.5.2.ebuild
  35. +0 −151 sys-infiniband/openib-drivers/openib-drivers-1.5.3.1.ebuild
  36. +0 −10 sys-infiniband/openib-files/Manifest
  37. +0 −5 sys-infiniband/openib-files/files/90-ib.rules
  38. +0 −243 sys-infiniband/openib-files/files/openib
  39. +0 −27 sys-infiniband/openib-files/files/openib.conf
  40. +0 −1  sys-infiniband/openib-files/files/openib.env
  41. +0 −12 sys-infiniband/openib-files/files/openib.modprobe
  42. +0 −13 sys-infiniband/openib-files/files/openib.modprobe.1.2.5.5
  43. +0 −128 sys-infiniband/openib-files/openib-files-1.5.2.ebuild
  44. +0 −129 sys-infiniband/openib-files/openib-files-1.5.3.1.ebuild
  45. +0 −7 sys-infiniband/openib-mvapich2/Manifest
  46. +0 −8 sys-infiniband/openib-mvapich2/files/eselect.mpi.mvapich2
  47. +0 −161 sys-infiniband/openib-mvapich2/openib-mvapich2-1.5.1_p1-r1.ebuild
  48. +0 −161 sys-infiniband/openib-mvapich2/openib-mvapich2-1.6_rc1-r1.ebuild
  49. +0 −5 sys-infiniband/openib-osm/Manifest
  50. +0 −28 sys-infiniband/openib-osm/files/opensm.init.d
  51. +0 −44 sys-infiniband/openib-osm/openib-osm-3.3.7.ebuild
  52. +0 −45 sys-infiniband/openib-osm/openib-osm-3.3.9.ebuild
  53. +0 −4 sys-infiniband/openib-perf/Manifest
  54. +0 −35 sys-infiniband/openib-perf/openib-perf-1.3.0-r1.ebuild
  55. +0 −34 sys-infiniband/openib-perf/openib-perf-1.3.0.ebuild
  56. +0 −2  sys-infiniband/openib/Manifest
  57. +0 −32 sys-infiniband/openib/openib-1.5.2.ebuild
  58. +0 −33 sys-infiniband/openib/openib-1.5.3.1.ebuild
View
5 sys-infiniband/dapl/Manifest
@@ -1,5 +0,0 @@
-AUX dapl.conf.2.0.30 700 RMD160 ca541699d8e6ce169ebc7e46aa73cca258c665f9 SHA1 2d8c9c6ee20345f96910b4a1aba49b545defd64b SHA256 9829545c3373ef08df934f5ebb8038b2f0fe75343c24338d1780be0b8771ef2d
-DIST OFED-1.5.2.tgz 73726958 RMD160 8c4ee90b3322f8d0842643ae39e4450a708613f4 SHA1 09ec76a3d2bce0fb7d6e148a05454c307c6da3cb SHA256 60aca976b89cca2ce8b57a2b925d9731096c21980d60fa954927fb3c835d5f51
-DIST OFED-1.5.3.1.tgz 75331712 RMD160 03675604e228c30d630d95f514522a091326c213 SHA1 7d56d4904124cc3ea926f7a4c862069611c25334 SHA256 9cdf2e78ce1a3c0b367d75593cbd344390a1f3f02ac13d6ecfa37b0d05ac89e4
-EBUILD dapl-2.0.30.ebuild 495 RMD160 5466be64c51b1c515ae7a87f77c1ed3d5d1c8abe SHA1 fd3094e40d61c4ce962a5e37995a746497e2c4ef SHA256 1eaee6029ce3ef3fa0f5fcadce247b38ecc89abc52f2c7bd6bd8394fc30b7cb2
-EBUILD dapl-2.0.32.ebuild 511 RMD160 b1c05bd3f1f8372cece8cffc3e8d1eb3c7286988 SHA1 135ba3e2e86f505aba1988c6971f7fbf431933f1 SHA256 ca7d1b71b8103286ff21f260c17f57be45764e727ad8e2ebbda8e02d40104d59
View
24 sys-infiniband/dapl/dapl-2.0.30.ebuild
@@ -1,24 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="2"
-
-OFED_VER="1.5.2"
-OFED_SUFFIX="1"
-
-inherit openib
-
-DESCRIPTION="OpenIB - Direct Access Provider Library"
-KEYWORDS="~x86 ~amd64"
-IUSE=""
-
-DEPEND=">=sys-infiniband/libibverbs-1.1.4
- >=sys-infiniband/librdmacm-1.0.13"
-RDEPEND="${DEPEND}
- !sys-infiniband/openib-userspace"
-
-src_install() {
- make DESTDIR="${D}" install || die "install failed"
- dodoc README AUTHORS
-}
View
25 sys-infiniband/dapl/dapl-2.0.32.ebuild
@@ -1,25 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="2"
-
-OFED_VER="1.5.3"
-OFED_PATCH=".1"
-OFED_SUFFIX="1"
-
-inherit openib
-
-DESCRIPTION="OpenIB - Direct Access Provider Library"
-KEYWORDS="~x86 ~amd64"
-IUSE=""
-
-DEPEND=">=sys-infiniband/libibverbs-1.1.4
- >=sys-infiniband/librdmacm-1.0.13"
-RDEPEND="${DEPEND}
- !sys-infiniband/openib-userspace"
-
-src_install() {
- make DESTDIR="${D}" install || die "install failed"
- dodoc README AUTHORS
-}
View
15 sys-infiniband/dapl/files/dapl.conf.2.0.30
@@ -1,15 +0,0 @@
-#
-# Each entry should have the following fields:
-#
-# <ia_name> <api_version> <threadsafety> <default> <lib_path> \
-# <provider_version> <ia_params> <platform_params>
-#
-# For the uDAPL cma provder, specify <ia_params> as one of the following:
-# network address, network hostname, or netdev name and 0 for port
-
-ofa-v2-ib0 u2.0 nonthreadsafe default libdaplofa.so.2 dapl.2.0 "ib0 0" ""
-ofa-v2-ib1 u2.0 nonthreadsafe default libdaplofa.so.2 dapl.2.0 "ib1 0" ""
-ofa-v2-ib2 u2.0 nonthreadsafe default libdaplofa.so.2 dapl.2.0 "ib2 0" ""
-ofa-v2-ib3 u2.0 nonthreadsafe default libdaplofa.so.2 dapl.2.0 "ib3 0" ""
-ofa-v2-bond u2.0 nonthreadsafe default libdaplofa.so.2 dapl.2.0 "bond0 0" ""
-
View
4 sys-infiniband/libibcm/Manifest
@@ -1,4 +0,0 @@
-DIST OFED-1.5.2.tgz 73726958 RMD160 8c4ee90b3322f8d0842643ae39e4450a708613f4 SHA1 09ec76a3d2bce0fb7d6e148a05454c307c6da3cb SHA256 60aca976b89cca2ce8b57a2b925d9731096c21980d60fa954927fb3c835d5f51
-DIST OFED-1.5.3.1.tgz 75331712 RMD160 03675604e228c30d630d95f514522a091326c213 SHA1 7d56d4904124cc3ea926f7a4c862069611c25334 SHA256 9cdf2e78ce1a3c0b367d75593cbd344390a1f3f02ac13d6ecfa37b0d05ac89e4
-EBUILD libibcm-1.0.5-r1.ebuild 452 RMD160 90358300eea5bcd32375546ace9bae60055e376e SHA1 2525d3d30a32567afd2530a0691b0575b690f39a SHA256 f26bda6960cdd99b16f9a7b2530d9776717fba59373acd0c2f9c0e985bd19c19
-EBUILD libibcm-1.0.5.ebuild 447 RMD160 8c138f3dafcd6a02bab5658d0d7eb7fe70676596 SHA1 0b6de87575ab958dc599c0a513223bc3a7cb8d83 SHA256 d9b3115fa9fe6b3cc2abfff1babc32042528012e8bb3bdb6a9890159f6fcedc7
View
24 sys-infiniband/libibcm/libibcm-1.0.5-r1.ebuild
@@ -1,24 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="2"
-
-OFED_VER="1.5.3.1"
-OFED_SUFFIX="1"
-
-inherit openib
-
-KEYWORDS="~x86 ~amd64"
-
-DESCRIPTION="OpenIB Userspace CM library"
-KEYWORDS="~x86 ~amd64"
-IUSE=""
-
-RDEPEND=">=sys-infiniband/libibverbs-1.1.4-r1"
-DEPEND="${RDEPEND}"
-
-src_install() {
- make DESTDIR="${D}" install || die "install failed"
- dodoc README AUTHORS ChangeLog
-}
View
24 sys-infiniband/libibcm/libibcm-1.0.5.ebuild
@@ -1,24 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="2"
-
-OFED_VER="1.5.2"
-OFED_SUFFIX="1"
-
-inherit openib
-
-KEYWORDS="~x86 ~amd64"
-
-DESCRIPTION="OpenIB Userspace CM library"
-KEYWORDS="~x86 ~amd64"
-IUSE=""
-
-RDEPEND=">=sys-infiniband/libibverbs-1.1.4"
-DEPEND="${RDEPEND}"
-
-src_install() {
- make DESTDIR="${D}" install || die "install failed"
- dodoc README AUTHORS ChangeLog
-}
View
4 sys-infiniband/libibmad/Manifest
@@ -1,4 +0,0 @@
-DIST OFED-1.5.2.tgz 73726958 RMD160 8c4ee90b3322f8d0842643ae39e4450a708613f4 SHA1 09ec76a3d2bce0fb7d6e148a05454c307c6da3cb SHA256 60aca976b89cca2ce8b57a2b925d9731096c21980d60fa954927fb3c835d5f51
-DIST OFED-1.5.3.1.tgz 75331712 RMD160 03675604e228c30d630d95f514522a091326c213 SHA1 7d56d4904124cc3ea926f7a4c862069611c25334 SHA256 9cdf2e78ce1a3c0b367d75593cbd344390a1f3f02ac13d6ecfa37b0d05ac89e4
-EBUILD libibmad-1.3.6.ebuild 505 RMD160 b0bf914bc646f30b6d175f94cc2987131d8e0d48 SHA1 e279e24429c9500a46ed251c067ff5af02640e53 SHA256 432010f9580a52c6f068068bfd65dec2cb10aa328173816b156a3a7975e77594
-EBUILD libibmad-1.3.7.ebuild 562 RMD160 966e5b13386c8ae83c8de55d495df95c5d1aec39 SHA1 5d07324543ef7c5aba5d10f8c2090b4c48cbb0ce SHA256 7e1433174b3b2f39ee2e4afe5c3d8a6d51d9ebf56f729e510807e652ff0d2b8c
View
22 sys-infiniband/libibmad/libibmad-1.3.6.ebuild
@@ -1,22 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="2"
-
-OFED_VER="1.5.2"
-OFED_SUFFIX="1"
-
-inherit openib
-
-DESCRIPTION="OpenIB library providing low layer IB functions for use by the IB diagnostic/management programs"
-KEYWORDS="~x86 ~amd64"
-IUSE=""
-
-DEPEND=">=sys-infiniband/libibcommon-1.1.2_p20090314
- >=sys-infiniband/libibumad-1.3.6"
-RDEPEND="${DEPEND}"
-
-src_install() {
- make DESTDIR="${D}" install || die "install failed"
-}
View
23 sys-infiniband/libibmad/libibmad-1.3.7.ebuild
@@ -1,23 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="2"
-
-OFED_VER="1.5.3.1"
-OFED_SUFFIX="1"
-
-inherit openib
-
-DESCRIPTION="OpenIB library providing low layer IB functions for use by the IB diagnostic/management programs"
-KEYWORDS="~x86 ~amd64"
-IUSE=""
-
-# libibcommon disappeared from SRPMS folder?
-#DEPEND=">=sys-infiniband/libibcommon-1.1.2_p20090314
-DEPEND=">=sys-infiniband/libibumad-1.3.7"
-RDEPEND="${DEPEND}"
-
-src_install() {
- make DESTDIR="${D}" install || die "install failed"
-}
View
4 sys-infiniband/libibumad/Manifest
@@ -1,4 +0,0 @@
-DIST OFED-1.5.2.tgz 73726958 RMD160 8c4ee90b3322f8d0842643ae39e4450a708613f4 SHA1 09ec76a3d2bce0fb7d6e148a05454c307c6da3cb SHA256 60aca976b89cca2ce8b57a2b925d9731096c21980d60fa954927fb3c835d5f51
-DIST OFED-1.5.3.1.tgz 75331712 RMD160 03675604e228c30d630d95f514522a091326c213 SHA1 7d56d4904124cc3ea926f7a4c862069611c25334 SHA256 9cdf2e78ce1a3c0b367d75593cbd344390a1f3f02ac13d6ecfa37b0d05ac89e4
-EBUILD libibumad-1.3.6.ebuild 463 RMD160 aecf53c63f2dbea049d439cdde72d0b5ba40502f SHA1 52cc0e8d43206ee12dafec77ed085b1eb7b8b457 SHA256 d56c17c3af7a0b7d5cda58ee34fce531d46fe321b2cf8ccb252e10ea5e8d7b48
-EBUILD libibumad-1.3.7.ebuild 524 RMD160 72e24d5ba3ba346f94481d0759265dba695f3790 SHA1 abbb022ef46fe4a578bbbc02dd892d25ea68448d SHA256 181f52a43b966632d8501da4f9d367cf97856cb9f07186d1f3a265d9414ec8a0
View
21 sys-infiniband/libibumad/libibumad-1.3.6.ebuild
@@ -1,21 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="2"
-
-OFED_VER="1.5.2"
-OFED_SUFFIX="1"
-
-inherit openib
-
-DESCRIPTION="OpenIB User MAD library functions which sit on top of the user MAD modules in the kernel."
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-DEPEND=">=sys-infiniband/libibcommon-1.1.2_p20090314"
-RDEPEND="${DEPEND}"
-
-src_install() {
- make DESTDIR="${D}" install || die "install failed"
-}
View
22 sys-infiniband/libibumad/libibumad-1.3.7.ebuild
@@ -1,22 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="2"
-
-OFED_VER="1.5.3.1"
-OFED_SUFFIX="1"
-
-inherit openib
-
-DESCRIPTION="OpenIB User MAD library functions which sit on top of the user MAD modules in the kernel."
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-#DEPEND=">=sys-infiniband/libibcommon-1.1.2_p20090314"
-DEPEND="" # libibcommon diseappeared from SRPM folder?
-RDEPEND="${DEPEND}"
-
-src_install() {
- make DESTDIR="${D}" install || die "install failed"
-}
View
5 sys-infiniband/libibverbs/Manifest
@@ -1,5 +0,0 @@
-AUX libibverbs-1.1.4-pcfile.patch 1257 RMD160 d9adbfad0dc6fcfe75f5297dc500012254ef53a6 SHA1 6cffbcd184e6e9f3298d6d987088985fa2736449 SHA256 e9b8b63aea1a9edd3f333552246266ecb0a030514c9a00095d93e8c856634367
-DIST OFED-1.5.2.tgz 73726958 RMD160 8c4ee90b3322f8d0842643ae39e4450a708613f4 SHA1 09ec76a3d2bce0fb7d6e148a05454c307c6da3cb SHA256 60aca976b89cca2ce8b57a2b925d9731096c21980d60fa954927fb3c835d5f51
-DIST OFED-1.5.3.1.tgz 75331712 RMD160 03675604e228c30d630d95f514522a091326c213 SHA1 7d56d4904124cc3ea926f7a4c862069611c25334 SHA256 9cdf2e78ce1a3c0b367d75593cbd344390a1f3f02ac13d6ecfa37b0d05ac89e4
-EBUILD libibverbs-1.1.4-r1.ebuild 875 RMD160 cb583b90a323885c345db1f1236e0e8f3f83ed04 SHA1 38402b752d7552808ef10e880171f8454094cef7 SHA256 4a5c7afa31ed0638df1024421a22eb5b619411f0d17609671684925b03ad26da
-EBUILD libibverbs-1.1.4.ebuild 784 RMD160 106ec0214f71a9150958cdc5989cfb17b584595f SHA1 04e0aafad31aa0ea9cba62b581bd408ea85600df SHA256 b93f6f2fab8a752ac3f62c0eebafe6b85f6531c4f599d4ac1191b3bc30ff9d63
View
53 sys-infiniband/libibverbs/files/libibverbs-1.1.4-pcfile.patch
@@ -1,53 +0,0 @@
---- configure.in
-+++ configure.in
-@@ -22,6 +22,18 @@
- fi
- fi
-
-+dnl Additional arguments (and substitutions)
-+dnl Allow the pkg-config directory to be set
-+AC_ARG_WITH(pkgconfigdir,
-+ AC_HELP_STRING([--with-pkgconfigdir],
-+ [Use the specified pkgconfig dir (default is libdir/pkgconfig)]),
-+ [pkgconfigdir=${withval}],
-+ [pkgconfigdir='${libdir}/pkgconfig'])
-+
-+AC_SUBST([pkgconfigdir])
-+AC_MSG_NOTICE([pkgconfig directory is ${pkgconfigdir}])
-+
-+
- dnl Checks for programs
- AC_PROG_CC
- AC_PROG_LN_S
-@@ -66,5 +78,5 @@
- AC_DEFINE([HAVE_SYMVER_SUPPORT], 1, [assembler has .symver support])
- fi
-
--AC_CONFIG_FILES([Makefile libibverbs.spec])
-+AC_CONFIG_FILES([Makefile libibverbs.spec ibverbs.pc:ibverbs.pc.in])
- AC_OUTPUT
---- Makefile.am
-+++ Makefile.am
-@@ -1,5 +1,8 @@
- INCLUDES = -I$(srcdir)/include
-
-+pkgconfigdir = @pkgconfigdir@
-+pkgconfig_DATA = ibverbs.pc
-+
- lib_LTLIBRARIES = src/libibverbs.la
-
- AM_CFLAGS = -g -Wall -D_GNU_SOURCE
---- /dev/null
-+++ ibverbs.pc.in
-@@ -0,0 +1,11 @@
-+prefix=@prefix@
-+exec_prefix=@exec_prefix@
-+libdir=@libdir@
-+includedir=@includedir@
-+
-+Name: @PACKAGE_NAME@
-+Version: @PACKAGE_VERSION@
-+Description: @PACKAGE_STRING@
-+Requires:
-+Libs: -L${libdir} -libverbs
-+Cflags: -I${includedir}
View
36 sys-infiniband/libibverbs/libibverbs-1.1.4-r1.ebuild
@@ -1,36 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="2"
-
-OFED_VER="1.5.3"
-OFED_PATCH=".1"
-OFED_SUFFIX="1.22.g7257cd3"
-
-inherit autotools eutils openib
-
-DESCRIPTION="A library allowing programs to use InfiniBand 'verbs' for direct access to IB hardware"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-DEPEND="sys-fs/sysfsutils"
-RDEPEND="${DEPEND}
- !sys-infiniband/openib-userspace"
-
-src_unpack() {
- emsg "OFED_VER = ${OFED_VER}${OFED_PATCH}"
- unpack ${A} || die "unpack failed"
- rpm_unpack "./OFED-${OFED_VER}${OFED_PATCH}/SRPMS/${MY_PN}-${MY_PV}-${OFED_SUFFIX}.src.rpm"
- unpack ./${MY_PN}-${MY_PV}-${OFED_SUFFIX}.${EXT}
-}
-
-src_prepare() {
- epatch "${FILESDIR}"/${P}-pcfile.patch
- eautoreconf
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die
- dodoc README AUTHORS ChangeLog || die
-}
View
34 sys-infiniband/libibverbs/libibverbs-1.1.4.ebuild
@@ -1,34 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="2"
-
-OFED_VER="1.5.2"
-OFED_SUFFIX="0.14.gb6c138b"
-
-inherit autotools eutils openib
-
-DESCRIPTION="A library allowing programs to use InfiniBand 'verbs' for direct access to IB hardware"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-DEPEND="sys-fs/sysfsutils"
-RDEPEND="${DEPEND}
- !sys-infiniband/openib-userspace"
-
-src_unpack() {
- unpack ${A} || die "unpack failed"
- rpm_unpack "./OFED-${OFED_VER}/SRPMS/${MY_PN}-${MY_PV}-${OFED_SUFFIX}.src.rpm"
- unpack ./${MY_PN}-${MY_PV}-${OFED_SUFFIX}.${EXT}
-}
-
-src_prepare() {
- epatch "${FILESDIR}"/${P}-pcfile.patch
- eautoreconf
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die
- dodoc README AUTHORS ChangeLog || die
-}
View
4 sys-infiniband/libmlx4/Manifest
@@ -1,4 +0,0 @@
-DIST OFED-1.5.2.tgz 73726958 RMD160 8c4ee90b3322f8d0842643ae39e4450a708613f4 SHA1 09ec76a3d2bce0fb7d6e148a05454c307c6da3cb SHA256 60aca976b89cca2ce8b57a2b925d9731096c21980d60fa954927fb3c835d5f51
-DIST OFED-1.5.3.1.tgz 75331712 RMD160 03675604e228c30d630d95f514522a091326c213 SHA1 7d56d4904124cc3ea926f7a4c862069611c25334 SHA256 9cdf2e78ce1a3c0b367d75593cbd344390a1f3f02ac13d6ecfa37b0d05ac89e4
-EBUILD libmlx4-1.0-r2.ebuild 684 RMD160 76bf4d3cdd776f04cf73efb91cf7718bd90fb1bc SHA1 d160e4a410c6f3802a382332a3f09394ceca6d7e SHA256 b0917439bcc66fa81c6d2fe399d83deaf68405392b62652625a0b9b60a9acc5f
-EBUILD libmlx4-1.0.1.ebuild 522 RMD160 3bf9f4e37a63fc1a89c1f7a1d6377c5799f816b4 SHA1 003e6aa6eb75ecd360842083501ddadcee4beb2e SHA256 06b8c7cf6101b817bc9318c65d900e583fc89ca6dee01166b29cbf25b952b4bb
View
29 sys-infiniband/libmlx4/libmlx4-1.0-r2.ebuild
@@ -1,29 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="2"
-
-OFED_VER="1.5.2"
-OFED_SUFFIX="0.13.g4e5c43f"
-
-inherit openib
-
-DESCRIPTION="OpenIB userspace driver for Mellanox ConnectX HCA"
-KEYWORDS="~x86 ~amd64"
-IUSE=""
-
-DEPEND=">=sys-infiniband/libibverbs-1.1.4"
-RDEPEND="${DEPEND}
- !sys-infiniband/openib-userspace"
-
-src_unpack() {
- unpack ${A} || die "unpack failed"
- rpm_unpack "./OFED-${OFED_VER}/SRPMS/${MY_PN}-${MY_PV}-${OFED_SUFFIX}.src.rpm"
- unpack ./${MY_PN}-${MY_PV}-${OFED_SUFFIX}.${EXT}
-}
-
-src_install() {
- make DESTDIR="${D}" install || die "install failed"
- dodoc README AUTHORS ChangeLog
-}
View
24 sys-infiniband/libmlx4/libmlx4-1.0.1.ebuild
@@ -1,24 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="2"
-
-OFED_VER="1.5.3"
-OFED_PATCH=".1"
-OFED_SUFFIX="1.18.gb810a27"
-
-inherit openib
-
-DESCRIPTION="OpenIB userspace driver for Mellanox ConnectX HCA"
-KEYWORDS="~x86 ~amd64"
-IUSE=""
-
-DEPEND=">=sys-infiniband/libibverbs-1.1.4-r1"
-RDEPEND="${DEPEND}
- !sys-infiniband/openib-userspace"
-
-src_install() {
- make DESTDIR="${D}" install || die "install failed"
- dodoc README AUTHORS ChangeLog
-}
View
6 sys-infiniband/librdmacm/Manifest
@@ -1,6 +0,0 @@
-AUX librdmacm-1.0.13-pcfile.patch 1467 RMD160 d061650b803e070c6f8e8373beb3033fa8d56616 SHA1 548ed25a72590e027ac337fb1862af469aadbedf SHA256 15f88ea081a1131b7f47d927fd023de4b4bae80c9088af35972b5daaa0476913
-AUX librdmacm-1.0.14.1-pcfile.patch 1467 RMD160 d061650b803e070c6f8e8373beb3033fa8d56616 SHA1 548ed25a72590e027ac337fb1862af469aadbedf SHA256 15f88ea081a1131b7f47d927fd023de4b4bae80c9088af35972b5daaa0476913
-DIST OFED-1.5.2.tgz 73726958 RMD160 8c4ee90b3322f8d0842643ae39e4450a708613f4 SHA1 09ec76a3d2bce0fb7d6e148a05454c307c6da3cb SHA256 60aca976b89cca2ce8b57a2b925d9731096c21980d60fa954927fb3c835d5f51
-DIST OFED-1.5.3.1.tgz 75331712 RMD160 03675604e228c30d630d95f514522a091326c213 SHA1 7d56d4904124cc3ea926f7a4c862069611c25334 SHA256 9cdf2e78ce1a3c0b367d75593cbd344390a1f3f02ac13d6ecfa37b0d05ac89e4
-EBUILD librdmacm-1.0.13.ebuild 529 RMD160 a0d4f773d015e7a396f2f1222427f577bfdfac19 SHA1 c8548af66bdc9f57d308cfdf3e0b551030209542 SHA256 1c0a8ddf6525e1e51b7540becd7d21a3e7a986d2cf6e996308ec4aeb0b830154
-EBUILD librdmacm-1.0.14.1.ebuild 545 RMD160 9384bb0d7f00e925e9c8ed4509eefdab3d1bc797 SHA1 839fa3c39fbb4092c289aa1a27d2415ad1fc51f5 SHA256 8b4db03cd14afc21aa098f616642bdf6b94a6c2903b89e988461069f601049b3
View
52 sys-infiniband/librdmacm/files/librdmacm-1.0.13-pcfile.patch
@@ -1,52 +0,0 @@
---- configure.in.orig 2010-06-22 14:29:13.162433883 +0200
-+++ configure.in 2010-06-22 14:30:08.453433847 +0200
-@@ -27,6 +27,17 @@
- fi
- ])
-
-+dnl Additional arguments (and substitutions)
-+dnl Allow the pkg-config directory to be set
-+AC_ARG_WITH(pkgconfigdir,
-+ AC_HELP_STRING([--with-pkgconfigdir],
-+ [Use the specified pkgconfig dir (default is libdir/pkgconfig)]),
-+ [pkgconfigdir=${withval}],
-+ [pkgconfigdir='${libdir}/pkgconfig'])
-+
-+AC_SUBST([pkgconfigdir])
-+AC_MSG_NOTICE([pkgconfig directory is ${pkgconfigdir}])
-+
- dnl Checks for programs
- AC_PROG_CC
-
-@@ -62,5 +73,5 @@
-
- AM_CONDITIONAL(HAVE_LD_VERSION_SCRIPT, test "$ac_cv_version_script" = "yes")
-
--AC_CONFIG_FILES([Makefile librdmacm.spec])
-+AC_CONFIG_FILES([Makefile librdmacm.spec rdmacm.pc:rdmacm.pc.in])
- AC_OUTPUT
---- Makefile.am.orig 2010-06-22 14:29:17.849433892 +0200
-+++ Makefile.am 2010-06-22 14:30:30.680832953 +0200
-@@ -1,5 +1,8 @@
- INCLUDES = -I$(srcdir)/include
-
-+pkgconfigdir = @pkgconfigdir@
-+pkgconfig_DATA = rdmacm.pc
-+
- lib_LTLIBRARIES = src/librdmacm.la
-
- AM_CFLAGS = -g -Wall -D_GNU_SOURCE
---- /dev/null 2010-05-29 13:22:18.914064236 +0200
-+++ rdmacm.pc.in 2010-06-22 14:30:56.082443278 +0200
-@@ -0,0 +1,11 @@
-+prefix=@prefix@
-+exec_prefix=@exec_prefix@
-+libdir=@libdir@
-+includedir=@includedir@
-+
-+Name: @PACKAGE_NAME@
-+Version: @PACKAGE_VERSION@
-+Description: @PACKAGE_STRING@
-+Requires:
-+Libs: -L${libdir} -lrdmacm
-+Cflags: -I${includedir}
View
52 sys-infiniband/librdmacm/files/librdmacm-1.0.14.1-pcfile.patch
@@ -1,52 +0,0 @@
---- configure.in.orig 2010-06-22 14:29:13.162433883 +0200
-+++ configure.in 2010-06-22 14:30:08.453433847 +0200
-@@ -27,6 +27,17 @@
- fi
- ])
-
-+dnl Additional arguments (and substitutions)
-+dnl Allow the pkg-config directory to be set
-+AC_ARG_WITH(pkgconfigdir,
-+ AC_HELP_STRING([--with-pkgconfigdir],
-+ [Use the specified pkgconfig dir (default is libdir/pkgconfig)]),
-+ [pkgconfigdir=${withval}],
-+ [pkgconfigdir='${libdir}/pkgconfig'])
-+
-+AC_SUBST([pkgconfigdir])
-+AC_MSG_NOTICE([pkgconfig directory is ${pkgconfigdir}])
-+
- dnl Checks for programs
- AC_PROG_CC
-
-@@ -62,5 +73,5 @@
-
- AM_CONDITIONAL(HAVE_LD_VERSION_SCRIPT, test "$ac_cv_version_script" = "yes")
-
--AC_CONFIG_FILES([Makefile librdmacm.spec])
-+AC_CONFIG_FILES([Makefile librdmacm.spec rdmacm.pc:rdmacm.pc.in])
- AC_OUTPUT
---- Makefile.am.orig 2010-06-22 14:29:17.849433892 +0200
-+++ Makefile.am 2010-06-22 14:30:30.680832953 +0200
-@@ -1,5 +1,8 @@
- INCLUDES = -I$(srcdir)/include
-
-+pkgconfigdir = @pkgconfigdir@
-+pkgconfig_DATA = rdmacm.pc
-+
- lib_LTLIBRARIES = src/librdmacm.la
-
- AM_CFLAGS = -g -Wall -D_GNU_SOURCE
---- /dev/null 2010-05-29 13:22:18.914064236 +0200
-+++ rdmacm.pc.in 2010-06-22 14:30:56.082443278 +0200
-@@ -0,0 +1,11 @@
-+prefix=@prefix@
-+exec_prefix=@exec_prefix@
-+libdir=@libdir@
-+includedir=@includedir@
-+
-+Name: @PACKAGE_NAME@
-+Version: @PACKAGE_VERSION@
-+Description: @PACKAGE_STRING@
-+Requires:
-+Libs: -L${libdir} -lrdmacm
-+Cflags: -I${includedir}
View
27 sys-infiniband/librdmacm/librdmacm-1.0.13.ebuild
@@ -1,27 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="2"
-
-OFED_VER="1.5.2"
-OFED_SUFFIX="1"
-
-inherit autotools eutils openib
-
-DESCRIPTION="OpenIB userspace RDMA CM library"
-KEYWORDS="~x86 ~amd64"
-IUSE=""
-DEPEND="sys-infiniband/libibverbs"
-RDEPEND="${DEPEND}
- !sys-infiniband/openib-userspace"
-
-src_prepare() {
- epatch "${FILESDIR}"/${P}-pcfile.patch
- eautoreconf
-}
-
-src_install() {
- emake DESTDIR="${D}" install ||
- dodoc README AUTHORS ChangeLog || die
-}
View
28 sys-infiniband/librdmacm/librdmacm-1.0.14.1.ebuild
@@ -1,28 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="2"
-
-OFED_VER="1.5.3"
-OFED_PATCH=".1"
-OFED_SUFFIX="1"
-
-inherit autotools eutils openib
-
-DESCRIPTION="OpenIB userspace RDMA CM library"
-KEYWORDS="~x86 ~amd64"
-IUSE=""
-DEPEND="sys-infiniband/libibverbs"
-RDEPEND="${DEPEND}
- !sys-infiniband/openib-userspace"
-
-src_prepare() {
- epatch "${FILESDIR}"/${P}-pcfile.patch
- eautoreconf
-}
-
-src_install() {
- emake DESTDIR="${D}" install ||
- dodoc README AUTHORS ChangeLog || die
-}
View
4 sys-infiniband/libsdp/Manifest
@@ -1,4 +0,0 @@
-DIST OFED-1.5.2.tgz 73726958 RMD160 8c4ee90b3322f8d0842643ae39e4450a708613f4 SHA1 09ec76a3d2bce0fb7d6e148a05454c307c6da3cb SHA256 60aca976b89cca2ce8b57a2b925d9731096c21980d60fa954927fb3c835d5f51
-DIST OFED-1.5.3.1.tgz 75331712 RMD160 03675604e228c30d630d95f514522a091326c213 SHA1 7d56d4904124cc3ea926f7a4c862069611c25334 SHA256 9cdf2e78ce1a3c0b367d75593cbd344390a1f3f02ac13d6ecfa37b0d05ac89e4
-EBUILD libsdp-1.1.103.ebuild 432 RMD160 a075c61901ec8e09f91fdb2e6d81cb23105b62b5 SHA1 7dd6b3c13165e2dd2cd7ac16d35f9a4d3b265be5 SHA256 7fbe598c3db6b5652dff2611bb5dfd40624a917657a58160ba718231c8a9039b
-EBUILD libsdp-1.1.108.ebuild 460 RMD160 e75774d8884d8ce12c586ae3bd7ba6630b6646d3 SHA1 ec858959dba82bfd23d565263f890a454732c6d6 SHA256 43a84fbb0b1936ec1906ed63c9888c0fcdbdc5a655c300fd09f6fb2325d51b5d
View
22 sys-infiniband/libsdp/libsdp-1.1.103.ebuild
@@ -1,22 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="2"
-
-OFED_VER="1.5.2"
-OFED_SUFFIX="1"
-
-inherit openib
-
-DESCRIPTION="OpenIB library that enables Socket Direct Protocol for unmodified applications"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-DEPEND=""
-RDEPEND="${DEPEND}"
-
-src_install() {
- make DESTDIR="${D}" install || die "install failed"
- dodoc README ChangeLog
-}
View
23 sys-infiniband/libsdp/libsdp-1.1.108.ebuild
@@ -1,23 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="2"
-
-OFED_VER="1.5.3"
-OFED_PATCH=".1"
-OFED_SUFFIX="0.15.gd7fdb72"
-
-inherit openib
-
-DESCRIPTION="OpenIB library that enables Socket Direct Protocol for unmodified applications"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-DEPEND=""
-RDEPEND="${DEPEND}"
-
-src_install() {
- make DESTDIR="${D}" install || die "install failed"
- dodoc README ChangeLog
-}
View
8 sys-infiniband/openib-drivers/Manifest
@@ -1,8 +0,0 @@
-AUX net_skb-dst_accessors.patch 11480 RMD160 8655f7934202a4ed3ac2abee43adcf39923a47de SHA1 d4b8f7ce5a99c5bd5ecb69df047317ff2b253807 SHA256 dd5f97585aa44ffd0bce0f784c72f8350bd296947920cc0ec69a52160ed8c516
-AUX new_frags_interface.patch 4383 RMD160 a25c731c2a473b81c63a68e6a60510a394cb3d51 SHA1 f858407172c25ac0bfe41d76fd55fea0aa242228 SHA256 6f663544aafe52d51c6529eae914581457e9dbdf51f5541be967ddf70731a704
-AUX openib 26021 RMD160 2507367b5b588e1ef95b91ec7a2a362f592c8e15 SHA1 b043dcd891d5cef100ad4b633dc73f12ace45072 SHA256 cf26003e726832a2c48bb9a3597f1319cb0fbd3d554e0b8ab10065b3cef1976e
-AUX openib.modprobe 350 RMD160 a40e8656ee1bdfc26a86b65aa3eaf5553a93b7b8 SHA1 623adbeccde3e88ce2c39d113a409c4d14091f0d SHA256 32054c7ee7caffc21ed320a9be5d0c2cd85e51295c0515521373d658f55ee68e
-DIST OFED-1.5.2.tgz 73726958 RMD160 8c4ee90b3322f8d0842643ae39e4450a708613f4 SHA1 09ec76a3d2bce0fb7d6e148a05454c307c6da3cb SHA256 60aca976b89cca2ce8b57a2b925d9731096c21980d60fa954927fb3c835d5f51
-DIST OFED-1.5.3.1.tgz 75331712 RMD160 03675604e228c30d630d95f514522a091326c213 SHA1 7d56d4904124cc3ea926f7a4c862069611c25334 SHA256 9cdf2e78ce1a3c0b367d75593cbd344390a1f3f02ac13d6ecfa37b0d05ac89e4
-EBUILD openib-drivers-1.5.2.ebuild 3652 RMD160 43b28db06d8acb1a07c431fc3345f7592842429f SHA1 f0ad9d32607d3c13718770cf48a1d5c452604ab7 SHA256 7774abe6ae5965af44573032eb2f4ade5a001d42c84361a5283db5116bc499d2
-EBUILD openib-drivers-1.5.3.1.ebuild 3820 RMD160 8556cd7b58a71866b4de239a9e61c63aea9276f8 SHA1 e4ede020eb0ec2eb83f7b31ce09cd209a1db0802 SHA256 e915afe7038880193ad057bbf5d904fa400380badb58d797a36f4394580e1f97
View
251 sys-infiniband/openib-drivers/files/net_skb-dst_accessors.patch
@@ -1,251 +0,0 @@
-From adf30907d63893e4208dfe3f5c88ae12bc2f25d5 Mon Sep 17 00:00:00 2001
-From: Eric Dumazet <eric.dumazet@gmail.com>
-Date: Tue, 2 Jun 2009 05:19:30 +0000
-Subject: [PATCH] net: skb->dst accessors
-
-Define three accessors to get/set dst attached to a skb
-
-struct dst_entry *skb_dst(const struct sk_buff *skb)
-
-void skb_dst_set(struct sk_buff *skb, struct dst_entry *dst)
-
-void skb_dst_drop(struct sk_buff *skb)
-This one should replace occurrences of :
-dst_release(skb->dst)
-skb->dst = NULL;
-
-Delete skb->dst field
-
-Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
-Signed-off-by: David S. Miller <davem@davemloft.net>
----
- drivers/infiniband/ulp/ipoib/ipoib_cm.c | 4 +-
- drivers/infiniband/ulp/ipoib/ipoib_main.c | 30 ++++++------
- drivers/infiniband/ulp/ipoib/ipoib_multicast.c | 10 ++--
- drivers/net/pppol2tp.c | 11 ++--
- drivers/s390/net/qeth_core_main.c | 4 +-
- drivers/s390/net/qeth_l3_main.c | 8 ++--
- include/linux/skbuff.h | 13 ++++-
- include/net/dst.h | 12 ++++-
- include/net/inet6_hashtables.h | 2 +-
- include/net/inet_hashtables.h | 2 +-
- include/net/ip6_route.h | 2 +-
- include/net/xfrm.h | 4 +-
- net/atm/br2684.c | 2 +-
- net/atm/clip.c | 14 +++---
- net/bridge/br_netfilter.c | 18 +++----
- net/core/dev.c | 7 +--
- net/core/neighbour.c | 11 ++--
- net/core/skbuff.c | 4 +-
- net/dccp/ipv4.c | 4 +-
- net/dccp/ipv6.c | 8 ++-
- net/dccp/output.c | 2 +-
- net/decnet/af_decnet.c | 6 ++-
- net/decnet/dn_neigh.c | 8 ++--
- net/decnet/dn_nsp_out.c | 6 +-
- net/decnet/dn_route.c | 25 +++++-----
- net/ipv4/arp.c | 2 +-
- net/ipv4/icmp.c | 10 ++--
- net/ipv4/igmp.c | 4 +-
- net/ipv4/ip_forward.c | 4 +-
- net/ipv4/ip_fragment.c | 2 +-
- net/ipv4/ip_gre.c | 23 ++++-----
- net/ipv4/ip_input.c | 6 +-
- net/ipv4/ip_options.c | 6 +-
- net/ipv4/ip_output.c | 20 ++++----
- net/ipv4/ipip.c | 13 ++---
- net/ipv4/ipmr.c | 13 ++---
- net/ipv4/netfilter.c | 28 ++++++-----
- net/ipv4/netfilter/ipt_REJECT.c | 7 +--
- net/ipv4/netfilter/nf_nat_standalone.c | 7 +--
- net/ipv4/raw.c | 2 +-
- net/ipv4/route.c | 14 +++---
- net/ipv4/tcp_ipv4.c | 4 +-
- net/ipv4/tcp_output.c | 2 +-
- net/ipv4/udp.c | 4 +-
- net/ipv4/xfrm4_input.c | 2 +-
- net/ipv4/xfrm4_mode_tunnel.c | 4 +-
- net/ipv4/xfrm4_output.c | 6 +-
- net/ipv6/exthdrs.c | 40 ++++++++--------
- net/ipv6/inet6_connection_sock.c | 2 +-
- net/ipv6/ip6_input.c | 12 ++--
- net/ipv6/ip6_output.c | 60 ++++++++++++------------
- net/ipv6/ip6_tunnel.c | 26 +++++------
- net/ipv6/ip6mr.c | 13 ++---
- net/ipv6/mcast.c | 17 ++++---
- net/ipv6/ndisc.c | 4 +-
- net/ipv6/netfilter.c | 16 ++++--
- net/ipv6/netfilter/ip6t_REJECT.c | 2 +-
- net/ipv6/raw.c | 2 +-
- net/ipv6/reassembly.c | 22 ++++----
- net/ipv6/route.c | 12 ++--
- net/ipv6/sit.c | 21 ++++----
- net/ipv6/tcp_ipv6.c | 8 ++-
- net/ipv6/udp.c | 7 +--
- net/ipv6/xfrm6_mode_tunnel.c | 4 +-
- net/ipv6/xfrm6_output.c | 4 +-
- net/netfilter/ipvs/ip_vs_xmit.c | 48 +++++++++---------
- net/netfilter/nf_conntrack_proto_gre.c | 2 +-
- net/netfilter/xt_TCPMSS.c | 6 +-
- net/netfilter/xt_policy.c | 2 +-
- net/netfilter/xt_realm.c | 2 +-
- net/packet/af_packet.c | 6 +--
- net/sched/cls_flow.c | 8 ++--
- net/sched/cls_route.c | 2 +-
- net/sched/em_meta.c | 4 +-
- net/sched/sch_sfq.c | 2 +-
- net/sched/sch_teql.c | 6 +-
- net/sctp/output.c | 6 +-
- net/sunrpc/xprtsock.c | 2 +-
- net/xfrm/xfrm_input.c | 3 +-
- net/xfrm/xfrm_output.c | 21 ++++----
- net/xfrm/xfrm_policy.c | 8 +++-
- security/selinux/hooks.c | 2 +-
- security/selinux/xfrm.c | 2 +-
- 83 files changed, 414 insertions(+), 390 deletions(-)
-
-diff --git a/drivers/infiniband/ulp/ipoib/ipoib_cm.c b/drivers/infiniband/ulp/ipoib/ipoib_cm.c
-index 4248c31..181b1f3 100644
---- a/drivers/infiniband/ulp/ipoib/ipoib_cm.c
-+++ b/drivers/infiniband/ulp/ipoib/ipoib_cm.c
-@@ -1394,8 +1394,8 @@ void ipoib_cm_skb_too_long(struct net_device *dev, struct sk_buff *skb,
- struct ipoib_dev_priv *priv = netdev_priv(dev);
- int e = skb_queue_empty(&priv->cm.skb_queue);
-
-- if (skb->dst)
-- skb->dst->ops->update_pmtu(skb->dst, mtu);
-+ if (skb_dst(skb))
-+ skb_dst(skb)->ops->update_pmtu(skb_dst(skb), mtu);
-
- skb_queue_tail(&priv->cm.skb_queue, skb);
- if (e)
-diff --git a/drivers/infiniband/ulp/ipoib/ipoib_main.c b/drivers/infiniband/ulp/ipoib/ipoib_main.c
-index 69c6304..e319d91 100644
---- a/drivers/infiniband/ulp/ipoib/ipoib_main.c
-+++ b/drivers/infiniband/ulp/ipoib/ipoib_main.c
-@@ -561,7 +561,7 @@ static void neigh_add_path(struct sk_buff *skb, struct net_device *dev)
- struct ipoib_neigh *neigh;
- unsigned long flags;
-
-- neigh = ipoib_neigh_alloc(skb->dst->neighbour, skb->dev);
-+ neigh = ipoib_neigh_alloc(skb_dst(skb)->neighbour, skb->dev);
- if (!neigh) {
- ++dev->stats.tx_dropped;
- dev_kfree_skb_any(skb);
-@@ -570,9 +570,9 @@ static void neigh_add_path(struct sk_buff *skb, struct net_device *dev)
-
- spin_lock_irqsave(&priv->lock, flags);
-
-- path = __path_find(dev, skb->dst->neighbour->ha + 4);
-+ path = __path_find(dev, skb_dst(skb)->neighbour->ha + 4);
- if (!path) {
-- path = path_rec_create(dev, skb->dst->neighbour->ha + 4);
-+ path = path_rec_create(dev, skb_dst(skb)->neighbour->ha + 4);
- if (!path)
- goto err_path;
-
-@@ -605,7 +605,7 @@ static void neigh_add_path(struct sk_buff *skb, struct net_device *dev)
- goto err_drop;
- }
- } else
-- ipoib_send(dev, skb, path->ah, IPOIB_QPN(skb->dst->neighbour->ha));
-+ ipoib_send(dev, skb, path->ah, IPOIB_QPN(skb_dst(skb)->neighbour->ha));
- } else {
- neigh->ah = NULL;
-
-@@ -635,15 +635,15 @@ static void ipoib_path_lookup(struct sk_buff *skb, struct net_device *dev)
- struct ipoib_dev_priv *priv = netdev_priv(skb->dev);
-
- /* Look up path record for unicasts */
-- if (skb->dst->neighbour->ha[4] != 0xff) {
-+ if (skb_dst(skb)->neighbour->ha[4] != 0xff) {
- neigh_add_path(skb, dev);
- return;
- }
-
- /* Add in the P_Key for multicasts */
-- skb->dst->neighbour->ha[8] = (priv->pkey >> 8) & 0xff;
-- skb->dst->neighbour->ha[9] = priv->pkey & 0xff;
-- ipoib_mcast_send(dev, skb->dst->neighbour->ha + 4, skb);
-+ skb_dst(skb)->neighbour->ha[8] = (priv->pkey >> 8) & 0xff;
-+ skb_dst(skb)->neighbour->ha[9] = priv->pkey & 0xff;
-+ ipoib_mcast_send(dev, skb_dst(skb)->neighbour->ha + 4, skb);
- }
-
- static void unicast_arp_send(struct sk_buff *skb, struct net_device *dev,
-@@ -708,16 +708,16 @@ static int ipoib_start_xmit(struct sk_buff *skb, struct net_device *dev)
- struct ipoib_neigh *neigh;
- unsigned long flags;
-
-- if (likely(skb->dst && skb->dst->neighbour)) {
-- if (unlikely(!*to_ipoib_neigh(skb->dst->neighbour))) {
-+ if (likely(skb_dst(skb) && skb_dst(skb)->neighbour)) {
-+ if (unlikely(!*to_ipoib_neigh(skb_dst(skb)->neighbour))) {
- ipoib_path_lookup(skb, dev);
- return NETDEV_TX_OK;
- }
-
-- neigh = *to_ipoib_neigh(skb->dst->neighbour);
-+ neigh = *to_ipoib_neigh(skb_dst(skb)->neighbour);
-
- if (unlikely((memcmp(&neigh->dgid.raw,
-- skb->dst->neighbour->ha + 4,
-+ skb_dst(skb)->neighbour->ha + 4,
- sizeof(union ib_gid))) ||
- (neigh->dev != dev))) {
- spin_lock_irqsave(&priv->lock, flags);
-@@ -743,7 +743,7 @@ static int ipoib_start_xmit(struct sk_buff *skb, struct net_device *dev)
- return NETDEV_TX_OK;
- }
- } else if (neigh->ah) {
-- ipoib_send(dev, skb, neigh->ah, IPOIB_QPN(skb->dst->neighbour->ha));
-+ ipoib_send(dev, skb, neigh->ah, IPOIB_QPN(skb_dst(skb)->neighbour->ha));
- return NETDEV_TX_OK;
- }
-
-@@ -772,7 +772,7 @@ static int ipoib_start_xmit(struct sk_buff *skb, struct net_device *dev)
- if ((be16_to_cpup((__be16 *) skb->data) != ETH_P_ARP) &&
- (be16_to_cpup((__be16 *) skb->data) != ETH_P_RARP)) {
- ipoib_warn(priv, "Unicast, no %s: type %04x, QPN %06x %pI6\n",
-- skb->dst ? "neigh" : "dst",
-+ skb_dst(skb) ? "neigh" : "dst",
- be16_to_cpup((__be16 *) skb->data),
- IPOIB_QPN(phdr->hwaddr),
- phdr->hwaddr + 4);
-@@ -817,7 +817,7 @@ static int ipoib_hard_header(struct sk_buff *skb,
- * destination address onto the front of the skb so we can
- * figure out where to send the packet later.
- */
-- if ((!skb->dst || !skb->dst->neighbour) && daddr) {
-+ if ((!skb_dst(skb) || !skb_dst(skb)->neighbour) && daddr) {
- struct ipoib_pseudoheader *phdr =
- (struct ipoib_pseudoheader *) skb_push(skb, sizeof *phdr);
- memcpy(phdr->hwaddr, daddr, INFINIBAND_ALEN);
-diff --git a/drivers/infiniband/ulp/ipoib/ipoib_multicast.c b/drivers/infiniband/ulp/ipoib/ipoib_multicast.c
-index 425e311..a0e9753 100644
---- a/drivers/infiniband/ulp/ipoib/ipoib_multicast.c
-+++ b/drivers/infiniband/ulp/ipoib/ipoib_multicast.c
-@@ -261,7 +261,7 @@ static int ipoib_mcast_join_finish(struct ipoib_mcast *mcast,
-
- skb->dev = dev;
-
-- if (!skb->dst || !skb->dst->neighbour) {
-+ if (!skb_dst(skb) || !skb_dst(skb)->neighbour) {
- /* put pseudoheader back on for next time */
- skb_push(skb, sizeof (struct ipoib_pseudoheader));
- }
-@@ -707,10 +707,10 @@ void ipoib_mcast_send(struct net_device *dev, void *mgid, struct sk_buff *skb)
-
- out:
- if (mcast && mcast->ah) {
-- if (skb->dst &&
-- skb->dst->neighbour &&
-- !*to_ipoib_neigh(skb->dst->neighbour)) {
-- struct ipoib_neigh *neigh = ipoib_neigh_alloc(skb->dst->neighbour,
-+ if (skb_dst(skb) &&
-+ skb_dst(skb)->neighbour &&
-+ !*to_ipoib_neigh(skb_dst(skb)->neighbour)) {
-+ struct ipoib_neigh *neigh = ipoib_neigh_alloc(skb_dst(skb)->neighbour,
- skb->dev);
-
- if (neigh) {
View
148 sys-infiniband/openib-drivers/files/new_frags_interface.patch
@@ -1,148 +0,0 @@
-From 76620aafd66f0004829764940c5466144969cffc Mon Sep 17 00:00:00 2001
-From: Herbert Xu <herbert@gondor.apana.org.au>
-Date: Thu, 16 Apr 2009 02:02:07 -0700
-Subject: [PATCH] gro: New frags interface to avoid copying shinfo
-
-It turns out that copying a 16-byte area at ~800k times a second
-can be really expensive :) This patch redesigns the frags GRO
-interface to avoid copying that area twice.
-
-The two disciples of the frags interface have been converted.
-
-Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-Signed-off-by: David S. Miller <davem@davemloft.net>
----
- drivers/net/cxgb3/adapter.h | 2 +-
- drivers/net/cxgb3/sge.c | 53 +++++++++++++++++-----------
- drivers/net/sfc/rx.c | 26 +++++++++----
- include/linux/if_vlan.h | 6 +--
- include/linux/netdevice.h | 22 +++++------
- net/8021q/vlan_core.c | 4 +-
- net/core/dev.c | 81 +++++++++++++++++++------------------------
- 7 files changed, 101 insertions(+), 93 deletions(-)
-
-diff --git a/drivers/net/cxgb3/adapter.h b/drivers/net/cxgb3/adapter.h
-index 714df2b..322434a 100644
---- a/drivers/net/cxgb3/adapter.h
-+++ b/drivers/net/cxgb3/adapter.h
-@@ -195,7 +195,7 @@ struct sge_qset { /* an SGE queue set */
- struct sge_rspq rspq;
- struct sge_fl fl[SGE_RXQ_PER_SET];
- struct sge_txq txq[SGE_TXQ_PER_SET];
-- struct napi_gro_fraginfo lro_frag_tbl;
-+ int nomem;
- int lro_enabled;
- void *lro_va;
- struct net_device *netdev;
-diff --git a/drivers/net/cxgb3/sge.c b/drivers/net/cxgb3/sge.c
-index 26d3587..73d569e 100644
---- a/drivers/net/cxgb3/sge.c
-+++ b/drivers/net/cxgb3/sge.c
-@@ -654,7 +654,8 @@ static void t3_reset_qset(struct sge_qset *q)
- q->txq_stopped = 0;
- q->tx_reclaim_timer.function = NULL; /* for t3_stop_sge_timers() */
- q->rx_reclaim_timer.function = NULL;
-- q->lro_frag_tbl.nr_frags = q->lro_frag_tbl.len = 0;
-+ q->nomem = 0;
-+ napi_free_frags(&q->napi);
- }
-
-
-@@ -2074,20 +2075,19 @@ static void lro_add_page(struct adapter *adap, struct sge_qset *qs,
- struct sge_fl *fl, int len, int complete)
- {
- struct rx_sw_desc *sd = &fl->sdesc[fl->cidx];
-+ struct sk_buff *skb = NULL;
- struct cpl_rx_pkt *cpl;
-- struct skb_frag_struct *rx_frag = qs->lro_frag_tbl.frags;
-- int nr_frags = qs->lro_frag_tbl.nr_frags;
-- int frag_len = qs->lro_frag_tbl.len;
-+ struct skb_frag_struct *rx_frag;
-+ int nr_frags;
- int offset = 0;
-
-- if (!nr_frags) {
-- offset = 2 + sizeof(struct cpl_rx_pkt);
-- qs->lro_va = cpl = sd->pg_chunk.va + 2;
-+ if (!qs->nomem) {
-+ skb = napi_get_frags(&qs->napi);
-+ qs->nomem = !skb;
- }
-
- fl->credits--;
-
-- len -= offset;
- pci_dma_sync_single_for_cpu(adap->pdev,
- pci_unmap_addr(sd, dma_addr),
- fl->buf_size - SGE_PG_RSVD,
-@@ -2100,21 +2100,38 @@ static void lro_add_page(struct adapter *adap, struct sge_qset *qs,
- fl->alloc_size,
- PCI_DMA_FROMDEVICE);
-
-+ if (!skb) {
-+ put_page(sd->pg_chunk.page);
-+ if (complete)
-+ qs->nomem = 0;
-+ return;
-+ }
-+
-+ rx_frag = skb_shinfo(skb)->frags;
-+ nr_frags = skb_shinfo(skb)->nr_frags;
-+
-+ if (!nr_frags) {
-+ offset = 2 + sizeof(struct cpl_rx_pkt);
-+ qs->lro_va = sd->pg_chunk.va + 2;
-+ }
-+ len -= offset;
-+
- prefetch(qs->lro_va);
-
- rx_frag += nr_frags;
- rx_frag->page = sd->pg_chunk.page;
- rx_frag->page_offset = sd->pg_chunk.offset + offset;
- rx_frag->size = len;
-- frag_len += len;
-- qs->lro_frag_tbl.nr_frags++;
-- qs->lro_frag_tbl.len = frag_len;
-
-+ skb->len += len;
-+ skb->data_len += len;
-+ skb->truesize += len;
-+ skb_shinfo(skb)->nr_frags++;
-
- if (!complete)
- return;
-
-- qs->lro_frag_tbl.ip_summed = CHECKSUM_UNNECESSARY;
-+ skb->ip_summed = CHECKSUM_UNNECESSARY;
- cpl = qs->lro_va;
-
- if (unlikely(cpl->vlan_valid)) {
-@@ -2123,15 +2140,11 @@ static void lro_add_page(struct adapter *adap, struct sge_qset *qs,
- struct vlan_group *grp = pi->vlan_grp;
-
- if (likely(grp != NULL)) {
-- vlan_gro_frags(&qs->napi, grp, ntohs(cpl->vlan),
-- &qs->lro_frag_tbl);
-- goto out;
-+ vlan_gro_frags(&qs->napi, grp, ntohs(cpl->vlan));
-+ return;
- }
- }
-- napi_gro_frags(&qs->napi, &qs->lro_frag_tbl);
--
--out:
-- qs->lro_frag_tbl.nr_frags = qs->lro_frag_tbl.len = 0;
-+ napi_gro_frags(&qs->napi);
- }
-
- /**
-@@ -2300,8 +2313,6 @@ no_mem:
- if (fl->use_pages) {
- void *addr = fl->sdesc[fl->cidx].pg_chunk.va;
-
-- prefetch(&qs->lro_frag_tbl);
--
- prefetch(addr);
- #if L1_CACHE_BYTES < 128
- prefetch(addr + L1_CACHE_BYTES);
View
792 sys-infiniband/openib-drivers/files/openib
@@ -1,792 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /CVS/groups/vistech/bgreen-overlay/sys-cluster/openib-drivers/files/openib,v 1.1.1.1 2007/10/12 20:18:26 bgreen 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 coldplug 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
-
-max_ports_num_in_hca=0
-
-count_ib_ports()
-{
- local cnt=0
- local ports_in_hca=0
- sysdir=/sys/class/infiniband
- hcas=$(/bin/ls -1 ${sysdir} 2> /dev/null)
- for hca in $hcas
- do
- ports_in_hca=$(/bin/ls -1 ${sysdir}/${hca}/ports 2> /dev/null | wc -l)
- if [ $ports_in_hca -gt $max_ports_num_in_hca ]; then
- max_ports_num_in_hca=$ports_in_hca
- fi
- cnt=$[ $cnt + $ports_in_hca ]
- done
-
- return $cnt
-}
-
-# 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
-IPOIB_MTU=${IPOIB_MTU:-65520}
-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${VNIC_LOAD}" == "Xyes" ]; then
- POST_LOAD_MODULES="$POST_LOAD_MODULES ib_vnic"
-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 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
-
-UNLOAD_MODULES="ib_ipoib ib_madeye ib_rds rds ib_ucm kdapl ib_srp_target scsi_target ib_srp ib_vnic"
-UNLOAD_MODULES="$UNLOAD_MODULES ib_iser ib_sdp rdma_ucm rdma_cm ib_addr ib_cm ib_local_sa findex"
-UNLOAD_MODULES="$UNLOAD_MODULES ib_sa ib_uverbs ib_umad ib_mthca ib_ipath ipath_core ib_ehca ib_mad ib_core"
-
-STATUS_MODULES="rdma_ucm ib_rds rds ib_srp ib_vnic ib_sdp rdma_cm ib_addr ib_local_sa findex ib_ipoib ib_ehca ib_ipath ipath_core ib_mthca ib_uverbs ib_umad ib_ucm ib_sa ib_cm ib_mad ib_core"
-
-ipoib_ha_pidfile=/var/run/ipoib_ha.pid
-srp_daemon_pidfile=/var/run/srp_daemon.pid
-
-get_interfaces()
-{
- count_ib_ports
- ports_num=$?
-
- interfaces=""
- for (( i=0 ; i < $ports_num ; i++ ))
- do
- interfaces="$interfaces ib${i}"
- done
-}
-
-# If module $1 is loaded return - 0 else - 1
-is_module()
-{
- local RC
-
- /sbin/lsmod | grep -w "$1" > /dev/null 2>&1
- RC=$?
-
- return $RC
-}
-
-get_sw_fw_info()
-{
- INFO=/etc/infiniband/info
- OFEDHOME="/usr/local"
- if [ -x ${INFO} ]; then
- OFEDHOME=$(${INFO} | grep -w prefix | cut -d '=' -f 2)
- fi
- MREAD=$(which mread 2> /dev/null)
-
- # Get OFED Build id
- if [ -r ${OFEDHOME}/BUILD_ID ]; then
- echo "Software"
- echo "-------------------------------------"
- printf "Build ID:\n"
- cat ${OFEDHOME}/BUILD_ID
- echo "-------------------------------------"
- fi
-
- # Get FW version
- if [ ! -x ${MREAD} ]; then
- return 1
- fi
-
- vendor="15b3"
- slots=$(lspci -n -d "${vendor}:" 2> /dev/null | grep -v "5a46" | cut -d ' ' -f 1)
- for mst_device in $slots
- do
- major=$($MREAD ${mst_device} 0x82478 2> /dev/null | cut -d ':' -f 2)
- subminor__minor=$($MREAD ${mst_device} 0x8247c 2> /dev/null | cut -d ':' -f 2)
- ftime=$($MREAD ${mst_device} 0x82480 2> /dev/null | cut -d ':' -f 2)
- fdate=$($MREAD ${mst_device} 0x82484 2> /dev/null | cut -d ':' -f 2)
-
- major=$(echo -n $major | cut -d x -f 2 | cut -b 4)
- subminor__minor1=$(echo -n $subminor__minor | cut -d x -f 2 | cut -b 3,4)
- subminor__minor2=$(echo -n $subminor__minor | cut -d x -f 2 | cut -b 5,6,7,8)
- echo
- echo "Device ${mst_device} Info:"
- echo "Firmware:"
-
- printf "\tVersion:"
- printf "\t$major.$subminor__minor1.$subminor__minor2\n"
-
- day=$(echo -n $fdate | cut -d x -f 2 | cut -b 7,8)
- month=$(echo -n $fdate | cut -d x -f 2 | cut -b 5,6)
- year=$(echo -n $fdate | cut -d x -f 2 | cut -b 1,2,3,4)
- hour=$(echo -n $ftime | cut -d x -f 2 | cut -b 5,6)
- min=$(echo -n $ftime | cut -d x -f 2 | cut -b 3,4)
- sec=$(echo -n $ftime | cut -d x -f 2 | cut -b 1,2)
-
- printf "\tDate:"
- printf "\t$day/$month/$year $hour:$min:$sec\n"
- done
-}
-
-# Create debug info
-get_debug_info()
-{
- trap '' 2 9 15
- DEBUG_INFO=/tmp/ib_debug_info.log
- /bin/rm -f $DEBUG_INFO
- touch $DEBUG_INFO
- echo "Hostname: `hostname -s`" >> $DEBUG_INFO
- test -e /etc/issue && echo "OS: `cat /etc/issue`" >> $DEBUG_INFO
- echo "Current kernel: `uname -r`" >> $DEBUG_INFO
- echo "Architecture: `uname -m`" >> $DEBUG_INFO
- echo "GCC version: `gcc --version`" >> $DEBUG_INFO
- echo "CPU: `cat /proc/cpuinfo | /bin/grep -E \"model name|arch\" | head -1`" >> $DEBUG_INFO
- echo "`cat /proc/meminfo | /bin/grep \"MemTotal\"`" >> $DEBUG_INFO
- echo "Chipset: `/sbin/lspci 2> /dev/null | head -1 | cut -d ':' -f 2-`" >> $DEBUG_INFO
-
- echo >> $DEBUG_INFO
- get_sw_fw_info >> $DEBUG_INFO
- echo >> $DEBUG_INFO
-
- echo >> $DEBUG_INFO
- echo "############# LSPCI ##############" >> $DEBUG_INFO
- /sbin/lspci 2> /dev/null >> $DEBUG_INFO
-
- echo >> $DEBUG_INFO
- echo "############# LSPCI -N ##############" >> $DEBUG_INFO
- /sbin/lspci -n 2> /dev/null >> $DEBUG_INFO
-
- echo >> $DEBUG_INFO
- echo "############# LSMOD ##############" >> $DEBUG_INFO
- /sbin/lsmod >> $DEBUG_INFO
-
- echo >> $DEBUG_INFO
- echo "############# DMESG ##############" >> $DEBUG_INFO
- /bin/dmesg >> $DEBUG_INFO
-
- echo >> $DEBUG_INFO
- echo "############# Messages ##############" >> $DEBUG_INFO
- tail -50 /var/log/messages >> $DEBUG_INFO
-
- echo >> $DEBUG_INFO
- echo "############# Running Processes ##############" >> $DEBUG_INFO
- /bin/ps -ef >> $DEBUG_INFO
- echo "##############################################" >> $DEBUG_INFO
-
- eerror
- eerror "Please open an issue in the http://openib.org/bugzilla and attach $DEBUG_INFO"
- eerror
-}
-
-errata_58()
-{
-# Check AMD chipset issue Errata #58
-if test -x /sbin/lspci && test -x /sbin/setpci; then
- if ( /sbin/lspci -nd 1022:1100 2> /dev/null | grep "1100" > /dev/null ) &&
- ( /sbin/lspci -nd 1022:7450 2> /dev/null | grep "7450" > /dev/null ) &&
- ( /sbin/lspci -nd 15b3:5a46 2> /dev/null | grep "5a46" > /dev/null ); then
-
- if ! ( grep FIX_AMD_8131_ERR58 $CONFIG > /dev/null ); then
- echo >> $CONFIG
- echo "# Set FIX_AMD_8131_ERR58=YES to apply AMD-8131 Errata #58 workaround" >> $CONFIG
- echo "FIX_AMD_8131_ERR58=\"YES\"" >> $CONFIG
- fi
-
- # Set default value for FIX_AMD_8131_ERR58
- if [ -z "$FIX_AMD_8131_ERR58" ]; then
- FIX_AMD_8131_ERR58="YES"
- fi
-
- CURVAL=`/sbin/setpci -d 1022:1100 69`
-
- for val in $CURVAL
- do
- if [ "${val}" != "c0" ]; then
- if [ "$FIX_AMD_8131_ERR58" == "YES" ]; then
- /sbin/setpci -d 1022:1100 69=c0
- if [ $? -eq 0 ]; then
- # echo "AMD-8131 Errata #58 workaround applied"
- break
- else
- echo "Failed to apply AMD-8131 Errata #58 workaround"
- fi
- else
- echo
- echo "Invalid configuration found for PCI-X chipset AMD-8131 (Errata #58)"
- echo
- if [ "$RUNMODE" == "manual" ]; then
- read -p "Do you wish to continue anyway? [y/N]:"
- if [[ "$REPLY" != "y" && "$REPLY" != "yes" ]]; then
- exit 1
- fi
- break
- else
- exit 1
- fi
- fi
- fi
- done
-
- fi
-fi
-
-}
-
-errata_56()
-{
-# Check AMD chipset issue Errata #56
-if test -x /sbin/lspci && test -x /sbin/setpci; then
- if ( /sbin/lspci -nd 1022:1100 2> /dev/null | grep "1100" > /dev/null ) &&
- ( /sbin/lspci -nd 1022:7450 2> /dev/null | grep "7450" > /dev/null ) &&
- ( /sbin/lspci -nd 15b3:5a46 2> /dev/null | grep "5a46" > /dev/null ); then
-
- if ! ( grep FIX_AMD_8131_ERR56 $CONFIG > /dev/null ); then
- echo >> $CONFIG
- echo "# Set FIX_AMD_8131_ERR56=YES to apply AMD-8131 Errata #56 workaround" >> $CONFIG
- echo "FIX_AMD_8131_ERR56=\"YES\"" >> $CONFIG
- fi
-
- # Set default value for FIX_AMD_8131_ERR56
- if [ -z "$FIX_AMD_8131_ERR56" ]; then
- FIX_AMD_8131_ERR56="YES"
- fi
-
- bus=""
-
- # Look for devices AMD-8131
- for amd_dev in `/sbin/setpci -v -f -d 1022:7450 19 | cut -d':' -f1,2`
- do
-
- bus=`/sbin/setpci -s $amd_dev 19`
- rev=`/sbin/setpci -s $amd_dev 8`
-
-
- # Look for Tavor attach to secondary bus of this devices
- for device in `/sbin/setpci -f -s $bus: -d 15b3:5a46 19`
- do
- if [ $rev -lt 13 ]; then
- if [ "$FIX_AMD_8131_ERR56" == "YES" ]; then
- /sbin/setpci -d 15b3:5a44 72=14
- if [ $? -eq 0 ]; then
- # echo "AMD-8131 Errata #56 workaround applied"
- break
- else
- echo "Failed to apply AMD-8131 Errata #56 workaround"
- fi
- else
- echo
- echo "Invalid configuration found for PCI-X chipset AMD-8131 (Errata #56)"
- echo
-
- if [ "$RUNMODE" == "manual" ]; then
- read -p "Do you wish to continue anyway? [y/N]:"
- if [[ "$REPLY" != "y" && "$REPLY" != "yes" ]]; then
- exit 1
- fi
- break
- else
- exit 1
- fi
- fi
-
- else
- continue
- fi
-
- # If more than one device is on the bus the issue a
- # warning
- num=`/sbin/setpci -f -s $bus: 0 | wc -l | sed 's/\ *//g'`
-
- if [ $num -gt 1 ]; then
- echo "Warning: your current PCI-X configuration might be incorrect."
- echo "see AMD-8131 Errata 56 for more details."
- fi
-
- done
- done
-
- fi
-fi
-}
-
-rotate_log()
-{
- local log=$1
- if [ -s ${log} ]; then
- cat ${log} >> ${log}.$(date +%Y-%m-%d)
- /bin/rm -f ${log}
- fi
- touch ${log}
-}
-
-set_ipoib_cm()
-{
- local i=$1
- shift
-
- if [ ! -e /sys/class/net/${i}/mode ]; then
- echo "Failed to configure IPoIB connected mode for ${i}"
- return 1
- fi
-
- echo connected > /sys/class/net/${i}/mode
- /sbin/ifconfig ${i} mtu ${IPOIB_MTU}
-}
-
-bring_up()
-{
- local i=$1
- shift
-
- /etc/init.d/net.$i start
-
- if [ "X${SET_IPOIB_CM}" == "Xyes" ]; then
- set_ipoib_cm ${i}
- fi
-
- return $?
-}
-
-####
-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 - dont 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"
-
-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)
-
- errata_58
-
- einfo "Loading HCA and Access Layer drivers"
-
- eindent
- if [[ "${MTHCA_LOAD}" == "yes" ]]; then
- ebegin "modprobe ib_mthca"
- /sbin/modprobe ib_mthca > /dev/null 2>&1
- RC=$[ $RC + $? ]
- eend $?
- fi
- if [[ "${IPATH_LOAD}" == "yes" ]]; then
- ebegin "modprobe ib_ipath"
- /sbin/modprobe ib_ipath > /dev/null 2>&1
- RC=$[ $RC + $? ]
- eend $?
- fi
- if [[ "${EHCA_LOAD}" == "yes" ]]; then
- ebegin "modprobe ib_ehca"
- /sbin/modprobe ib_ehca > /dev/null 2>&1
- RC=$[ $RC + $? ]
- eend $?
- fi
- eoutdent
-
- # 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
-
- eindent
- if [ $RC -eq 0 ]; then
- ebegin "modprobe ib_umad"
- /sbin/modprobe ib_umad > /dev/null 2>&1
- RC=$[ $RC + $? ]
- eend $RC
- fi
- if [ $RC -eq 0 ]; then
- ebegin "modprobe ib_uverbs"
- /sbin/modprobe ib_uverbs > /dev/null 2>&1
- RC=$[ $RC + $? ]
- eend $RC
- fi
- eoutdent
-
- if [ $RC -eq 0 ] && [ $IPOIB -eq 1 ]; then
- # this section is not necessary if all ip-over-ib devices are
- # aliased properly in /etc/modules.d/openib
- ebegin "modprobe ib_ipoib"
- /sbin/modprobe ib_ipoib > /dev/null 2>&1
- RC=$[ $RC + $? ]
- eend $?
- fi
-
- if [ $RC -ne 0 ]; then
- eerror "Loading HCA driver and Access Layer: "
- get_debug_info
- eoutdent
- eend $RC
- return
- fi
-
- if [ $IPOIB -eq 1 ]; 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.
- get_interfaces
- for i in $interfaces
- do
- if [ -e /etc/init.d/net.$i ]; then
- einfo "starting ipoib device $i"
- bring_up $i
- fi
- done
-
- # leaving out the "Bring up child interfaces if configured" section.
-
- if [ "X${IPOIBHA_ENABLE}" == "Xyes" ]; then
- ipoib_ha_log="/var/log/ipoib_ha.log"
- rotate_log ${ipoib_ha_log}
- # Added sleep in order to wait for IPoIB interfaces to be UP
- sleep 1
- if [ ! -z "${PRIMARY_IPOIB_DEV}" ] && [ ! -z "${SECONDARY_IPOIB_DEV}" ]; then
- ipoib_ha.pl -p ${PRIMARY_IPOIB_DEV} -s ${SECONDARY_IPOIB_DEV} --with-arping --with-multicast -v > ${ipoib_ha_log} 2>&1 &
- else
- ipoib_ha.pl --with-arping --with-multicast -v > ${ipoib_ha_log} 2>&1 &
- fi
- ipoib_ha_pid=$!
- echo ${ipoib_ha_pid} > ${ipoib_ha_pidfile}
- elif [ "X${IPOIBBOND_ENABLE}" == "Xyes" ]; then
- if ( test ! -z $IPOIB_BONDS && which ib-bond &>/dev/null ) ; then
- echo Setting up bonding interfaces:
- for bond in $(echo $IPOIB_BONDS|tr , " ") ; do
- eval bond_ip=\$${bond}_IP
- if [ -z $bond_ip ]; then
- echo No IP address defined for $bond
- continue
- fi
- eval bond_slaves=\$${bond}_SLAVES
- if [ -z $bond_slaves ]; then
- echo No slaves defined for $bond
- continue
- fi
- ib-bond --bond-name $bond --bond-ip $bond_ip --slaves $bond_slaves
- RC=$?
- if [ $RC -eq 0 ] ; then
- einfo "Bringing up interface $bond"
- else
- eerror "Bringing up interface $bond"
- fi
- if [ "X${SET_IPOIB_CM}" == "Xyes" ]; then
- for slave in $(echo $bond_slaves|tr , " ") ; do
- set_ipoib_cm ${slave}
- done
- /sbin/ifconfig $bond mtu ${IPOIB_MTU}
- fi
- 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
- ;;
- ib_srp)
- /sbin/modprobe $mod > /dev/null 2>&1
- if [ "X${SRPHA_ENABLE}" == "Xyes" ]; then
- if [ ! -x /sbin/multipath ]; then
- ewarn "/sbin/multipath is required to enable SRP HA."
- else
- # Create 91-srp.rules file
- mkdir -p /etc/udev/rules.d
- if [ "$DISTRIB" == "SuSE" ]; then
- cat > /etc/udev/rules.d/91-srp.rules << EOF
-ACTION=="add", KERNEL=="sd*[!0-9]", RUN+="/sbin/multipath %M:%m"
-EOF
- fi
- /sbin/modprobe dm_multipath > /dev/null 2>&1
- srp_daemon.sh &
- srp_daemon_pid=$!
- echo ${srp_daemon_pid} > ${srp_daemon_pidfile}
- fi
- fi
- ;;
- *)
- /sbin/modprobe $mod > /dev/null 2>&1
- ;;
- esac
- RC=$?
- [ $RC -ne 0 ] && eerror "Failed to load $mod"
- done
- fi
-
- errata_56
- sleep 1
-
- # skipping udevstart stuff from ofed_scripts/openibd
-
- # Create vnic interfaces. This needs to be done after udevstart
- if [ "X${VNIC_LOAD}" == "Xyes" ]; then
- if [[ ! -e /dev/infiniband/umad0 && ! -e /dev/infiniband/umad1 ]]; then
- echo "/dev/infiniband/umad0 or /dev/infiniband/umad1 not present."
- echo "Cannot create VNIC interfaces."
- eerror "Bringing up VNIC interfaces"
- elif is_module ib_vnic; then
- echo "Setting up VNIC interfaces..."
- vnic_parser.pl -v > /dev/null 2>&1
- res=$?
- if [ $res != 0 ]; then
- if [ $res == 2 ]; then
- echo "Created VNIC interfaces but with errors. Please refer to /var/log/messages."
- eerror "Bringing up VNIC interfaces"
- else
- echo "Error in parsing VNIC configuration file. Please refer to /var/log/messages."
- eerror "Bringing up VNIC interfaces"
- fi
- else
- einfo "Bringing up VNIC interfaces"
- fi
- else
- echo "Module ib_vnic not loaded."
- eerror "Bringing up VNIC interfaces"
- fi
- fi
-
- if [ X${RENICE_IB_MAD} == "Xyes" ]; then
- # Set max_ports_num_in_hca variable
- count_ib_ports
- ports_num=$?
- list_of_ibmads=""
- for (( i=1 ; $i <= ${max_ports_num_in_hca} ; i++ ))
- do
- list_of_ibmads="${list_of_ibmads} ib_mad${i}"
- done
-
- ib_mad_pids=($(pidof ${list_of_ibmads} 2> /dev/null))
- num_of_root_ibmad_procs=$(/bin/ps h -o user -p ${ib_mad_pids[*]} | grep -w root | wc -l)
- get_pid_retries=0
- while [ ${num_of_root_ibmad_procs} -lt $ports_num ]
- do
- # Wait maximum for 5 sec to get ib_mad process pid
- if [ $get_pid_retries -gt 10 ]; then
- echo Failed to get $ports_num ib_mad PIDs to renice. Got ${num_of_root_ibmad_procs}.
- break
- fi
- usleep 500000
- ib_mad_pids=($(pidof ${list_of_ibmads} 2> /dev/null))
- num_of_root_ibmad_procs=$(/bin/ps h -o user -p ${ib_mad_pids[*]} | grep -w root | wc -l)
- let get_pid_retries++
- done
- for ib_mad_pid in ${ib_mad_pids[*]}
- do
- if [ "$(/bin/ps -p ${ib_mad_pid} h -o user 2> /dev/null)" == "root" ]; then
- renice -19 ${ib_mad_pid} > /dev/null 2>&1
- fi
- done
- fi
-
- eoutdent
- eend $RC
-}
-
-unload()
-{
- # Unload module $1
- local mod=$1
- local unload_log
- 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.
- unload_log=`/sbin/rmmod $mod 2>&1`
- if [ $? -ne 0 ]; then
- eerror "Unloading $mod"
- if [ ! -z "${unload_log}" ]; then
- echo $unload_log
- fi
- # get_debug_info
- [ ! -z $2 ] && echo $2
- exit 1
- fi
- fi
- fi
-
-}
-
-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
-
- # Stop IPoIB HA daemon if running
- if [ -f $ipoib_ha_pidfile ]; then
- local line p
- read line < $ipoib_ha_pidfile
- for p in $line ; do
- [ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && ipoib_ha_pids="$ipoib_ha_pids $p"
- done
- /bin/rm -f $ipoib_ha_pidfile
- fi
-
- if [ -n "${ipoib_ha_pids:-}" ]; then
- kill -9 ${ipoib_ha_pids} > /dev/null 2>&1
- mcastpid=$(pidof -x mcasthandle)
- if [ -n "${mcastpid:-}" ]; then
- kill -9 ${mcastpid} > /dev/null 2>&1
- fi
- fi
-
- # Down all bond interfaces
- if ( which ib-bond &>/dev/null ) ; then
- ib-bond --stop-all
- fi
-
- # Stop SRP HA daemon if running
- if [ -f $srp_daemon_pidfile ]; then
- local line p
- read line < $srp_daemon_pidfile
- for p in $line ; do
- [ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && srp_daemon_pids="$srp_daemon_pids $p"
- done
- /bin/rm -f $srp_daemon_pidfile
- fi
-
- if [ -n "${srp_daemon_pids:-}" ]; then
- kill -15 ${srp_daemon_pids} > /dev/null 2>&1
- fi
-
- if [ "X${SRPHA_ENABLE}" == "Xyes" ]; then
- /bin/rm -f /etc/udev/rules.d/91-srp.rules > /dev/null 2>&1
- mpath_pids=$(pidof -x multipath)
- if [ -n "${mpath_pids:-}" ]; then
- kill -9 ${mpath_pids} > /dev/null 2>&1
- fi
-
- if is_module ib_srp; then
- for f in `/bin/ls /sys/class/scsi_host`
- do
- if [ -f /sys/class/scsi_host/$f/local_ib_port ]; then
- for i in `/bin/ls -d /sys/class/scsi_host/$f/device/target*/*/block* | awk -F: '{print $NF}'`
- do
- mdev=`/sbin/scsi_id -g -s /block/$i 2> /dev/null`
- if [ -n "${mdev}" ]; then
- /sbin/multipath -f $mdev > /dev/null 2>&1
- fi
- done
- fi
- done
- fi
- fi
-
- # Unload modules
- if [ "$UNLOAD_MODULES" != "" ]; then
- for mod in $UNLOAD_MODULES
- do
- unload $mod
- done
- fi
-
- eend $RC
-}
-
View
12 sys-infiniband/openib-drivers/files/openib.modprobe
@@ -1,12 +0,0 @@
-# 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
-
View
148 sys-infiniband/openib-drivers/openib-drivers-1.5.2.ebuild
@@ -1,148 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-inherit rpm linux-mod
-
-DESCRIPTION="OpenIB kernel modules"
-HOMEPAGE="http://www.openfabrics.org/"
-SHORT_PV=${PV%\.[^.]}
-SRC_URI="http://www.openfabrics.org/builds/ofed-${PV}/release/OFED-${PV}.tgz"
-MY_P="OFED-${PV}"
-S="${WORKDIR}/ofa_kernel-${PV}"
-
-LICENSE="|| ( GPL-2 BSD-2 )"
-SLOT="2.6.32-1.5"
-
-KEYWORDS="~x86 ~amd64"
-IUSE="memtrack hpage-patch srp ipath iser ehca mlx4 rds madeye cxgb3 debug"
-
-RDEPEND=""
-PDEPEND="=sys-infiniband/openib-files-${PV}"
-DEPEND="${RDEPEND}
- virtual/linux-sources"
-
-pkg_setup() {
-
- CONFIG_CHECK="!INFINIBAND PCI"
- ERROR_INFINIBAND="Infiniband is already compiled into the kernel."
- ERROR_PCI="PCI must be enabled in the kernel."
-
- linux-mod_pkg_setup
-}
-
-src_unpack() {
- unpack ${A} || die "unpack failed"
- rpm_unpack ./${MY_P}/SRPMS/ofa_kernel-${PV}-OFED.${PV}..src.rpm
- tar xzf ofa_kernel-${PV}.tgz
-
- # These patches are malformed in the released archive. They have been
- # re-downloaded from Linus' gitweb (and stripped of non-existing files)
- _patches=("net_skb-dst_accessors.patch" "new_frags_interface.patch")
- for _patch in ${_patches[*]}; do
- rm "${S}/kernel_patches/backport/2.6.32/${_patch}"
- cp "${FILESDIR}/${_patch}" "${S}/kernel_patches/backport/2.6.32/${_patch}"
- done
-
- # Unneeded:
- rm "${S}/kernel_patches/backport/2.6.32/mlx4_semaphore_include.patch"
-}
-
-make_target() {
- local myARCH="${ARCH}" myABI="${ABI}"
- ARCH="$(tc-arch-kernel)"
- ABI="${KERNEL_ABI}"
-
- emake HOSTCC=$(tc-getBUILD_CC) CC=$(get-KERNEL_CC) $@ \
- || die "Unable to run emake $@"
-
- ARCH="${myARCH}"
- ABI="${myABI}"
-}
-
-src_compile() {
- convert_to_m Makefile
-
- export CONFIG_INFINIBAND="m"
- export CONFIG_INFINIBAND_IPOIB="m"
- export CONFIG_INFINIBAND_SDP="m"
- export CONFIG_INFINIBAND_SRP="m"
-
- export CONFIG_INFINIBAND_USER_MAD="m"
- export CONFIG_INFINIBAND_USER_ACCESS="m"
- export CONFIG_INFINIBAND_ADDR_TRANS="y"
- export CONFIG_INFINIBAND_MTHCA="m"
- export CONFIG_INFINIBAND_IPATH="m"
-
- CONF_PARAMS="--prefix=${ROOT}usr --kernel-version=${KV_FULL}
- --with-core-mod
- --with-ipoib-mod
- --with-ipoib-cm
- --with-sdp-mod
- --with-user_mad-mod
- --with-user_access-mod
- --with-addr_trans-mod
- --with-mthca-mod"
- CONF_PARAMS="$CONF_PARAMS
- $(use_with srp)-mod
- $(use_with ipath)_inf-mod
- $(use_with iser)-mod
- $(use_with ehca)-mod
- $(use_with mlx4)-mod
- $(use_with rds)-mod
- $(use_with madeye)-mod
- $(use_with cxgb3)-mod"
- if use debug; then
- CONF_PARAMS="$CONF_PARAMS
- --with-mthca_debug-mod
- --with-ipoib_debug-mod
- --with-sdp_debug-mod
- $(use_with srp)_debug-mod
- $(use_with rds)_debug-mod
- $(use_with mlx4)_debug-mod
- $(use_with cxgb3)_debug-mod"
- else
- CONF_PARAMS="$CONF_PARAMS
- --without-mthca_debug-mod
- --without-ipoib_debug-mod
- --without-sdp_debug-mod"
- fi
- ebegin "Configuring"
- local myARCH="${ARCH}" myABI="${ABI}"
- ARCH="$(tc-arch-kernel)"
- ABI="${KERNEL_ABI}"
- ./configure ${CONF_PARAMS} ${EXTRA_ECONF} \
- || die "configure failed with options: ${CONF_PARAMS}"
- ARCH="${myARCH}"
- ABI="${myABI}"
- eend
-
- #sed -i '/DEPMOD.*=.*depmod/s/=.*/= :/' ./Makefile
- #grep DEPMOD Makefile
-
- make_target
-}
-
-src_install() {
-
- make_target DESTDIR="${D}" install
-
- insinto /usr/include/rdma
- cd ${S}/include/rdma
- for f in *.h; do
- doins ${f}
- done
-
- insinto /usr/include/scsi
- cd ${S}/include/scsi
- for f in *.h; do
- doins ${f}
- done
-
-}
-
-pkg_postinst() {
-
- linux-mod_pkg_postinst
-
-}
View
151 sys-infiniband/openib-drivers/openib-drivers-1.5.3.1.ebuild
@@ -1,151 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-inherit rpm linux-mod
-
-DESCRIPTION="OpenIB kernel modules"
-HOMEPAGE="http://www.openfabrics.org/"
-SHORT_PV=${PV%\.[^.]}
-SRC_URI="http://www.openfabrics.org/builds/ofed-${SHORT_PV}/release/OFED-${PV}.tgz"
-MY_P="OFED-${PV}"
-S="${WORKDIR}/ofa_kernel-${PV}"
-
-LICENSE="|| ( GPL-2 BSD-2 )"
-MY_KERN_VER="2.6.32"
-SLOT="${MY_KERN_VER}-1.5"
-
-KEYWORDS="~x86 ~amd64"
-IUSE="memtrack hpage-patch srp ipath iser ehca mlx4 rds madeye cxgb3 debug"
-
-RDEPEND=""
-PDEPEND="=sys-infiniband/openib-files-${PV}"
-DEPEND="${RDEPEND}
- virtual/linux-sources"
-
-pkg_setup() {
-
- CONFIG_CHECK="!INFINIBAND PCI"
- ERROR_INFINIBAND="Infiniband is already compiled into the kernel."
- ERROR_PCI="PCI must be enabled in the kernel."
-
- linux-mod_pkg_setup
-}
-
-src_unpack() {
- unpack ${A} || die "unpack failed"
- rpm_unpack ./${MY_P}/SRPMS/ofa_kernel-${PV}-OFED.${PV}..src.rpm
- tar xzf ofa_kernel-${PV}.tgz
-
- # These patches are malformed in the released archive. They have been
- # re-downloaded from Linus' gitweb (and stripped of non-existing files)
- _patches=("net_skb-dst_accessors.patch" "new_frags_interface.patch")
- for _patch in ${_patches[*]}; do
- rm "${S}/kernel_patches/backport/${MY_KERN_VER}/${_patch}"
- cp "${FILESDIR}/${_patch}" "${S}/kernel_patches/backport/${MY_KERN_VER}/${_patch}"
- done
-
- # Unneeded:
- rm "${S}/kernel_patches/backport/${MY_KERN_VER}/mlx4_semaphore_include.patch"
- # Does not apply
- rm "${S}/kernel_patches/fixes/mlx4_x_0150_Fix_mlx4_ib_reg_xrc_rcv_qp_locking.patch"
-}
-
-make_target() {
- local myARCH="${ARCH}" myABI="${ABI}"
- ARCH="$(tc-arch-kernel)"
- ABI="${KERNEL_ABI}"
-
- emake HOSTCC=$(tc-getBUILD_CC) CC=$(get-KERNEL_CC) $@ \
- || die "Unable to run emake $@"
-
- ARCH="${myARCH}"
- ABI="${myABI}"
-}
-
-src_compile() {
- convert_to_m Makefile
-
- export CONFIG_INFINIBAND="m"
- export CONFIG_INFINIBAND_IPOIB="m"
- export CONFIG_INFINIBAND_SDP="m"
- export CONFIG_INFINIBAND_SRP="m"
-
- export CONFIG_INFINIBAND_USER_MAD="m"
- export CONFIG_INFINIBAND_USER_ACCESS="m"
- export CONFIG_INFINIBAND_ADDR_TRANS="y"
- export CONFIG_INFINIBAND_MTHCA="m"
- export CONFIG_INFINIBAND_IPATH="m"
-
- CONF_PARAMS="--prefix=${ROOT}usr --kernel-version=${KV_FULL}
- --with-core-mod
- --with-ipoib-mod
- --with-ipoib-cm
- --with-sdp-mod
- --with-user_mad-mod
- --with-user_access-mod
- --with-addr_trans-mod
- --with-mthca-mod"
- CONF_PARAMS="$CONF_PARAMS
- $(use_with srp)-mod
- $(use_with ipath)_inf-mod
- $(use_with iser)-mod
- $(use_with ehca)-mod
- $(use_with mlx4)-mod
- $(use_with rds)-mod
- $(use_with madeye)-mod
- $(use_with cxgb3)-mod"
- if use debug; then
- CONF_PARAMS="$CONF_PARAMS
- --with-mthca_debug-mod
- --with-ipoib_debug-mod
- --with-sdp_debug-mod
- $(use_with srp)_debug-mod
- $(use_with rds)_debug-mod
- $(use_with mlx4)_debug-mod
- $(use_with cxgb3)_debug-mod"
- else
- CONF_PARAMS="$CONF_PARAMS
- --without-mthca_debug-mod
- --without-ipoib_debug-mod
- --without-sdp_debug-mod"
- fi
- ebegin "Configuring"
- local myARCH="${ARCH}" myABI="${ABI}"
- ARCH="$(tc-arch-kernel)"
- ABI="${KERNEL_ABI}"
- ./configure ${CONF_PARAMS} ${EXTRA_ECONF} \
- || die "configure failed with options: ${CONF_PARAMS}"
- ARCH="${myARCH}"
- ABI="${myABI}"
- eend
-
- #sed -i '/DEPMOD.*=.*depmod/s/=.*/= :/' ./Makefile
- #grep DEPMOD Makefile
-
- make_target
-}
-
-src_install() {
-
- make_target DESTDIR="${D}" install
-
- insinto /usr/include/rdma
- cd ${S}/include/rdma
- for f in *.h; do
- doins ${f}
- done
-
- insinto /usr/include/scsi
- cd ${S}/include/scsi
- for f in *.h; do
- doins ${f}
- done
-
-}
-
-pkg_postinst() {
-
- linux-mod_pkg_postinst
-
-}
View
10 sys-infiniband/openib-files/Manifest
@@ -1,10 +0,0 @@
-AUX 90-ib.rules 232 RMD160 13aeac8b6ee3bb486257d1e43ce3ab73383816e9 SHA1 df6bde030ba8916eb5872b936fe816cebd189005 SHA256 c44d4937d60bb5b02d2b73d0a0e59a6b094555b060e31f2193c546dfe146f5d3
-AUX openib 6862 RMD160 abd906dc047de6d9e3c66f1d493b5feccf845eba SHA1 87099ee45108639dbae9c203d88091717b1ea3be SHA256 dbd183a768ee8aa171cf0719591374bb009e61db8cff2a4e3cee2f25a01d490f
-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
-AUX openib.modprobe.1.2.5.5 378 RMD160 9f1e3ac9e64dd8f6e06c5897f89adda6938ae32a SHA1 c2028997f0aaffedb3ff8fbc746ca1843bfa890a SHA256 dbadca866ab8e51adae43902b3246614426626f7d807f48486036ccb7a586aa2
-DIST OFED-1.5.2.tgz 73726958 RMD160 8c4ee90b3322f8d0842643ae39e4450a708613f4 SHA1 09ec76a3d2bce0fb7d6e148a05454c307c6da3cb SHA256 60aca976b89cca2ce8b57a2b925d9731096c21980d60fa954927fb3c835d5f51
-DIST OFED-1.5.3.1.tgz 75331712 RMD160 03675604e228c30d630d95f514522a091326c213 SHA1 7d56d4904124cc3ea926f7a4c862069611c25334 SHA256 9cdf2e78ce1a3c0b367d75593cbd344390a1f3f02ac13d6ecfa37b0d05ac89e4
-EBUILD openib-files-1.5.2.ebuild 4102 RMD160 1aca7d484a0f493fecfa007535e6eb7de609e847 SHA1 3351f66b33898ee6329cd53a3f5435882bed0c43 SHA256 92b6324f131a092a91696d2156015b8167c99e59f117c3d7ea2933301fa2eef7
-EBUILD openib-files-1.5.3.1.ebuild 4137 RMD160 12bed5e33fd5902ff10dc84652ad74fe99577250 SHA1 2886a59148337f87977997a074d8d89df6e42fe7 SHA256 d00e0e9ca2ab0b39a042654c55cadac6c0826e52f92fe3312937675f461ced3e
View
5 sys-infiniband/openib-files/files/90-ib.rules
@@ -1,5 +0,0 @@
-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"
View
243 sys-infiniband/openib-files/files/openib
@@ -1,243 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-# 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"