Skip to content

Commit

Permalink
Change regex to search for devices
Browse files Browse the repository at this point in the history
Previously, we explicitely searched for "infiniband" devices from
Mellanox.
However, if we have those configured as Ethernet devices, we won't
find any devices. We know we only have ConnectX-5 devices for
InfiniBand (but on the same machines we have ConnectX-4 LX which only
do Ethernet - so let's explicitely search for ConnectX-5 devices instead.
  • Loading branch information
frankenmichl committed Aug 14, 2024
1 parent 5b28376 commit 19c4caa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/kernel/mellanox_config.pm
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ sub run {
# install dependencies
zypper_call('--quiet in pciutils mstflint', timeout => 200);

my @devices = split(' ', script_output("lspci | grep -i infiniband.*mellanox |cut -d ' ' -f 1"));
my @devices = split(' ', script_output("lspci | grep -i mellanox.*ConnectX-5 |cut -d ' ' -f 1"));

die "There is no Mellanox card here" if !@devices;

Expand Down

0 comments on commit 19c4caa

Please sign in to comment.