NFVBENCH-196: New NFVbench image for generator part (nfvbench and TRex codes inside VM)
[nfvbench.git] / nfvbenchvm / dib / elements / nfvbenchvm / post-install.d / 02-testpmd-script
index 2136c3a..f18ed60 100755 (executable)
@@ -1,7 +1,11 @@
 #!/bin/bash
 
-DPDK=dpdk-17.08
-DPDK_UNTAR=dpdk-17.08
+if [ $DIB_DEV_IMAGE != "loopvm" ]; then
+    exit 0
+fi
+
+DPDK=dpdk-18.02
+DPDK_UNTAR=dpdk-18.02
 
 # pick up the kernel version for the target image
 kernel_version=`ls -t /lib/modules | awk 'NR==1 {print}'`
@@ -15,8 +19,6 @@ export RTE_KERNELDIR=/lib/modules/$kernel_version/build
 export ARCH=x86
 make -j4 install T=x86_64-native-linuxapp-gcc
 
-cp usertools/dpdk-devbind.py ../dpdk
-# cp tools/dpdk_nic_bind.py ../dpdk/dpdk-devbind.py
 cp x86_64-native-linuxapp-gcc/app/testpmd ../dpdk
 cp x86_64-native-linuxapp-gcc/kmod/igb_uio.ko ../dpdk
 echo "set promisc all off" > /dpdk/testpmd_cmd.txt