2 # SPDX-License-Identifier: GPL-2.0
5 # This file is part of Lustre, http://www.lustre.org/
7 # Unload lnet related kernel modules
10 lnds=$(echo k{sock,qsw,{open,i,v,o2,c}ib,ra,ptl,mx}lnd)
14 if grep "^$mod" /proc/modules >/dev/null 2>&1; then
19 do_rmmod lnet_selftest
21 if lctl network down > /dev/null 2>&1; then
22 for mod in $lnds; do do_rmmod "$mod"; done