aboutsummaryrefslogtreecommitdiffstats
path: root/dpdk-tests/dpdk_scripts/init_dpdk.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dpdk-tests/dpdk_scripts/init_dpdk.sh')
-rwxr-xr-xdpdk-tests/dpdk_scripts/init_dpdk.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/dpdk-tests/dpdk_scripts/init_dpdk.sh b/dpdk-tests/dpdk_scripts/init_dpdk.sh
new file mode 100755
index 0000000000..b0bd426021
--- /dev/null
+++ b/dpdk-tests/dpdk_scripts/init_dpdk.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+ROOTDIR=/tmp/openvpp-testing
+PWDDIR=$(pwd)
+
+cd ${ROOTDIR}/dpdk-16.07/
+modprobe uio
+lsmod | grep igb_uio
+if [ $? -eq 1 ];
+then
+ insmod ./x86_64-native-linuxapp-gcc/kmod/igb_uio.ko || exit 1
+else
+ rmmod igb_uio
+ insmod ./x86_64-native-linuxapp-gcc/kmod/igb_uio.ko || exit 1
+fi
+./tools/dpdk-devbind.py -b igb_uio $1 $2
+cd ${PWDDIR}