Fix mellanox element required kernel modules and user space packages

This fix add need kernel module for Infiniband and ConnectX-4+ network
cards.
Also install by default required user space packages.
Change-Id: Ia2e7b1820f197778138a23fafaccb5a4fb44369a
This commit is contained in:
Noam Angel 2016-09-04 10:12:35 +03:00
parent ca53af1184
commit 07e34f90e7
7 changed files with 118 additions and 1 deletions

View File

@ -0,0 +1,2 @@
package-installs
pkg-map

View File

@ -1,3 +1,7 @@
# extra load for mellanox
modprobe mlx4_en
modprobe mlx4_ib
modprobe ib_ipoib
modprobe mlx5_ib
modprobe ib_umad
modprobe ib_uverbs

View File

@ -10,4 +10,12 @@ set -o pipefail
home=$(dirname $0)
install -m 0644 -o root -g root $home/mellanox-rules.udev /etc/udev/rules.d/81-mellanox.rules
# needed kernel modules; mlx4_en mlx4_ib ib_ipoib mlx5_ib ib_umad ib_uverbs
# mlx5_core loaded by mlx5_ib
echo "mlx4_en" >>/etc/modules
echo "mlx4_ib" >>/etc/modules
echo "ib_ipoib" >>/etc/modules
echo "mlx5_ib" >>/etc/modules
echo "ib_umad" >>/etc/modules
echo "ib_uverbs" >>/etc/modules

View File

@ -1,6 +1,11 @@
ACTION!="add", GOTO="drivers_end"
SUBSYSTEM=="net", RUN+="/sbin/modprobe mlx4_en"
SUBSYSTEM=="net", RUN+="/sbin/modprobe mlx4_ib"
SUBSYSTEM=="net", RUN+="/sbin/modprobe ib_ipoib"
SUBSYSTEM=="net", RUN+="/sbin/modprobe mlx5_ib"
SUBSYSTEM=="net", RUN+="/sbin/modprobe ib_umad"
SUBSYSTEM=="net", RUN+="/sbin/modprobe ib_uverbs"
LABEL="drivers_end"

View File

@ -0,0 +1,26 @@
dkms:
ibacm:
ibutils:
ibverbs-utils:
infiniband-diags:
libibcm:
libibcommon:
libibmad:
libibumad:
libibverbs:
libibverbs-runtime:
libmlx4:
libmlx4-dev:
libmlx5:
librdmacm:
librdmacm-dev:
librdmacm-runtime:
mstflint:
opensm:
pciutils:
perftest:
qperf:
rdma:
rpm-build:
srptools:
vlan:

67
elements/mellanox/pkg-map Normal file
View File

@ -0,0 +1,67 @@
{
"family": {
"debian":{
"dkms": "dkms",
"libibverbs": "libibverbs*",
"ibacm": "ibacm",
"librdmacm": "librdmacm*",
"libmlx4": "libmlx4*",
"libmlx5": "libmlx5*",
"libibcm": "libibcm.*",
"libibmad": "libibmad.*",
"libibumad": "libibumad*",
"libmlx4-dev": "libmlx4-dev",
"librdmacm-dev": "librdmacm-dev",
"rdma": "rdmacm-utils",
"vlan": "vlan",
"ibverbs-utils": "ibverbs-utils"
},
"redhat": {
"libibverbs": "libibverbs.*",
"librdmacm": "librdmacm.*",
"libmlx4": "libmlx4.*",
"libmlx5": "libmlx5.*",
"libibcm": "libibcm.*",
"libibmad": "libibmad.*",
"libibumad": "libibumad.*",
"rdma": "rdma",
"qperf": "qperf",
"pciutils": "pciutils"
},
"suse":{
"libibverbs": "libibverbs",
"librdmacm": "librdmacm",
"libmlx4": "libmlx4",
"libmlx5": "libmlx5",
"libibcm": "libibcm",
"libibmad": "libibmad",
"libibumad": "libibumad",
"rdma": "rdma",
"qperf": "qperf",
"rpm-build": "rpm-build",
"libibverbs-runtime": "libibverbs-runtime",
"librdmacm-runtime": "librdmacm-runtime",
"libibcommon": "libibcommon"
}
},
"default": {
"infiniband-diags": "infiniband-diags",
"mstflint": "mstflint",
"opensm": "opensm",
"srptools": "srptools",
"libmlx4-dev": "",
"librdmacm-dev": "",
"ibutils": "ibutils",
"perftest": "perftest",
"vlan": "",
"pciutils": "",
"ibverbs-utils": "",
"rpm-build": "",
"libibverbs-runtime": "",
"librdmacm-runtime": "",
"ibacm": "",
"qperf": "",
"dkms": "",
"libibcommon": ""
}
}

View File

@ -1,6 +1,11 @@
ACTION!="add", GOTO="drivers_end"
SUBSYSTEM=="net", RUN+="/sbin/modprobe mlx4_en"
SUBSYSTEM=="net", RUN+="/sbin/modprobe mlx4_ib"
SUBSYSTEM=="net", RUN+="/sbin/modprobe ib_ipoib"
SUBSYSTEM=="net", RUN+="/sbin/modprobe mlx5_ib"
SUBSYSTEM=="net", RUN+="/sbin/modprobe ib_umad"
SUBSYSTEM=="net", RUN+="/sbin/modprobe ib_uverbs"
LABEL="drivers_end"