From b6af6bc6c166b8e6edd361ccc7fac294d1a7101e Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Fri, 8 Jul 2016 16:20:36 -0700 Subject: [PATCH] test/nvmf: leave modules alone if already loaded There's no benefit of reloading the NIC drivers (unless the drivers themselves are buggy), so save some time by skipping the rmmod of drivers we are about to load. Change-Id: I05c3fd06042a2e06333d0cac123d24e6cce65b23 Signed-off-by: Daniel Verkamp --- test/nvmf/common.sh | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/test/nvmf/common.sh b/test/nvmf/common.sh index 628d63c70..c32bda172 100755 --- a/test/nvmf/common.sh +++ b/test/nvmf/common.sh @@ -48,21 +48,6 @@ function detect_mellanox_nics() break; done - # Uninstall/install driver to make a clean test environment - if lsmod | grep -q $mlx_ib_driver; then - rmmod $mlx_ib_driver - fi - - if [ -n "$mlx_en_driver" ]; then - if lsmod | grep -q $mlx_en_driver; then - rmmod $mlx_en_driver - fi - fi - - if lsmod | grep -q $mlx_core_driver; then - rmmod $mlx_core_driver - fi - modprobe $mlx_core_driver modprobe $mlx_ib_driver if [ -n "$mlx_en_driver" ]; then