aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dpdk/dpdk_scripts/init_dpdk.sh
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2020-02-07 12:33:20 +0000
committerJan Gelety <jgelety@cisco.com>2020-02-07 12:54:35 +0000
commitb9ffc1b5eb6bf80c95171d0496cef07d70bcfa5c (patch)
tree83bd7e7fa9ef40ff6788336fee6926c26d206080 /tests/dpdk/dpdk_scripts/init_dpdk.sh
parent707562eb45f21c89014c667aaef788d869f9b215 (diff)
FIX: Detection if testpmd/l3fwd is up
Change-Id: Ibd2e038332fe2bdf0e5bd69bf7376a2a7357e901 Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'tests/dpdk/dpdk_scripts/init_dpdk.sh')
-rwxr-xr-xtests/dpdk/dpdk_scripts/init_dpdk.sh24
1 files changed, 2 insertions, 22 deletions
diff --git a/tests/dpdk/dpdk_scripts/init_dpdk.sh b/tests/dpdk/dpdk_scripts/init_dpdk.sh
index d6565e063b..7d3df0a67c 100755
--- a/tests/dpdk/dpdk_scripts/init_dpdk.sh
+++ b/tests/dpdk/dpdk_scripts/init_dpdk.sh
@@ -20,28 +20,8 @@ fi
cd ${ROOTDIR}/${DPDK_DIR}/
-modprobe uio
-echo "RC = $?"
-
-lsmod | grep igb_uio
-if [ $? -ne 1 ];
-then
- rmmod igb_uio || \
- { echo "Failed to remove igb_uio module"; exit 1; }
-fi
-
-lsmod | grep uio_pci_generic
-if [ $? -ne 1 ];
-then
- rmmod uio_pci_generic || \
- { echo "Failed to remove uio_pci_generic module"; exit 1; }
-fi
-
-insmod ./${ARCH}-${MACHINE}-linuxapp-gcc/kmod/igb_uio.ko || \
- { echo "Failed to insert igb_uio module"; exit 1; }
-
# Binding
-./usertools/dpdk-devbind.py -b igb_uio $1 $2 || \
- { echo "Failed to bind interface $1 and $2 to igb_uio"; exit 1; }
+./usertools/dpdk-devbind.py -b vfio-pci $1 $2 || \
+ { echo "Failed to bind interface $1 and $2 to vfio-pci"; exit 1; }
cd ${PWDDIR}