Skip to content

Commit

Permalink
SWUTILS-944: Detect if onload is installed via RPM or deb
Browse files Browse the repository at this point in the history
  • Loading branch information
dchadwic-xilinx committed Nov 19, 2024
1 parent 1f4d955 commit bf7dc39
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sfreport.pl
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
# AMD Solarflare device/driver identifiers.
use constant driver_name_re => 'sfc\w*|onload|xilinx_efct';
use constant rpm_name_prefixes =>
'kernel-module-sfc-', 'kmod-solarflare-sfc-', 'sfc-dkms', 'sfutils', 'openonload', 'solar_capture', 'sfptp', 'kernel-module-xilinx-efct';
use constant deb_name_prefixes => 'sfc-modules-', 'xilinx-efct';
'kernel-module-sfc-', 'kmod-solarflare-sfc-', 'sfc-dkms', 'sfutils', 'onload', 'openonload', 'enterpriseonload', 'solar_capture', 'sfptp', 'kernel-module-xilinx-efct';
use constant deb_name_prefixes => 'sfc-modules-', 'xilinx-efct', 'onload', 'enterpriseonload';
use constant EFX_VENDID_SFC => 0x1924;
use constant EFX_VENDID_XILINX => 0x10ee;

Expand Down Expand Up @@ -1073,6 +1073,9 @@ sub new {
substr($table, $pos, $header_len),
substr($table, $pos + $header_len,
$next - $pos - $header_len));
STDERR->print
("WARNING: This script will not provide a full report\n"
."unless you run it as root.\n");
++$i;
$pos = $next;
}
Expand Down

0 comments on commit bf7dc39

Please sign in to comment.