summaryrefslogtreecommitdiffstats
path: root/scripts/trex-cfg
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2017-01-29 18:07:33 +0200
committerimarom <imarom@cisco.com>2017-01-29 18:07:33 +0200
commit519ea63d05c655a75602eb8cd77c84e6e49e827d (patch)
treedbfb7325178a86149efce096494535b886907df7 /scripts/trex-cfg
parent42664b05103d0f4a7ed272301051d58d6e8f3737 (diff)
parentefbe56332fdf6a5c386152e4a2af3a2b56f723b5 (diff)
Merge branch 'master' into capture
Diffstat (limited to 'scripts/trex-cfg')
-rwxr-xr-xscripts/trex-cfg15
1 files changed, 8 insertions, 7 deletions
diff --git a/scripts/trex-cfg b/scripts/trex-cfg
index 08e1110f..02d50eb6 100755
--- a/scripts/trex-cfg
+++ b/scripts/trex-cfg
@@ -47,13 +47,7 @@ if ! lsmod | grep -q igb_uio ; then
exit 1
fi
km=ko/$SYS/igb_uio.ko
- if [ -e $km ] ; then
- insmod $km
- if [ $? -ne 0 ]; then
- echo "Failed inserting igb_uio module"
- exit 1
- fi
- else
+ if [ ! -e $km ]; then
echo "ERROR: We don't have precompiled igb_uio.ko module for your kernel version"
echo Will try compiling automatically.
{
@@ -73,6 +67,13 @@ if ! lsmod | grep -q igb_uio ; then
}
echo Success.
fi
+ if [ -e $km ]; then
+ insmod $km
+ if [ $? -ne 0 ]; then
+ echo "Failed inserting igb_uio module"
+ exit 1
+ fi
+ fi
fi
# try to bind the ports from the configuration file (new DPDK)