From 62aa2e213ad53a0ac65de33c087197db31392d99 Mon Sep 17 00:00:00 2001 From: Tatyana Nikolova Date: Wed, 24 May 2017 23:54:48 -0500 Subject: [PATCH] ofed-scripts: Enable iwpmd for iWarp drivers Signed-off-by: Tatyana Nikolova --- install.pl | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/install.pl b/install.pl index bfdae14..9bae21c 100755 --- a/install.pl +++ b/install.pl @@ -636,6 +636,7 @@ my @kernel_modules = (@basic_kernel_modules, @ulp_modules); my $kernel_configure_options = ''; my $user_configure_options = ''; +my $enable_iwpmd = 0; my @misc_packages = ("ofed-docs", "ofed-scripts"); @@ -2522,6 +2523,14 @@ sub install_kernel_rpm print RED "See $ofedlogs/$name.rpminstall.log", RESET "\n"; exit 1; } + + if ($name eq "compat-rdma") { + for my $module (@selected_kernel_modules) { + if ($module eq "i40iw" or $module eq "cxgb4" or $module eq "nes") { + $enable_iwpmd = 1; + } + } + } } sub install_rpm_32 @@ -3478,6 +3487,14 @@ sub main } } + if ($enable_iwpmd eq 1) { + system("command -v \"systemctl\" > /dev/nul"); + my $res = $? >> 8; + if ($res eq 0) { + system("systemctl enable iwpmd"); + } + } + print GREEN "\nInstallation finished successfully.", RESET; if ($interactive) { print GREEN "\nPress any key to continue...", RESET; -- 2.46.0