import rdma-core-32.0-1.el8
This commit is contained in:
commit
14302db10b
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
SOURCES/rdma-core-32.0.tar.gz
|
||||
SOURCES/rxe_cfg.8.gz
|
2
.rdma-core.metadata
Normal file
2
.rdma-core.metadata
Normal file
@ -0,0 +1,2 @@
|
||||
9b86b0000880648824ffdb11dde4d06c206f2536 SOURCES/rdma-core-32.0.tar.gz
|
||||
9187638355d9bee854989bbfc6c2956301fd52aa SOURCES/rxe_cfg.8.gz
|
51546
SOURCES/0001-ABI-Files.patch
Normal file
51546
SOURCES/0001-ABI-Files.patch
Normal file
File diff suppressed because it is too large
Load Diff
203
SOURCES/ibdev2netdev
Normal file
203
SOURCES/ibdev2netdev
Normal file
@ -0,0 +1,203 @@
|
||||
#! /bin/bash
|
||||
|
||||
usage()
|
||||
{
|
||||
echo "$(basename $0) <options>"
|
||||
echo "-h, --help print help message"
|
||||
echo "-v, --verbose print more info"
|
||||
}
|
||||
|
||||
case $1 in
|
||||
"-h" | "--help")
|
||||
usage
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
if (( $# > 1 )); then
|
||||
usage
|
||||
exit -1
|
||||
fi
|
||||
|
||||
if (( $# == 1 )) && [ "$1" != "-v" ]; then
|
||||
usage
|
||||
exit -1
|
||||
fi
|
||||
|
||||
ibdevs=$(ls /sys/class/infiniband/)
|
||||
|
||||
devs=''
|
||||
for netdev in $(/bin/ls /sys/class/net/); do
|
||||
if [ -e /sys/class/net/${netdev}/device/infiniband ]; then
|
||||
devs="${devs} ${netdev}"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ "x$devs" == "x" ]; then
|
||||
# no relevant devices - quit immediately
|
||||
exit
|
||||
fi
|
||||
|
||||
for d in $devs; do
|
||||
if [ -f /sys/class/net/$d/dev_id ]; then
|
||||
oldstyle=n
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
function print_line()
|
||||
{
|
||||
echo "$1 port $2 <===> $3"
|
||||
}
|
||||
|
||||
function find_guid()
|
||||
{
|
||||
ibdevs=$(ls /sys/class/infiniband/)
|
||||
for ibdev in $ibdevs; do
|
||||
ports=$(ls /sys/class/infiniband/$ibdev/ports/)
|
||||
for port in $ports; do
|
||||
gids=$(ls /sys/class/infiniband/$ibdev/ports/$port/gids)
|
||||
for gid in $gids; do
|
||||
pguid=$(cat /sys/class/infiniband/$ibdev/ports/$port/gids/$gid | cut -b 21- | sed -e 's/://g')
|
||||
if [ x$pguid == x$1 ]; then
|
||||
print_line $ibdev $port $2
|
||||
fi
|
||||
done
|
||||
done
|
||||
done
|
||||
}
|
||||
|
||||
function find_mac()
|
||||
{
|
||||
ibdevs=$(ls /sys/class/infiniband/)
|
||||
for ibdev in $ibdevs; do
|
||||
type=$(cat /sys/class/infiniband/$ibdev/node_type|cut -d ' ' -f 2)
|
||||
ports=$(ls /sys/class/infiniband/$ibdev/ports/)
|
||||
for port in $ports; do
|
||||
gids=$(ls /sys/class/infiniband/$ibdev/ports/$port/gids)
|
||||
for gid in $gids; do
|
||||
if [[ "$type" = "RNIC" ]]; then
|
||||
pmac=$(cat /sys/class/infiniband/$ibdev/ports/$port/gids/$gid | cut -b 1-14|sed -e 's/://g')
|
||||
else
|
||||
first=$(cat /sys/class/infiniband/$ibdev/ports/$port/gids/$gid | cut -b 21-22)
|
||||
first=$(( first ^ 2 ))
|
||||
first=$(printf "%02x" $first)
|
||||
second=$(cat /sys/class/infiniband/$ibdev/ports/$port/gids/$gid | cut -b 21- | sed -e 's/://g' | cut -b 3-6)
|
||||
third=$(cat /sys/class/infiniband/$ibdev/ports/$port/gids/$gid | cut -b 21- | sed -e 's/://g' | cut -b 11-)
|
||||
pmac=$first$second$third
|
||||
fi
|
||||
if [ x$pmac == x$1 ]; then
|
||||
print_line $ibdev $port $2
|
||||
fi
|
||||
done
|
||||
done
|
||||
done
|
||||
}
|
||||
|
||||
if [ "x$oldstyle" == "xn" ]; then
|
||||
for d in $ibdevs; do
|
||||
ibrsc=$(cat /sys/class/infiniband/$d/device/resource)
|
||||
eths=$(ls /sys/class/net/)
|
||||
for eth in $eths; do
|
||||
filepath_resource=/sys/class/net/$eth/device/resource
|
||||
|
||||
if [ -f $filepath_resource ]; then
|
||||
ethrsc=$(cat $filepath_resource)
|
||||
if [ "x$ethrsc" == "x$ibrsc" ]; then
|
||||
filepath_devid=/sys/class/net/$eth/dev_id
|
||||
filepath_devport=/sys/class/net/$eth/dev_port
|
||||
if [ -f $filepath_devid ]; then
|
||||
port1=0
|
||||
if [ -f $filepath_devport ]; then
|
||||
port1=$(cat $filepath_devport)
|
||||
port1=$(printf "%d" $port1)
|
||||
fi
|
||||
|
||||
port=$(cat $filepath_devid)
|
||||
port=$(printf "%d" $port)
|
||||
if [ $port1 -gt $port ]; then
|
||||
port=$port1
|
||||
fi
|
||||
|
||||
port=$(( port + 1 ))
|
||||
|
||||
filepath_carrier=/sys/class/net/$eth/carrier
|
||||
|
||||
if [ -f $filepath_carrier ]; then
|
||||
link_state=$(cat $filepath_carrier 2> /dev/null)
|
||||
if (( link_state == 1 )); then
|
||||
link_state="Up"
|
||||
else
|
||||
link_state="Down"
|
||||
fi
|
||||
else
|
||||
link_state="NA"
|
||||
fi
|
||||
|
||||
if [ "$1" == "-v" ]; then
|
||||
filepath_portstate=/sys/class/infiniband/$d/ports/$port/state
|
||||
filepath_deviceid=/sys/class/infiniband/$d/device/device
|
||||
filepath_fwver=/sys/class/infiniband/$d/fw_ver
|
||||
filepath_vpd=/sys/class/infiniband/$d/device/vpd
|
||||
|
||||
# read port state
|
||||
if [ -f $filepath_portstate ]; then
|
||||
ibstate=$(printf "%-6s" "$(cat $filepath_portstate | gawk '{print $2}')")
|
||||
else
|
||||
ibstate="na"
|
||||
fi
|
||||
|
||||
# read device
|
||||
if [ -f $filepath_deviceid ]; then
|
||||
devid=$(printf "mt%d" "$(cat $filepath_deviceid)")
|
||||
else
|
||||
devid="na"
|
||||
fi
|
||||
|
||||
# read fw version
|
||||
if [ -f $filepath_fwver ]; then
|
||||
fwver=$(cat $filepath_fwver)
|
||||
else
|
||||
fwver="na"
|
||||
fi
|
||||
|
||||
# read device description and part id from the vpd
|
||||
if [ -f $filepath_vpd ]; then
|
||||
tmp=$ifs
|
||||
ifs=":"
|
||||
vpd_content=`cat $filepath_vpd | tr -d '\0'`
|
||||
devdesc=$(printf "%-15s" "$(echo $vpd_content | strings | head -1)")
|
||||
partid=$(printf "%-11s" "$(echo $vpd_content | strings | head -4 | tail -1 | gawk '{print $1}')")
|
||||
ifs=$tmp
|
||||
else
|
||||
devdesc=""
|
||||
partid="na"
|
||||
fi
|
||||
|
||||
echo "$d ($devid - $partid) $devdesc fw $fwver port $port ($ibstate) ==> $eth ($link_state)"
|
||||
else
|
||||
echo "$d port $port ==> $eth ($link_state)"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
done
|
||||
done
|
||||
else
|
||||
##########################
|
||||
### old style
|
||||
##########################
|
||||
ifcs=$(ifconfig -a | egrep '^eth|^ib' | gawk '{print $1}')
|
||||
|
||||
for ifc in $ifcs; do
|
||||
len=$(cat /sys/class/net/$ifc/addr_len)
|
||||
if (( len == 20 )); then
|
||||
guid=$(cat /sys/class/net/$ifc/address | cut -b 37- | sed -e 's/://g')
|
||||
find_guid $guid $ifc
|
||||
elif (( len == 6)); then
|
||||
mac=$(cat /sys/class/net/$ifc/address | sed -e 's/://g')
|
||||
find_mac $mac $ifc
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
677
SOURCES/rxe_cfg
Executable file
677
SOURCES/rxe_cfg
Executable file
@ -0,0 +1,677 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
# * Copyright (c) 2009-2011 Mellanox Technologies Ltd. All rights reserved.
|
||||
# * Copyright (c) 2009-2011 System Fabric Works, Inc. All rights reserved.
|
||||
# *
|
||||
# * This software is available to you under a choice of one of two
|
||||
# * licenses. You may choose to be licensed under the terms of the GNU
|
||||
# * General Public License (GPL) Version 2, available from the file
|
||||
# * COPYING in the main directory of this source tree, or the
|
||||
# * OpenIB.org BSD license below:
|
||||
# *
|
||||
# * Redistribution and use in source and binary forms, with or
|
||||
# * without modification, are permitted provided that the following
|
||||
# * conditions are met:
|
||||
# *
|
||||
# * - Redistributions of source code must retain the above
|
||||
# * copyright notice, this list of conditions and the following
|
||||
# * disclaimer.
|
||||
# *
|
||||
# * - Redistributions in binary form must reproduce the above
|
||||
# * copyright notice, this list of conditions and the following
|
||||
# * disclaimer in the documentation and/or other materials
|
||||
# * provided with the distribution.
|
||||
# *
|
||||
# * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
# * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
# * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
# * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
||||
# * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
||||
# * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
# * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
# * SOFTWARE.
|
||||
#
|
||||
|
||||
use warnings;
|
||||
use strict;
|
||||
|
||||
use File::Basename;
|
||||
use File::Path qw(make_path);
|
||||
use Getopt::Long;
|
||||
|
||||
my $help = 0;
|
||||
my $no_persist = 0;
|
||||
my $debug = 0;
|
||||
my $force = 0;
|
||||
my $linkonly = 0;
|
||||
my $parms = "/sys/module/rdma_rxe/parameters";
|
||||
my $modprobe_opt = "";
|
||||
my $modprobe_checked = "0";
|
||||
my $persistence_path = "/var/lib/rxe";
|
||||
my $persistence_file = "${persistence_path}/rxe";
|
||||
my $num_persistent = 0;
|
||||
my $sys = "/sys/module/rdma_rxe/parameters";
|
||||
my %rxe_names;
|
||||
my @rxe_array;
|
||||
my %eth_names;
|
||||
my @eth_list;
|
||||
my %eth_driver;
|
||||
my %link_state;
|
||||
my %link_speed;
|
||||
my %eth_mtu;
|
||||
my %ipv4_addr;
|
||||
my %rxe_mtu;
|
||||
my @persistence_array;
|
||||
my %persistence_hash;
|
||||
my @mlx4_port;
|
||||
my @mlx4_ether;
|
||||
my @roce_list;
|
||||
|
||||
# Read a file and return its contents as a string.
|
||||
sub read_file {
|
||||
my $filename = shift;
|
||||
my $result = "";
|
||||
|
||||
if (open(FILE, $filename)) {
|
||||
$result = <FILE>;
|
||||
close FILE;
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
#get mapping between rxe and eth devices
|
||||
sub get_names {
|
||||
my $i = 0;
|
||||
|
||||
foreach my $rxe (glob("/sys/class/infiniband/rxe*")) {
|
||||
$rxe = basename($rxe);
|
||||
my $eth = read_file("/sys/class/infiniband/$rxe/parent");
|
||||
chomp($eth);
|
||||
|
||||
if (($eth =~ /[\w]+[\d]/)
|
||||
&& ($rxe =~ /rxe[0123456789]/)) {
|
||||
|
||||
# hash ethername to rxename
|
||||
$rxe_names{$eth} = $rxe;
|
||||
$rxe_array[$i++] = $rxe;
|
||||
|
||||
# hash rxename to ethername
|
||||
$eth_names{$rxe} = $eth;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# get list of Mellanox RoCE ports
|
||||
sub get_mlx4_list {
|
||||
my $i = 0;
|
||||
|
||||
foreach my $mlx4 (glob("/sys/class/infiniband/mlx4_*")) {
|
||||
$mlx4 = basename($mlx4);
|
||||
foreach my $port (glob("/sys/class/infiniband/$mlx4/ports/*")) {
|
||||
$port = basename($port);
|
||||
my $link = read_file("$port/link_layer");
|
||||
chomp($link);
|
||||
|
||||
if ($link =~ "Ethernet") {
|
||||
$roce_list[$i++] = "$mlx4:$port";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#collect per device information
|
||||
sub get_dev_info {
|
||||
my @list;
|
||||
my @fields;
|
||||
my @lines;
|
||||
my $line;
|
||||
my $eth;
|
||||
my $drv;
|
||||
my $np;
|
||||
my $i = 0;
|
||||
my $j = 0;
|
||||
|
||||
get_mlx4_list();
|
||||
|
||||
my @my_eth_list = ();
|
||||
foreach my $my_eth_dev (glob("/sys/class/net/*")) {
|
||||
$my_eth_dev = basename($my_eth_dev);
|
||||
if ($my_eth_dev ne "bonding_masters"){
|
||||
my $my_dev_type = read_file("/sys/class/net/${my_eth_dev}/type");
|
||||
chomp($my_dev_type);
|
||||
if ($my_dev_type == "1") {
|
||||
push(@my_eth_list, "$my_eth_dev");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@list = @my_eth_list;
|
||||
foreach $eth (@list) {
|
||||
chomp($eth);
|
||||
|
||||
$eth_list[$i++] = $eth;
|
||||
|
||||
@lines = `ethtool -i $eth`;
|
||||
foreach $line (@lines) {
|
||||
chomp($line);
|
||||
|
||||
@fields = split(/\s+/, $line);
|
||||
chomp($fields[0]);
|
||||
|
||||
if ($fields[0] =~ /driver:/) {
|
||||
$drv = $fields[1];
|
||||
$eth_driver{$eth} = $drv;
|
||||
|
||||
if ($drv =~ /mlx4_en/ && scalar(@roce_list) > 0 ) {
|
||||
$eth_names{$roce_list[$j++]} = $eth;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# get link status
|
||||
$link_state{$eth} = "";
|
||||
$link_speed{$eth} = "";
|
||||
|
||||
@lines = `ethtool $eth`;
|
||||
foreach $line (@lines) {
|
||||
chomp($line);
|
||||
|
||||
@fields = split(/:/, $line);
|
||||
if (defined($fields[1])) {
|
||||
$fields[1] =~ s/^\s+//g;
|
||||
if ($fields[0] =~ "Link detected") {
|
||||
$link_state{$eth} = $fields[1];
|
||||
}
|
||||
}
|
||||
elsif ($line =~ "10000baseT") {
|
||||
$link_speed{$eth} = "10GigE";
|
||||
}
|
||||
}
|
||||
|
||||
$ipv4_addr{$eth} = " ";
|
||||
$eth_mtu{$eth} = "";
|
||||
|
||||
@lines = `ip addr show $eth`;
|
||||
foreach $line (@lines) {
|
||||
# get IP address
|
||||
if ($line =~ /inet /) {
|
||||
$line =~ s/^\s+inet ([0-9.]+)\//$1 /g;
|
||||
@fields = split(/\s+/, $line);
|
||||
$ipv4_addr{$eth} = $fields[0];
|
||||
}
|
||||
|
||||
# get ethernet mtu
|
||||
if ($line =~ /mtu /) {
|
||||
$line =~ s/^.*mtu //g;
|
||||
@fields = split(/\s+/, $line);
|
||||
$eth_mtu{$eth} = $fields[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# get rxe mtu
|
||||
foreach my $rxe (@rxe_array) {
|
||||
|
||||
@lines = `ibv_devinfo -d $rxe`;
|
||||
foreach $line (@lines) {
|
||||
if ($line =~ "active_mtu") {
|
||||
$line =~ s/^\s+active_mtu:\s+//g;
|
||||
chomp($line);
|
||||
|
||||
$rxe_mtu{$rxe} = $line;
|
||||
}
|
||||
}
|
||||
$rxe_mtu{$rxe} = "(?)" if (!$rxe_mtu{$rxe});
|
||||
}
|
||||
}
|
||||
|
||||
# return string or the string "###" if string is all whitespace
|
||||
sub set_field {
|
||||
my $fld = $_[0];
|
||||
|
||||
if (defined($fld) && $fld =~ /\S/) {
|
||||
return $fld;
|
||||
} else {
|
||||
return "###";
|
||||
}
|
||||
}
|
||||
|
||||
# format status output into fixed width columns
|
||||
sub status_print {
|
||||
my @fields;
|
||||
my $field;
|
||||
my @flen = ();
|
||||
my $num_fields = 0;
|
||||
my $i;
|
||||
my $pad;
|
||||
my $line;
|
||||
|
||||
# one pass to size the columns
|
||||
foreach $line (@_) {
|
||||
@fields = split(/\s+/, $line);
|
||||
$i = 0;
|
||||
foreach $field (@fields) {
|
||||
if (!defined($flen[$i])) {
|
||||
$flen[$i] = length($field);
|
||||
}
|
||||
else {
|
||||
$flen[$i] = max($flen[$i], length($field));
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
if ($i > $num_fields) {
|
||||
$num_fields = $i;
|
||||
}
|
||||
}
|
||||
|
||||
# one pass to print
|
||||
foreach $line (@_) {
|
||||
print " ";
|
||||
@fields = split(/\s+/, $line);
|
||||
for ($i = 0; $i < $num_fields; $i++) {
|
||||
if (defined($fields[$i])) {
|
||||
$pad = $flen[$i] - length($fields[$i]) + 2;
|
||||
}
|
||||
else {
|
||||
$pad = $flen[$i] + 2;
|
||||
}
|
||||
if (defined($fields[$i]) && ($fields[$i] ne "###")) {
|
||||
print "$fields[$i]";
|
||||
}
|
||||
else {
|
||||
print " ";
|
||||
}
|
||||
printf("%*s", $pad, "");
|
||||
}
|
||||
print "\n";
|
||||
}
|
||||
}
|
||||
|
||||
# check driver load status
|
||||
sub check_module_status {
|
||||
if (-e $sys) {
|
||||
return 0;
|
||||
} else {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
# print driver load status and ethertype for rdma_rxe and rdma_rxe_net
|
||||
sub show_module_status {
|
||||
print "rdma_rxe module not loaded\n" if (!(-e $sys));
|
||||
}
|
||||
|
||||
# print rxe status
|
||||
sub do_status {
|
||||
my $instance = $_[0];
|
||||
my $ln = 0;
|
||||
my @outp;
|
||||
my $rxe;
|
||||
my $rmtu;
|
||||
|
||||
get_names();
|
||||
get_dev_info();
|
||||
show_module_status();
|
||||
|
||||
$outp[$ln++] = "Name\tLink\tDriver\t\tSpeed\tNMTU\tIPv4_addr\tRDEV\tRMTU";
|
||||
|
||||
foreach my $eth (@eth_list) {
|
||||
|
||||
# handle case where rxe_drivers are not loaded
|
||||
if (defined($rxe_names{$eth})) {
|
||||
$rxe = $rxe_names{$eth};
|
||||
$rmtu = $rxe_mtu{$rxe};
|
||||
}
|
||||
else {
|
||||
$rxe = "";
|
||||
$rmtu = "";
|
||||
}
|
||||
|
||||
if ((!defined($instance)
|
||||
&& (($linkonly == 0) || ($link_state{$eth} =~ "yes")))
|
||||
|| (defined($instance) && ($rxe =~ "$instance"))) {
|
||||
$outp[$ln] = set_field("$eth");
|
||||
$outp[$ln] .= "\t";
|
||||
$outp[$ln] .= set_field("$link_state{$eth}");
|
||||
$outp[$ln] .= "\t";
|
||||
$outp[$ln] .= set_field(exists($eth_driver{$eth}) ? $eth_driver{$eth} : "");
|
||||
$outp[$ln] .= "\t";
|
||||
$outp[$ln] .= set_field("$link_speed{$eth}");
|
||||
$outp[$ln] .= "\t";
|
||||
$outp[$ln] .= set_field("$eth_mtu{$eth}");
|
||||
$outp[$ln] .= "\t";
|
||||
$outp[$ln] .= set_field("$ipv4_addr{$eth}");
|
||||
$outp[$ln] .= "\t";
|
||||
$outp[$ln] .= set_field("$rxe");
|
||||
$outp[$ln] .= "\t";
|
||||
$outp[$ln] .= set_field("$rmtu");
|
||||
$ln++;
|
||||
}
|
||||
}
|
||||
|
||||
status_print(@outp);
|
||||
}
|
||||
|
||||
# read file containing list of ethernet devices into a list
|
||||
sub populate_persistence {
|
||||
my $i = 0;
|
||||
|
||||
open FILE, $persistence_file;
|
||||
while(<FILE>) {
|
||||
my $line = $_;
|
||||
chomp($line);
|
||||
$line =~ s/^\s+//g;
|
||||
if ($line =~ /[\w]+[\d]/) {
|
||||
# in case we add fields later
|
||||
my ($eth, $cruft) = split(/\s+/, $line, 2);
|
||||
if ($eth =~ /^[\w]+[\d]/) {
|
||||
$persistence_array[$i] = $eth;
|
||||
$persistence_hash{$eth} = $i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
close FILE;
|
||||
|
||||
$num_persistent = $i;
|
||||
}
|
||||
|
||||
# print out list of ethernet devices to file
|
||||
sub commit_persistent {
|
||||
my $i;
|
||||
my $eth;
|
||||
|
||||
open(PF, ">$persistence_file");
|
||||
|
||||
for ($i = 0; $i < $num_persistent; $i++) {
|
||||
$eth = $persistence_array[$i];
|
||||
if ($eth =~ /[\w]+[\d]/) {
|
||||
print(PF "$persistence_array[$i]\n");
|
||||
}
|
||||
}
|
||||
|
||||
close(PF);
|
||||
}
|
||||
|
||||
sub delete_persistent {
|
||||
my $eth = $_[0];
|
||||
|
||||
if (defined($persistence_hash{$eth})) {
|
||||
$persistence_array[$persistence_hash{$eth}] = "";
|
||||
}
|
||||
}
|
||||
|
||||
sub add_persistent {
|
||||
my $eth = $_[0];
|
||||
|
||||
# Is this one already in the persistence list?
|
||||
if (!defined($persistence_hash{$eth})) {
|
||||
$persistence_array[$num_persistent] = $eth;
|
||||
$persistence_hash{$eth} = $num_persistent;
|
||||
$num_persistent++;
|
||||
}
|
||||
}
|
||||
|
||||
# add new rxe device to eth if not already up
|
||||
sub rxe_add {
|
||||
my $eth = $_[0];
|
||||
|
||||
if (!($eth =~ /[\w]+[\d]/)) {
|
||||
print "eth_name ($eth) looks bogus\n";
|
||||
return;
|
||||
}
|
||||
|
||||
if (!defined($rxe_names{$eth})) {
|
||||
system("echo '$eth' > $parms/add");
|
||||
}
|
||||
if (!$no_persist) {
|
||||
add_persistent($eth);
|
||||
commit_persistent();
|
||||
}
|
||||
}
|
||||
|
||||
sub rxe_remove {
|
||||
my $arg2 = $_[0];
|
||||
my $rxe;
|
||||
my $eth;
|
||||
|
||||
print "remove $arg2\n" if ($debug > 0);
|
||||
|
||||
if ($arg2 =~ /[\w]+[\d]/) {
|
||||
$eth = $arg2;
|
||||
$rxe = $rxe_names{$eth};
|
||||
}
|
||||
elsif ($arg2 =~ /rxe[0123456789]/) {
|
||||
$rxe = $arg2;
|
||||
$eth = $eth_names{$rxe};
|
||||
}
|
||||
elsif ($arg2 eq "all") {
|
||||
$rxe = "all";
|
||||
}
|
||||
|
||||
if (($rxe eq "all") || ($rxe =~ /^rxe[0123456789]/)) {
|
||||
my $cmd = "echo '$rxe' > $parms/remove";
|
||||
#print "$cmd\n";
|
||||
system($cmd);
|
||||
if (!$no_persist) {
|
||||
if ($rxe eq "all") {
|
||||
unlink($persistence_file);
|
||||
}
|
||||
elsif ($eth =~/[\w]+[\d]/) {
|
||||
delete_persistent($eth);
|
||||
commit_persistent();
|
||||
}
|
||||
else {
|
||||
print "Warning: Unable to resolve ethname; "
|
||||
. "instance may persist on restart\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
print "rxe instance $rxe not found\n";
|
||||
}
|
||||
}
|
||||
|
||||
sub get_devinfo {
|
||||
my $rxe = $_[0];
|
||||
|
||||
my $cmd = "ibv_devinfo -d $rxe";
|
||||
return `$cmd`;
|
||||
}
|
||||
|
||||
# allow unsupported modules to load in SLES11 if allowed
|
||||
sub modprobe {
|
||||
my $module = $_[0];
|
||||
my $opts = $_[1];
|
||||
my @lines;
|
||||
my $line;
|
||||
|
||||
if ($modprobe_checked == "0") {
|
||||
@lines = `modprobe -c`;
|
||||
foreach $line (@lines) {
|
||||
if ($line =~ /^allow_unsupported_modules *0/) {
|
||||
$modprobe_opt = " --allow-unsupported-modules ";
|
||||
last;
|
||||
}
|
||||
}
|
||||
$modprobe_checked = "1";
|
||||
}
|
||||
|
||||
if (!defined($opts)) {
|
||||
$opts = "";
|
||||
}
|
||||
|
||||
system("modprobe $modprobe_opt $module $opts");
|
||||
}
|
||||
|
||||
# bring up rxe
|
||||
sub do_start {
|
||||
my $proto_str = "";
|
||||
|
||||
system("mkdir -p $persistence_path");
|
||||
system("touch $persistence_file");
|
||||
|
||||
modprobe("ib_core");
|
||||
modprobe("ib_uverbs");
|
||||
modprobe("rdma_ucm");
|
||||
modprobe("rdma_rxe");
|
||||
|
||||
populate_persistence();
|
||||
system("udevadm control --reload");
|
||||
|
||||
foreach my $eth (@persistence_array) {
|
||||
rxe_add($eth);
|
||||
}
|
||||
|
||||
get_names();
|
||||
|
||||
foreach my $rxe (@rxe_array) {
|
||||
my $stat = get_devinfo($rxe);
|
||||
if ($stat =~ "PORT_DOWN") {
|
||||
my $cmd = "ip link set $eth_names{$rxe} up";
|
||||
system($cmd);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
# check if argument is an integer
|
||||
sub is_integer {
|
||||
defined $_[0] && $_[0] =~ /^[+-]?\d+$/;
|
||||
}
|
||||
|
||||
# remove all rxe devices and unload drivers
|
||||
sub do_stop {
|
||||
my $rxe;
|
||||
|
||||
foreach $rxe (@rxe_array) {
|
||||
system("echo '$rxe' > $sys/remove");
|
||||
}
|
||||
|
||||
if (-e $sys) {
|
||||
system("rmmod rdma_rxe");
|
||||
}
|
||||
|
||||
if (-e $sys) {
|
||||
print "unable to unload drivers, reboot required\n";
|
||||
}
|
||||
}
|
||||
|
||||
sub do_debug {
|
||||
my $arg2 = $_[0];
|
||||
my $debugfile = "$parms/debug";
|
||||
chomp($arg2);
|
||||
|
||||
if (!(-e "$debugfile")) {
|
||||
print "Error: debug is compiled out of this rxe driver\n";
|
||||
return;
|
||||
}
|
||||
|
||||
if ($arg2 eq "on") { system("echo '31' > $debugfile"); }
|
||||
elsif ($arg2 eq "off") { system("echo '0' > $debugfile"); }
|
||||
elsif ($arg2 eq "0") { system("echo '0' > $debugfile"); }
|
||||
elsif ($arg2 eq "") { }
|
||||
elsif ($arg2 ge "0" && $arg2 le "31") {
|
||||
system("echo '$arg2' > $debugfile");
|
||||
}
|
||||
else {
|
||||
print "unrecognized debug cmd ($arg2)\n";
|
||||
}
|
||||
|
||||
my $current = read_file($debugfile);
|
||||
chomp($current);
|
||||
if ($current > 0) {
|
||||
print "Debug is ON ($current)\n";
|
||||
}
|
||||
elsif ($current == 0) {
|
||||
print "Debug is OFF\n";
|
||||
}
|
||||
else {
|
||||
print "Unrecognized debug value\n";
|
||||
}
|
||||
}
|
||||
|
||||
sub max {
|
||||
my $a = $_[0];
|
||||
my $b = $_[1];
|
||||
return $a if ($a > $b);
|
||||
return $b;
|
||||
}
|
||||
|
||||
# show usage for rxe_cfg
|
||||
sub usage {
|
||||
print " Usage:\n";
|
||||
print " rxe_cfg [options] start|stop|status|persistent\n";
|
||||
print " rxe_cfg debug on|off|<num>\n";
|
||||
print " rxe_cfg [-n] add <ndev>\n";
|
||||
print " rxe_cfg [-n] remove <ndev>|<rdev>\n";
|
||||
print "\n";
|
||||
print " <ndev> = network device e.g. eth3\n";
|
||||
print " <rdev> = rdma device e.g. rxe1\n";
|
||||
print "\n";
|
||||
print " Options:\n";
|
||||
print " -h: print this usage information\n";
|
||||
print " -n: do not make the configuration action persistent\n";
|
||||
print " -v: print additional debug output\n";
|
||||
print " -l: show status for interfaces with link up\n";
|
||||
print " -p <num>: (start command only) - set ethertype\n";
|
||||
}
|
||||
|
||||
sub main {
|
||||
GetOptions(
|
||||
"-h" => \$help,
|
||||
"--help" => \$help,
|
||||
"-n" => \$no_persist,
|
||||
"-v:+" => \$debug,
|
||||
"-f" => \$force,
|
||||
"-l" => \$linkonly,
|
||||
);
|
||||
|
||||
my $arg1 = $ARGV[0];
|
||||
my $arg2 = $ARGV[1];
|
||||
my $arg3 = $ARGV[2];
|
||||
|
||||
# status is the default
|
||||
if (!defined($arg1) || ($arg1 =~ /status/)) {
|
||||
do_status($arg2);
|
||||
exit;
|
||||
}
|
||||
|
||||
if ($help) {
|
||||
usage();
|
||||
exit;
|
||||
}
|
||||
|
||||
# stuff that does not require modules to be loaded
|
||||
if ($arg1 eq "help") { usage(); exit; }
|
||||
elsif ($arg1 eq "start") { do_start(); do_status(); exit; }
|
||||
elsif ($arg1 eq "persistent") { system("cat $persistence_file"); exit; }
|
||||
|
||||
|
||||
# can't do much else, bail if modules aren't loaded
|
||||
if (check_module_status()) {
|
||||
exit;
|
||||
}
|
||||
|
||||
# create persistence file if necessary
|
||||
make_path($persistence_path);
|
||||
if (!(-e $persistence_file)) {
|
||||
`touch $persistence_file`;
|
||||
}
|
||||
|
||||
# Get full context of the configuration
|
||||
populate_persistence();
|
||||
get_names();
|
||||
get_dev_info();
|
||||
|
||||
# Stuff that requires the rdma_rxe module to be loaded
|
||||
if ($arg1 eq "stop") { do_stop(); exit; }
|
||||
elsif ($arg1 eq "debug") { do_debug($arg2); exit; }
|
||||
elsif ($arg1 eq "add") { rxe_add($arg2); exit; }
|
||||
elsif ($arg1 eq "remove") { rxe_remove($arg2); exit; }
|
||||
elsif ($arg1 eq "help") { usage(); exit; }
|
||||
}
|
||||
|
||||
main();
|
||||
|
||||
exit;
|
@ -0,0 +1,24 @@
|
||||
From fd9b3596cb1a21e54ffb102392178b6bd5d14c78 Mon Sep 17 00:00:00 2001
|
||||
From: Jarod Wilson <jarod@redhat.com>
|
||||
Date: Wed, 21 Aug 2019 17:09:13 -0400
|
||||
Subject: [PATCH rdma-core] udev: keep NAME_KERNEL as default interface
|
||||
naming convention
|
||||
|
||||
Signed-off-by: Jarod Wilson <jarod@redhat.com>
|
||||
---
|
||||
kernel-boot/rdma-persistent-naming.rules | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/kernel-boot/rdma-persistent-naming.rules b/kernel-boot/rdma-persistent-naming.rules
|
||||
index 9b61e163..a561746b 100644
|
||||
--- a/kernel-boot/rdma-persistent-naming.rules
|
||||
+++ b/kernel-boot/rdma-persistent-naming.rules
|
||||
@@ -25,4 +25,4 @@
|
||||
# Device type = RoCE
|
||||
# mlx5_0 -> rocex525400c0fe123455
|
||||
#
|
||||
-ACTION=="add", SUBSYSTEM=="infiniband", PROGRAM="rdma_rename %k NAME_FALLBACK"
|
||||
+ACTION=="add", SUBSYSTEM=="infiniband", PROGRAM="rdma_rename %k NAME_KERNEL"
|
||||
--
|
||||
2.20.1
|
||||
|
869
SPECS/rdma-core.spec
Normal file
869
SPECS/rdma-core.spec
Normal file
@ -0,0 +1,869 @@
|
||||
Name: rdma-core
|
||||
Version: 32.0
|
||||
Release: 1%{?dist}
|
||||
Summary: RDMA core userspace libraries and daemons
|
||||
|
||||
# Almost everything is licensed under the OFA dual GPLv2, 2 Clause BSD license
|
||||
# providers/ipathverbs/ Dual licensed using a BSD license with an extra patent clause
|
||||
# providers/rxe/ Incorporates code from ipathverbs and contains the patent clause
|
||||
# providers/hfi1verbs Uses the 3 Clause BSD license
|
||||
License: GPLv2 or BSD
|
||||
Url: https://github.com/linux-rdma/rdma-core
|
||||
Source: https://github.com/linux-rdma/rdma-core/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
||||
Source1: ibdev2netdev
|
||||
# Upstream had removed rxe_cfg from upstream git repo. RHEL-8.X has
|
||||
# to keep it for backward compatibility. 'rxe_cfg' and 'rxe_cfg.8.gz'
|
||||
# are extracted from libibverbs-26.0-8.el8 .
|
||||
Source2: rxe_cfg
|
||||
Source3: rxe_cfg.8.gz
|
||||
Patch3: udev-keep-NAME_KERNEL-as-default-interface-naming-co.patch
|
||||
# stable-v32 patch
|
||||
Patch101: 0001-ABI-Files.patch
|
||||
# Do not build static libs by default.
|
||||
%define with_static %{?_with_static: 1} %{?!_with_static: 0}
|
||||
|
||||
# 32-bit arm is missing required arch-specific memory barriers,
|
||||
ExcludeArch: %{arm}
|
||||
|
||||
BuildRequires: binutils
|
||||
BuildRequires: cmake >= 2.8.11
|
||||
BuildRequires: gcc
|
||||
BuildRequires: libudev-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: pkgconfig(libnl-3.0)
|
||||
BuildRequires: pkgconfig(libnl-route-3.0)
|
||||
BuildRequires: python3-docutils
|
||||
%ifarch %{valgrind_arches}
|
||||
BuildRequires: valgrind-devel
|
||||
%endif
|
||||
BuildRequires: systemd
|
||||
BuildRequires: systemd-devel
|
||||
%if 0%{?fedora} >= 32 || 0%{?rhel} >= 8
|
||||
%define with_pyverbs %{?_with_pyverbs: 1} %{?!_with_pyverbs: %{?!_without_pyverbs: 1} %{?_without_pyverbs: 0}}
|
||||
%else
|
||||
%define with_pyverbs %{?_with_pyverbs: 1} %{?!_with_pyverbs: 0}
|
||||
%endif
|
||||
%if %{with_pyverbs}
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-Cython
|
||||
%else
|
||||
%if 0%{?rhel} >= 8 || 0%{?fedora} >= 30
|
||||
BuildRequires: python3
|
||||
%else
|
||||
BuildRequires: python
|
||||
%endif
|
||||
%endif
|
||||
|
||||
BuildRequires: sed
|
||||
BuildRequires: perl-generators
|
||||
|
||||
Requires: pciutils
|
||||
# Red Hat/Fedora previously shipped redhat/ as a stand-alone
|
||||
# package called 'rdma', which we're supplanting here.
|
||||
Provides: rdma = %{version}-%{release}
|
||||
Obsoletes: rdma < %{version}-%{release}
|
||||
Provides: rdma-ndd = %{version}-%{release}
|
||||
Obsoletes: rdma-ndd < %{version}-%{release}
|
||||
# the ndd utility moved from infiniband-diags to rdma-core
|
||||
Conflicts: infiniband-diags <= 1.6.7
|
||||
|
||||
# Since we recommend developers use Ninja, so should packagers, for consistency.
|
||||
%define CMAKE_FLAGS %{nil}
|
||||
%if 0%{?fedora} >= 23 || 0%{?rhel} >= 8
|
||||
# Ninja was introduced in FC23
|
||||
BuildRequires: ninja-build
|
||||
%define CMAKE_FLAGS -GNinja
|
||||
%define make_jobs ninja-build -v %{?_smp_mflags}
|
||||
%define cmake_install DESTDIR=%{buildroot} ninja-build install
|
||||
%else
|
||||
# Fallback to make otherwise
|
||||
BuildRequires: make
|
||||
%define make_jobs make VERBOSE=1 %{?_smp_mflags}
|
||||
%define cmake_install DESTDIR=%{buildroot} make install
|
||||
%endif
|
||||
|
||||
BuildRequires: pandoc
|
||||
|
||||
%description
|
||||
RDMA core userspace infrastructure and documentation, including kernel
|
||||
driver-specific modprobe override configs, IPoIB network scripts,
|
||||
dracut rules, and the rdma-ndd utility.
|
||||
|
||||
%package devel
|
||||
Summary: RDMA core development libraries and headers
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Requires: libibverbs%{?_isa} = %{version}-%{release}
|
||||
Provides: libibverbs-devel = %{version}-%{release}
|
||||
Obsoletes: libibverbs-devel < %{version}-%{release}
|
||||
Requires: libibumad%{?_isa} = %{version}-%{release}
|
||||
Provides: libibumad-devel = %{version}-%{release}
|
||||
Obsoletes: libibumad-devel < %{version}-%{release}
|
||||
Requires: librdmacm%{?_isa} = %{version}-%{release}
|
||||
Provides: librdmacm-devel = %{version}-%{release}
|
||||
Obsoletes: librdmacm-devel < %{version}-%{release}
|
||||
Requires: ibacm%{?_isa} = %{version}-%{release}
|
||||
Provides: ibacm-devel = %{version}-%{release}
|
||||
Obsoletes: ibacm-devel < %{version}-%{release}
|
||||
Requires: infiniband-diags%{?_isa} = %{version}-%{release}
|
||||
Provides: infiniband-diags-devel = %{version}-%{release}
|
||||
Obsoletes: infiniband-diags-devel < %{version}-%{release}
|
||||
Provides: libibmad-devel = %{version}-%{release}
|
||||
Obsoletes: libibmad-devel < %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
RDMA core development libraries and headers.
|
||||
|
||||
%package -n infiniband-diags
|
||||
Summary: InfiniBand Diagnostic Tools
|
||||
Requires: libibumad%{?_isa} = %{version}-%{release}
|
||||
Provides: perl(IBswcountlimits)
|
||||
Provides: libibmad = %{version}-%{release}
|
||||
Obsoletes: libibmad < %{version}-%{release}
|
||||
Obsoletes: openib-diags < 1.3
|
||||
|
||||
%description -n infiniband-diags
|
||||
This package provides IB diagnostic programs and scripts needed to diagnose an
|
||||
IB subnet. infiniband-diags now also provides libibmad. libibmad provides
|
||||
low layer IB functions for use by the IB diagnostic and management
|
||||
programs. These include MAD, SA, SMP, and other basic IB functions.
|
||||
|
||||
%package -n libibverbs
|
||||
Summary: A library and drivers for direct userspace use of RDMA (InfiniBand/iWARP/RoCE) hardware
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Provides: libcxgb4 = %{version}-%{release}
|
||||
Obsoletes: libcxgb4 < %{version}-%{release}
|
||||
Provides: libefa = %{version}-%{release}
|
||||
Obsoletes: libefa < %{version}-%{release}
|
||||
Provides: libhfi1 = %{version}-%{release}
|
||||
Obsoletes: libhfi1 < %{version}-%{release}
|
||||
Provides: libi40iw = %{version}-%{release}
|
||||
Obsoletes: libi40iw < %{version}-%{release}
|
||||
Provides: libmlx4 = %{version}-%{release}
|
||||
Obsoletes: libmlx4 < %{version}-%{release}
|
||||
%ifnarch s390
|
||||
Provides: libmlx5 = %{version}-%{release}
|
||||
Obsoletes: libmlx5 < %{version}-%{release}
|
||||
%endif
|
||||
Provides: librxe = %{version}-%{release}
|
||||
Obsoletes: librxe < %{version}-%{release}
|
||||
|
||||
%description -n libibverbs
|
||||
libibverbs is a library that allows userspace processes to use RDMA
|
||||
"verbs" as described in the InfiniBand Architecture Specification and
|
||||
the RDMA Protocol Verbs Specification. This includes direct hardware
|
||||
access from userspace to InfiniBand/iWARP adapters (kernel bypass) for
|
||||
fast path operations.
|
||||
|
||||
Device-specific plug-in ibverbs userspace drivers are included:
|
||||
|
||||
- libbxnt_re: Broadcom NetXtreme-E RoCE HCA
|
||||
- libcxgb4: Chelsio T4 iWARP HCA
|
||||
- libefa: Amazon Elastic Fabric Adapter
|
||||
- libhfi1: Intel Omni-Path HFI
|
||||
- libhns: HiSilicon Hip06 SoC
|
||||
- libi40iw: Intel Ethernet Connection X722 RDMA
|
||||
- libmlx4: Mellanox ConnectX-3 InfiniBand HCA
|
||||
- libmlx5: Mellanox Connect-IB/X-4+ InfiniBand HCA
|
||||
- libqedr: QLogic QL4xxx RoCE HCA
|
||||
- librxe: A software implementation of the RoCE protocol
|
||||
- libsiw: A software implementation of the iWarp protocol
|
||||
- libvmw_pvrdma: VMware paravirtual RDMA device
|
||||
|
||||
%package -n libibverbs-utils
|
||||
Summary: Examples for the libibverbs library
|
||||
Requires: libibverbs%{?_isa} = %{version}-%{release}
|
||||
# rxe_cfg uses commands provided by these packages
|
||||
Requires: iproute
|
||||
Requires: ethtool
|
||||
|
||||
%description -n libibverbs-utils
|
||||
Useful libibverbs example programs such as ibv_devinfo, which
|
||||
displays information about RDMA devices.
|
||||
|
||||
%package -n ibacm
|
||||
Summary: InfiniBand Communication Manager Assistant
|
||||
%{?systemd_requires}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Requires: libibumad%{?_isa} = %{version}-%{release}
|
||||
Requires: libibverbs%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description -n ibacm
|
||||
The ibacm daemon helps reduce the load of managing path record lookups on
|
||||
large InfiniBand fabrics by providing a user space implementation of what
|
||||
is functionally similar to an ARP cache. The use of ibacm, when properly
|
||||
configured, can reduce the SA packet load of a large IB cluster from O(n^2)
|
||||
to O(n). The ibacm daemon is started and normally runs in the background,
|
||||
user applications need not know about this daemon as long as their app
|
||||
uses librdmacm to handle connection bring up/tear down. The librdmacm
|
||||
library knows how to talk directly to the ibacm daemon to retrieve data.
|
||||
|
||||
%package -n iwpmd
|
||||
Summary: iWarp Port Mapper userspace daemon
|
||||
%{?systemd_requires}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description -n iwpmd
|
||||
iwpmd provides a userspace service for iWarp drivers to claim
|
||||
tcp ports through the standard socket interface.
|
||||
|
||||
%package -n libibumad
|
||||
Summary: OpenFabrics Alliance InfiniBand umad (userspace management datagram) library
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description -n libibumad
|
||||
libibumad provides the userspace management datagram (umad) library
|
||||
functions, which sit on top of the umad modules in the kernel. These
|
||||
are used by the IB diagnostic and management tools, including OpenSM.
|
||||
|
||||
%package -n librdmacm
|
||||
Summary: Userspace RDMA Connection Manager
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Requires: libibverbs%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description -n librdmacm
|
||||
librdmacm provides a userspace RDMA Communication Management API.
|
||||
|
||||
%package -n librdmacm-utils
|
||||
Summary: Examples for the librdmacm library
|
||||
Requires: librdmacm%{?_isa} = %{version}-%{release}
|
||||
Requires: libibverbs%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description -n librdmacm-utils
|
||||
Example test programs for the librdmacm library.
|
||||
|
||||
%package -n srp_daemon
|
||||
Summary: Tools for using the InfiniBand SRP protocol devices
|
||||
Obsoletes: srptools <= 1.0.3
|
||||
Provides: srptools = %{version}-%{release}
|
||||
Obsoletes: openib-srptools <= 0.0.6
|
||||
%{?systemd_requires}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Requires: libibumad%{?_isa} = %{version}-%{release}
|
||||
Requires: libibverbs%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description -n srp_daemon
|
||||
In conjunction with the kernel ib_srp driver, srp_daemon allows you to
|
||||
discover and use SCSI devices via the SCSI RDMA Protocol over InfiniBand.
|
||||
|
||||
%if %{with_pyverbs}
|
||||
%package -n python3-pyverbs
|
||||
Summary: Python3 API over IB verbs
|
||||
%{?python_provide:%python_provide python3-pyverbs}
|
||||
Requires: librdmacm%{?_isa} = %{version}-%{release}
|
||||
Requires: libibverbs%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description -n python3-pyverbs
|
||||
Pyverbs is a Cython-based Python API over libibverbs, providing an
|
||||
easy, object-oriented access to IB verbs.
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch3 -p1
|
||||
%patch101 -p1
|
||||
|
||||
%build
|
||||
|
||||
# New RPM defines _rundir, usually as /run
|
||||
%if 0%{?_rundir:1}
|
||||
%else
|
||||
%define _rundir /var/run
|
||||
%endif
|
||||
|
||||
%{!?EXTRA_CMAKE_FLAGS: %define EXTRA_CMAKE_FLAGS %{nil}}
|
||||
|
||||
# Pass all of the rpm paths directly to GNUInstallDirs and our other defines.
|
||||
%cmake %{CMAKE_FLAGS} \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_BINDIR:PATH=%{_bindir} \
|
||||
-DCMAKE_INSTALL_SBINDIR:PATH=%{_sbindir} \
|
||||
-DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \
|
||||
-DCMAKE_INSTALL_LIBEXECDIR:PATH=%{_libexecdir} \
|
||||
-DCMAKE_INSTALL_LOCALSTATEDIR:PATH=%{_localstatedir} \
|
||||
-DCMAKE_INSTALL_SHAREDSTATEDIR:PATH=%{_sharedstatedir} \
|
||||
-DCMAKE_INSTALL_INCLUDEDIR:PATH=%{_includedir} \
|
||||
-DCMAKE_INSTALL_INFODIR:PATH=%{_infodir} \
|
||||
-DCMAKE_INSTALL_MANDIR:PATH=%{_mandir} \
|
||||
-DCMAKE_INSTALL_SYSCONFDIR:PATH=%{_sysconfdir} \
|
||||
-DCMAKE_INSTALL_SYSTEMD_SERVICEDIR:PATH=%{_unitdir} \
|
||||
-DCMAKE_INSTALL_INITDDIR:PATH=%{_initrddir} \
|
||||
-DCMAKE_INSTALL_RUNDIR:PATH=%{_rundir} \
|
||||
-DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/%{name} \
|
||||
-DCMAKE_INSTALL_UDEV_RULESDIR:PATH=%{_udevrulesdir} \
|
||||
-DCMAKE_INSTALL_PERLDIR:PATH=%{perl_vendorlib} \
|
||||
-DWITH_IBDIAGS_COMPAT:BOOL=False \
|
||||
%if %{with_static}
|
||||
-DENABLE_STATIC=1 \
|
||||
%endif
|
||||
%{EXTRA_CMAKE_FLAGS} \
|
||||
%if %{defined __python3}
|
||||
-DPYTHON_EXECUTABLE:PATH=%{__python3} \
|
||||
-DCMAKE_INSTALL_PYTHON_ARCH_LIB:PATH=%{python3_sitearch} \
|
||||
%endif
|
||||
%if %{with_pyverbs}
|
||||
-DNO_PYVERBS=0
|
||||
%else
|
||||
-DNO_PYVERBS=1
|
||||
%endif
|
||||
%make_jobs
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
|
||||
mkdir -p %{buildroot}/%{_sysconfdir}/rdma
|
||||
|
||||
# Red Hat specific glue
|
||||
%global dracutlibdir %{_prefix}/lib/dracut
|
||||
%global sysmodprobedir %{_prefix}/lib/modprobe.d
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/udev/rules.d
|
||||
mkdir -p %{buildroot}%{_libexecdir}
|
||||
mkdir -p %{buildroot}%{_udevrulesdir}
|
||||
mkdir -p %{buildroot}%{dracutlibdir}/modules.d/05rdma
|
||||
mkdir -p %{buildroot}%{sysmodprobedir}
|
||||
install -D -m0644 redhat/rdma.mlx4.conf %{buildroot}/%{_sysconfdir}/rdma/mlx4.conf
|
||||
install -D -m0755 redhat/rdma.modules-setup.sh %{buildroot}%{dracutlibdir}/modules.d/05rdma/module-setup.sh
|
||||
install -D -m0644 redhat/rdma.mlx4.sys.modprobe %{buildroot}%{sysmodprobedir}/libmlx4.conf
|
||||
install -D -m0755 redhat/rdma.mlx4-setup.sh %{buildroot}%{_libexecdir}/mlx4-setup.sh
|
||||
rm -f %{buildroot}%{_sysconfdir}/rdma/modules/rdma.conf
|
||||
install -D -m0644 redhat/rdma.conf %{buildroot}%{_sysconfdir}/rdma/modules/rdma.conf
|
||||
# ibdev2netdev helper script
|
||||
install -D -m0755 %{SOURCE1} %{buildroot}%{_bindir}/
|
||||
|
||||
# rxe_cfg
|
||||
install -D -m0755 %{SOURCE2} %{buildroot}%{_bindir}/
|
||||
install -D -m0644 %{SOURCE3} %{buildroot}%{_mandir}/man8/
|
||||
|
||||
# ibacm
|
||||
bin/ib_acme -D . -O
|
||||
# multi-lib conflict resolution hacks (bug 1429362)
|
||||
sed -i -e 's|%{_libdir}|/usr/lib|' %{buildroot}%{_mandir}/man7/ibacm_prov.7
|
||||
sed -i -e 's|%{_libdir}|/usr/lib|' ibacm_opts.cfg
|
||||
install -D -m0644 ibacm_opts.cfg %{buildroot}%{_sysconfdir}/rdma/
|
||||
|
||||
# Delete the package's init.d scripts
|
||||
rm -rf %{buildroot}/%{_initrddir}/
|
||||
|
||||
# Remove ibverbs provider libs we don't support
|
||||
rm -f %{buildroot}/%{_libdir}/libibverbs/libcxgb3-rdmav*.so
|
||||
rm -f %{buildroot}/%{_sysconfdir}/libibverbs.d/cxgb3.driver
|
||||
rm -f %{buildroot}/%{_libdir}/libibverbs/libocrdma-rdmav*.so
|
||||
rm -f %{buildroot}/%{_sysconfdir}/libibverbs.d/ocrdma.driver
|
||||
rm -f %{buildroot}/%{_libdir}/libibverbs/libnes-rdmav*.so
|
||||
rm -f %{buildroot}/%{_sysconfdir}/libibverbs.d/nes.driver
|
||||
rm -f %{buildroot}/%{_libdir}/libibverbs/libmthca-rdmav*.so
|
||||
rm -f %{buildroot}/%{_sysconfdir}/libibverbs.d/mthca.driver
|
||||
rm -f %{buildroot}/%{_libdir}/libibverbs/libipathverbs-rdmav*.so
|
||||
rm -f %{buildroot}/%{_sysconfdir}/libibverbs.d/ipathverbs.driver
|
||||
|
||||
%post -n rdma-core
|
||||
if [ -x /sbin/udevadm ]; then
|
||||
/sbin/udevadm trigger --subsystem-match=infiniband --action=change || true
|
||||
/sbin/udevadm trigger --subsystem-match=net --action=change || true
|
||||
/sbin/udevadm trigger --subsystem-match=infiniband_mad --action=change || true
|
||||
fi
|
||||
|
||||
%post -n infiniband-diags -p /sbin/ldconfig
|
||||
%postun -n infiniband-diags
|
||||
%ldconfig_postun
|
||||
|
||||
%post -n libibverbs -p /sbin/ldconfig
|
||||
%postun -n libibverbs
|
||||
%ldconfig_postun
|
||||
|
||||
%post -n libibumad -p /sbin/ldconfig
|
||||
%postun -n libibumad
|
||||
%ldconfig_postun
|
||||
|
||||
%post -n librdmacm -p /sbin/ldconfig
|
||||
%postun -n librdmacm
|
||||
%ldconfig_postun
|
||||
|
||||
%post -n ibacm
|
||||
%systemd_post ibacm.service
|
||||
%preun -n ibacm
|
||||
%systemd_preun ibacm.service
|
||||
%postun -n ibacm
|
||||
%systemd_postun_with_restart ibacm.service
|
||||
|
||||
%post -n srp_daemon
|
||||
%systemd_post srp_daemon.service
|
||||
%preun -n srp_daemon
|
||||
%systemd_preun srp_daemon.service
|
||||
%postun -n srp_daemon
|
||||
%systemd_postun_with_restart srp_daemon.service
|
||||
|
||||
%post -n iwpmd
|
||||
%systemd_post iwpmd.service
|
||||
%preun -n iwpmd
|
||||
%systemd_preun iwpmd.service
|
||||
%postun -n iwpmd
|
||||
%systemd_postun_with_restart iwpmd.service
|
||||
|
||||
%files
|
||||
%dir %{_sysconfdir}/rdma
|
||||
%dir %{_docdir}/%{name}
|
||||
%doc %{_docdir}/%{name}/README.md
|
||||
%doc %{_docdir}/%{name}/udev.md
|
||||
%config(noreplace) %{_sysconfdir}/rdma/mlx4.conf
|
||||
%config(noreplace) %{_sysconfdir}/rdma/modules/infiniband.conf
|
||||
%config(noreplace) %{_sysconfdir}/rdma/modules/iwarp.conf
|
||||
%config(noreplace) %{_sysconfdir}/rdma/modules/opa.conf
|
||||
%config(noreplace) %{_sysconfdir}/rdma/modules/rdma.conf
|
||||
%config(noreplace) %{_sysconfdir}/rdma/modules/roce.conf
|
||||
%config(noreplace) %{_sysconfdir}/udev/rules.d/*
|
||||
%dir %{_sysconfdir}/modprobe.d
|
||||
%ifnarch s390
|
||||
%config(noreplace) %{_sysconfdir}/modprobe.d/mlx4.conf
|
||||
%endif
|
||||
%config(noreplace) %{_sysconfdir}/modprobe.d/truescale.conf
|
||||
%{_unitdir}/rdma-hw.target
|
||||
%{_unitdir}/rdma-load-modules@.service
|
||||
%dir %{dracutlibdir}
|
||||
%dir %{dracutlibdir}/modules.d
|
||||
%dir %{dracutlibdir}/modules.d/05rdma
|
||||
%{dracutlibdir}/modules.d/05rdma/module-setup.sh
|
||||
%dir %{_udevrulesdir}
|
||||
%{_udevrulesdir}/../rdma_rename
|
||||
%{_udevrulesdir}/60-rdma-ndd.rules
|
||||
%{_udevrulesdir}/60-rdma-persistent-naming.rules
|
||||
%{_udevrulesdir}/75-rdma-description.rules
|
||||
%{_udevrulesdir}/90-rdma-hw-modules.rules
|
||||
%{_udevrulesdir}/90-rdma-ulp-modules.rules
|
||||
%{_udevrulesdir}/90-rdma-umad.rules
|
||||
%dir %{sysmodprobedir}
|
||||
%{sysmodprobedir}/libmlx4.conf
|
||||
%{_libexecdir}/mlx4-setup.sh
|
||||
%{_libexecdir}/truescale-serdes.cmds
|
||||
%{_sbindir}/rdma-ndd
|
||||
%{_bindir}/ibdev2netdev
|
||||
%{_unitdir}/rdma-ndd.service
|
||||
%{_mandir}/man7/rxe*
|
||||
%{_mandir}/man8/rdma-ndd.*
|
||||
%license COPYING.*
|
||||
|
||||
%files devel
|
||||
%doc %{_docdir}/%{name}/MAINTAINERS
|
||||
%dir %{_includedir}/infiniband
|
||||
%dir %{_includedir}/rdma
|
||||
%{_includedir}/infiniband/*
|
||||
%{_includedir}/rdma/*
|
||||
%if %{with_static}
|
||||
%{_libdir}/lib*.a
|
||||
%endif
|
||||
%{_libdir}/lib*.so
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
%{_mandir}/man3/efadv*
|
||||
%{_mandir}/man3/ibv_*
|
||||
%{_mandir}/man3/rdma*
|
||||
%{_mandir}/man3/umad*
|
||||
%{_mandir}/man3/*_to_ibv_rate.*
|
||||
%{_mandir}/man7/rdma_cm.*
|
||||
%ifnarch s390
|
||||
%{_mandir}/man3/mlx5dv*
|
||||
%{_mandir}/man3/mlx4dv*
|
||||
%{_mandir}/man7/efadv*
|
||||
%{_mandir}/man7/mlx5dv*
|
||||
%{_mandir}/man7/mlx4dv*
|
||||
%endif
|
||||
%{_mandir}/man3/ibnd_*
|
||||
|
||||
%files -n infiniband-diags
|
||||
%{_sbindir}/ibaddr
|
||||
%{_mandir}/man8/ibaddr*
|
||||
%{_sbindir}/ibnetdiscover
|
||||
%{_mandir}/man8/ibnetdiscover*
|
||||
%{_sbindir}/ibping
|
||||
%{_mandir}/man8/ibping*
|
||||
%{_sbindir}/ibportstate
|
||||
%{_mandir}/man8/ibportstate*
|
||||
%{_sbindir}/ibroute
|
||||
%{_mandir}/man8/ibroute.*
|
||||
%{_sbindir}/ibstat
|
||||
%{_mandir}/man8/ibstat.*
|
||||
%{_sbindir}/ibsysstat
|
||||
%{_mandir}/man8/ibsysstat*
|
||||
%{_sbindir}/ibtracert
|
||||
%{_mandir}/man8/ibtracert*
|
||||
%{_sbindir}/perfquery
|
||||
%{_mandir}/man8/perfquery*
|
||||
%{_sbindir}/sminfo
|
||||
%{_mandir}/man8/sminfo*
|
||||
%{_sbindir}/smpdump
|
||||
%{_mandir}/man8/smpdump*
|
||||
%{_sbindir}/smpquery
|
||||
%{_mandir}/man8/smpquery*
|
||||
%{_sbindir}/saquery
|
||||
%{_mandir}/man8/saquery*
|
||||
%{_sbindir}/vendstat
|
||||
%{_mandir}/man8/vendstat*
|
||||
%{_sbindir}/iblinkinfo
|
||||
%{_mandir}/man8/iblinkinfo*
|
||||
%{_sbindir}/ibqueryerrors
|
||||
%{_mandir}/man8/ibqueryerrors*
|
||||
%{_sbindir}/ibcacheedit
|
||||
%{_mandir}/man8/ibcacheedit*
|
||||
%{_sbindir}/ibccquery
|
||||
%{_mandir}/man8/ibccquery*
|
||||
%{_sbindir}/ibccconfig
|
||||
%{_mandir}/man8/ibccconfig*
|
||||
%{_sbindir}/dump_fts
|
||||
%{_mandir}/man8/dump_fts*
|
||||
%{_sbindir}/ibhosts
|
||||
%{_mandir}/man8/ibhosts*
|
||||
%{_sbindir}/ibswitches
|
||||
%{_mandir}/man8/ibswitches*
|
||||
%{_sbindir}/ibnodes
|
||||
%{_mandir}/man8/ibnodes*
|
||||
%{_sbindir}/ibrouters
|
||||
%{_mandir}/man8/ibrouters*
|
||||
%{_sbindir}/ibfindnodesusing.pl
|
||||
%{_mandir}/man8/ibfindnodesusing*
|
||||
%{_sbindir}/ibidsverify.pl
|
||||
%{_mandir}/man8/ibidsverify*
|
||||
%{_sbindir}/check_lft_balance.pl
|
||||
%{_mandir}/man8/check_lft_balance*
|
||||
%{_sbindir}/dump_lfts.sh
|
||||
%{_mandir}/man8/dump_lfts*
|
||||
%{_sbindir}/dump_mfts.sh
|
||||
%{_mandir}/man8/dump_mfts*
|
||||
%{_sbindir}/ibstatus
|
||||
%{_mandir}/man8/ibstatus*
|
||||
%{_mandir}/man8/infiniband-diags*
|
||||
%{_libdir}/libibmad*.so.*
|
||||
%{_libdir}/libibnetdisc*.so.*
|
||||
%{perl_vendorlib}/IBswcountlimits.pm
|
||||
%config(noreplace) %{_sysconfdir}/infiniband-diags/error_thresholds
|
||||
%config(noreplace) %{_sysconfdir}/infiniband-diags/ibdiag.conf
|
||||
|
||||
%files -n libibverbs
|
||||
%dir %{_sysconfdir}/libibverbs.d
|
||||
%dir %{_libdir}/libibverbs
|
||||
%{_libdir}/libefa.so.*
|
||||
%{_libdir}/libibverbs*.so.*
|
||||
%{_libdir}/libibverbs/*.so
|
||||
%ifnarch s390
|
||||
%{_libdir}/libmlx5.so.*
|
||||
%{_libdir}/libmlx4.so.*
|
||||
%endif
|
||||
%config(noreplace) %{_sysconfdir}/libibverbs.d/*.driver
|
||||
%doc %{_docdir}/%{name}/libibverbs.md
|
||||
%doc %{_docdir}/%{name}/rxe.md
|
||||
%doc %{_docdir}/%{name}/tag_matching.md
|
||||
%{_mandir}/man7/rxe*
|
||||
%ifnarch s390
|
||||
%{_mandir}/man7/mlx4dv*
|
||||
%{_mandir}/man7/mlx5dv*
|
||||
%endif
|
||||
|
||||
%files -n libibverbs-utils
|
||||
%{_bindir}/ibv_*
|
||||
%{_mandir}/man1/ibv_*
|
||||
%{_bindir}/rxe_cfg
|
||||
%{_mandir}/man8/rxe*
|
||||
|
||||
%files -n ibacm
|
||||
%config(noreplace) %{_sysconfdir}/rdma/ibacm_opts.cfg
|
||||
%{_bindir}/ib_acme
|
||||
%{_sbindir}/ibacm
|
||||
%{_mandir}/man1/ib_acme.*
|
||||
%{_mandir}/man7/ibacm.*
|
||||
%{_mandir}/man7/ibacm_prov.*
|
||||
%{_mandir}/man8/ibacm.*
|
||||
%{_unitdir}/ibacm.service
|
||||
%{_unitdir}/ibacm.socket
|
||||
%dir %{_libdir}/ibacm
|
||||
%{_libdir}/ibacm/*
|
||||
%doc %{_docdir}/%{name}/ibacm.md
|
||||
|
||||
%files -n iwpmd
|
||||
%{_sbindir}/iwpmd
|
||||
%{_unitdir}/iwpmd.service
|
||||
%config(noreplace) %{_sysconfdir}/rdma/modules/iwpmd.conf
|
||||
%config(noreplace) %{_sysconfdir}/iwpmd.conf
|
||||
%{_udevrulesdir}/90-iwpmd.rules
|
||||
%{_mandir}/man8/iwpmd.*
|
||||
%{_mandir}/man5/iwpmd.*
|
||||
|
||||
%files -n libibumad
|
||||
%{_libdir}/libibumad*.so.*
|
||||
|
||||
%files -n librdmacm
|
||||
%{_libdir}/librdmacm*.so.*
|
||||
%dir %{_libdir}/rsocket
|
||||
%{_libdir}/rsocket/librspreload.so*
|
||||
%doc %{_docdir}/%{name}/librdmacm.md
|
||||
%{_mandir}/man7/rsocket.*
|
||||
|
||||
%files -n librdmacm-utils
|
||||
%{_bindir}/cmtime
|
||||
%{_bindir}/mckey
|
||||
%{_bindir}/rcopy
|
||||
%{_bindir}/rdma_client
|
||||
%{_bindir}/rdma_server
|
||||
%{_bindir}/rdma_xclient
|
||||
%{_bindir}/rdma_xserver
|
||||
%{_bindir}/riostream
|
||||
%{_bindir}/rping
|
||||
%{_bindir}/rstream
|
||||
%{_bindir}/ucmatose
|
||||
%{_bindir}/udaddy
|
||||
%{_bindir}/udpong
|
||||
%{_mandir}/man1/cmtime.*
|
||||
%{_mandir}/man1/mckey.*
|
||||
%{_mandir}/man1/rcopy.*
|
||||
%{_mandir}/man1/rdma_client.*
|
||||
%{_mandir}/man1/rdma_server.*
|
||||
%{_mandir}/man1/rdma_xclient.*
|
||||
%{_mandir}/man1/rdma_xserver.*
|
||||
%{_mandir}/man1/riostream.*
|
||||
%{_mandir}/man1/rping.*
|
||||
%{_mandir}/man1/rstream.*
|
||||
%{_mandir}/man1/ucmatose.*
|
||||
%{_mandir}/man1/udaddy.*
|
||||
%{_mandir}/man1/udpong.*
|
||||
|
||||
%files -n srp_daemon
|
||||
%config(noreplace) %{_sysconfdir}/srp_daemon.conf
|
||||
%config(noreplace) %{_sysconfdir}/rdma/modules/srp_daemon.conf
|
||||
%{_libexecdir}/srp_daemon/start_on_all_ports
|
||||
%{_unitdir}/srp_daemon.service
|
||||
%{_unitdir}/srp_daemon_port@.service
|
||||
%{_sbindir}/ibsrpdm
|
||||
%{_sbindir}/srp_daemon
|
||||
%{_sbindir}/srp_daemon.sh
|
||||
%{_sbindir}/run_srp_daemon
|
||||
%{_udevrulesdir}/60-srp_daemon.rules
|
||||
%{_mandir}/man5/srp_daemon.service.5*
|
||||
%{_mandir}/man5/srp_daemon_port@.service.5*
|
||||
%{_mandir}/man8/ibsrpdm.8*
|
||||
%{_mandir}/man8/srp_daemon.8*
|
||||
%doc %{_docdir}/%{name}/ibsrpdm.md
|
||||
|
||||
%if %{with_pyverbs}
|
||||
%files -n python3-pyverbs
|
||||
%{python3_sitearch}/pyverbs
|
||||
%{_docdir}/%{name}/tests/*.py
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Tue Nov 03 2020 Honggang Li <honli@redhat.com> - 32.0-1
|
||||
- Update to upstream v32 release for features and fixes
|
||||
- Support Amazon Elastic Fabric Adapter
|
||||
- Enable pyverbs
|
||||
- Add a check for udevadm in the specfile
|
||||
- Resolves: bz1851721, bz1856076, bz1887396, bz1868804
|
||||
|
||||
* Tue Jun 09 2020 Honggang Li <honli@redhat.com> - 29.0-3
|
||||
- BuildRequires perl-generators
|
||||
- Backport upstream stable-v29 commits
|
||||
- Resolves: bz1845420
|
||||
|
||||
* Mon May 18 2020 Honggang Li <honli@redhat.com> - 29.0-2
|
||||
- Suppress ibdev2netdev warning messgae
|
||||
- Unversioned documentation directory
|
||||
- Resolves: bz1794904, bz1824853
|
||||
|
||||
* Tue Apr 14 2020 Honggang Li <honli@redhat.com> - 29.0-1
|
||||
- Update to upstream v29 release for features and fixes
|
||||
- Resolves: bz1790624
|
||||
|
||||
* Fri Feb 07 2020 Honggang Li <honli@redhat.com> - 26.0-8
|
||||
- Fix an ibacm segfault issue for dual port HCA support IB and Ethernet
|
||||
- Resolves: bz1793736
|
||||
|
||||
* Tue Dec 17 2019 Honggang Li <honli@redhat.com> - 26.0-7
|
||||
- Build with Ninja.
|
||||
- Resolves: bz1783254
|
||||
|
||||
* Fri Dec 13 2019 Honggang Li <honli@redhat.com> - 26.0-6
|
||||
- Remove dangling symlink
|
||||
- Resolves: bz1782828
|
||||
|
||||
* Wed Dec 11 2019 Honggang Li <honli@redhat.com> - 26.0-5
|
||||
- Remove EFA driver
|
||||
- Fix rpm dependency issue
|
||||
- Resolves: bz1781454, bz1781457
|
||||
|
||||
* Mon Dec 09 2019 Honggang Li <honli@redhat.com> - 26.0-4
|
||||
- libbnxt_re support for some new device ids and generation id
|
||||
- Resolves: bz1779948
|
||||
|
||||
* Tue Nov 19 2019 Jarod Wilson <jarod@redhat.com> - 26.0-3
|
||||
- Make rdma-core-devel Obsoletes infiniband-diags due to man3/ibnd_*
|
||||
- Related: rhbz#1722257
|
||||
|
||||
* Thu Nov 14 2019 Jarod Wilson <jarod@redhat.com> - 26.0-2
|
||||
- Add Obsoletes/Provides pair for infiniband-diags-devel
|
||||
- Pull in upstream stable-v26 branch patches
|
||||
- Fix %%postun scriptlet failures by removing superfluous -p options
|
||||
- Add new BuildRequires: on pandoc
|
||||
- Related: rhbz#1722257
|
||||
|
||||
* Thu Nov 14 2019 Jarod Wilson <jarod@redhat.com> - 26.0-1
|
||||
- Update to upstream v26 release for features and fixes
|
||||
- Resolves: rhbz#1722257
|
||||
|
||||
* Tue Jul 23 2019 Jarod Wilson <jarod@redhat.com> - 24.0-1
|
||||
- Update to upstream v24 release for features and fixes
|
||||
|
||||
* Mon Jun 24 2019 Jarod Wilson <jarod@redhat.com> - 22.3-1
|
||||
- Update to upstream v22.3 stable release for fixes
|
||||
- Enable support for Broadcom 57500 hardware
|
||||
- Enable support for Mellanox ConnectX-6 DX hardware
|
||||
- Resolves: rhbz#1678276
|
||||
- Resolves: rhbz#1687435
|
||||
|
||||
* Thu Jan 10 2019 Jarod Wilson <jarod@redhat.com> - 22-2
|
||||
- Fix up covscan shellcheck warnings in ibdev2netdev
|
||||
- Related: rhbz#1643904
|
||||
|
||||
* Thu Jan 10 2019 Jarod Wilson <jarod@redhat.com> - 22-1
|
||||
- Update to upstream v22 release for features and fixes
|
||||
- Include legacy ibdev2netdev helper script
|
||||
- Resolves: rhbz#1643904
|
||||
|
||||
* Tue Nov 27 2018 Jarod Wilson <jarod@redhat.com> - 19.1-1
|
||||
- Update to v19.1 stable branch release
|
||||
- Fix SRQ support in libi40iw
|
||||
- Backport libqedr support for SRQ
|
||||
- Resolves: rhbz#1639692
|
||||
- Switch rxe_cfg from ifconfig to iproute2
|
||||
- Resolves: rhbz#1640637
|
||||
|
||||
* Thu Aug 30 2018 Jarod Wilson <jarod@redhat.com> - 19-3
|
||||
- Drop R: initscripts, since we've removed initscripts
|
||||
- Resolves: rhbz#1610284
|
||||
|
||||
* Fri Aug 3 2018 Florian Weimer <fweimer@redhat.com> - 19-2
|
||||
- Honor %%{valgrind_arches}
|
||||
|
||||
* Thu Jul 19 2018 Jarod Wilson <jarod@redhat.com> 19-1
|
||||
- Rebase to upstream rdma-core v19 release
|
||||
|
||||
* Mon Jul 02 2018 Jarod Wilson <jarod@redhat.com> 18.1-3
|
||||
- Adjust python deps for python3-only world
|
||||
|
||||
* Thu Jun 21 2018 Jarod Wilson <jarod@redhat.com> 18.1-2
|
||||
- Disable nes, mthca and ipath libibverbs providers, this
|
||||
old hardware is no longer supported, and fix disabling
|
||||
of cxgb3 and ocrdma
|
||||
|
||||
* Fri Jun 15 2018 Jarod Wilson <jarod@redhat.com> 18.1-1
|
||||
- Rebase to upstream rdma-core v18.1 stable release
|
||||
|
||||
* Thu May 03 2018 Jarod Wilson <jarod@redhat.com> 17.1-2
|
||||
- Match kernel ABI with kernel v4.17 for 32-on-64bit compatibility
|
||||
|
||||
* Mon Apr 16 2018 Jarod Wilson <jarod@redhat.com> 17.1-1
|
||||
- Rebase to upstream rdma-core v17.1 stable release
|
||||
- No more libibcm or ib sysv initscripts
|
||||
- Remove ibverbs provider for unsupported CXGB3 devices
|
||||
- Remove ibverbs provider for unsupported OCRDMA devices
|
||||
- Resolves: rhbz#1492324
|
||||
- Resolves: rhbz#1492924
|
||||
- Resolves: rhbz#1503621
|
||||
- Resolves: rhbz#1504528
|
||||
- Resolves: rhbz#1504581
|
||||
- Resolves: rhbz#1503723
|
||||
|
||||
* Tue Feb 27 2018 Jarod Wilson <jarod@redhat.com> 15-7
|
||||
- i40iw: revoke systemd udev rules auto-load on i40e hardware, due to
|
||||
causing problems with suspend and resume, and fall back to load via
|
||||
systemd rdma initscript.
|
||||
- Resolves: rhbz#1561566
|
||||
|
||||
* Mon Feb 19 2018 Jarod Wilson <jarod@redhat.com> 15-6
|
||||
- libbnxt_re: fix lat test failure in event mode
|
||||
- Resolves: rhbz#1545248
|
||||
|
||||
* Tue Feb 06 2018 Jarod Wilson <jarod@redhat.com> 15-5
|
||||
- libmlx4: report RSS caps for improved DPDK support
|
||||
- Fix double mutex unlock in iwpmd
|
||||
- Resolves: rhbz#1527350
|
||||
- Resolves: rhbz#1542362
|
||||
|
||||
* Mon Jan 15 2018 Jarod Wilson <jarod@redhat.com> 15-4
|
||||
- Add support for extended join multicast API in librdmacm
|
||||
- Add support for striding RQ on mlx5
|
||||
- Resolves: rhbz#1515487, rhbz#1516571
|
||||
|
||||
* Tue Dec 26 2017 Honggang Li <honli@redhat.com> 15-3
|
||||
- srp_daemon: Don't create async_ev_thread if only run once
|
||||
- srp_daemon: Remove unsupported systemd configurations
|
||||
- srp_daemon: Start srp_daemon service after network target
|
||||
- Resolves: bz1525193
|
||||
- Resolves: bz1528671
|
||||
|
||||
* Mon Nov 13 2017 Jarod Wilson <jarod@redhat.com> 15-2
|
||||
- Fix ibacm segfault and improper multicast handling
|
||||
- Resolves: rhbz#1502745
|
||||
- Resolves: rhbz#1502759
|
||||
|
||||
* Fri Sep 22 2017 Jarod Wilson <jarod@redhat.com> 15-1
|
||||
- Update to upstream v15 release
|
||||
- Resolves: rhbz#1494607
|
||||
|
||||
* Wed Aug 09 2017 Jarod Wilson <jarod@redhat.com> - 14-4
|
||||
- Make use of systemd_requires, own srp_daemon dir
|
||||
|
||||
* Tue Aug 01 2017 Jarod Wilson <jarod@redhat.com> - 14-3
|
||||
- Revert work-around for ppc64le library issues
|
||||
- Add Obsoletes/Provides for libusnic_verbs
|
||||
|
||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 14-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Tue Jul 25 2017 Jarod Wilson <jarod@redhat.com> - 14-1
|
||||
- Update to upstream v14 release
|
||||
- Sync packaging updates from RHEL and upstream
|
||||
|
||||
* Tue May 30 2017 Jarod Wilson <jarod@redhat.com> 13-7
|
||||
- Add support for mlx5 Expand raw packet capabilities
|
||||
- Resolves: rhbz#1456561
|
||||
|
||||
* Mon May 22 2017 Jarod Wilson <jarod@redhat.com> 13-6
|
||||
- Clean up htonll/ntohll handling for opa-ff/infiniband-diags compile
|
||||
- Add necessary Provides/Obsoletes for old -static packages
|
||||
- Remove ibverbs providers that we aren't currently able to support
|
||||
- Resolves: rhbz#1453096, rhbz#1451607
|
||||
|
||||
* Wed Apr 26 2017 Honggang Li <honli@redhat.com> 13-5
|
||||
- rdma-ndd: Fix a busy loop for aarch64 platform
|
||||
- Resolves: bz1442789
|
||||
|
||||
* Thu Apr 13 2017 Honggang Li <honli@redhat.com> 13-4
|
||||
- srp_daemon: Don't rely on attribute offset in get_shared_pkeys
|
||||
- Resolves: bz1432964
|
||||
|
||||
* Mon Apr 03 2017 Jarod Wilson <jarod@redhat.com> - 13-3
|
||||
- Add necessary Provides/Obsoletes for rdma-ndd (rhbz 1437804)
|
||||
|
||||
* Mon Mar 27 2017 Jarod Wilson <jarod@redhat.com> - 13-2
|
||||
- Build what we can on s390, don't exclude it entirely (rhbz 1434029)
|
||||
|
||||
* Tue Mar 21 2017 Jarod Wilson <jarod@redhat.com> - 13-1
|
||||
- Update to rdma-core v13 release (rhbz 1404035)
|
||||
- Mellanox mlx5 Direct Verbs support (rhbz 1426430)
|
||||
- Get build working on s390x, less mlx5 (rhbz 1434029)
|
||||
|
||||
* Mon Mar 20 2017 Jarod Wilson <jarod@redhat.com> - 12-5
|
||||
- Fix up multi-lib conflicts in ibacm files (rhbz 1429362)
|
||||
|
||||
* Mon Mar 13 2017 Jarod Wilson <jarod@redhat.com> - 12-4
|
||||
- Clean up devel files list
|
||||
- Fix up a few dependencies rpmdiff complained about (rhbz 1404035)
|
||||
- Add Requires: pciutils for dracut to behave in minimalist cases (rhbz 1429046)
|
||||
- Adjust Conflicts: on infiniband-diags to match RHEL packaging (rhbz 1428785)
|
||||
|
||||
* Mon Mar 06 2017 Jarod Wilson <jarod@redhat.com> - 12-3
|
||||
- Take libi40iw out of tech-preview state (rhbz 1428930)
|
||||
- Add ibv_*_pingpong man pages (rhbz 1416541)
|
||||
|
||||
* Thu Feb 09 2017 Jarod Wilson <jarod@redhat.com> - 12-2
|
||||
- Make sure ocrdma module is classified as tech-preview (rhbz 1418224)
|
||||
|
||||
* Fri Jan 27 2017 Jarod Wilson <jarod@redhat.com> - 12-1
|
||||
- Update to upstream final v12 release
|
||||
|
||||
* Wed Jan 25 2017 Jarod Wilson <jarod@redhat.com> - 12-0.1.rc3.1
|
||||
- Initial import to Fedora package database via post-v12-rc3 git snapshot
|
Loading…
Reference in New Issue
Block a user