summaryrefslogtreecommitdiff
path: root/execs/mlnx-dpdk.yaml
diff options
context:
space:
mode:
authorIlias Apalodimas <ilias.apalodimas@linaro.org>2018-01-11 18:15:47 +0200
committerIlias Apalodimas <ilias.apalodimas@linaro.org>2018-01-11 18:15:47 +0200
commit3b6a478836c67e461d2e9974897ce2cec13b529b (patch)
tree848d45dbe4a1e7b59c85dfe92ac335d4c193b63f /execs/mlnx-dpdk.yaml
parent63366824527dc6425a038a604b630c0a0c4438b7 (diff)
downloadlava-sessions-3b6a478836c67e461d2e9974897ce2cec13b529b.tar.gz
added mellanox dpdk
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'execs/mlnx-dpdk.yaml')
-rw-r--r--execs/mlnx-dpdk.yaml32
1 files changed, 32 insertions, 0 deletions
diff --git a/execs/mlnx-dpdk.yaml b/execs/mlnx-dpdk.yaml
new file mode 100644
index 0000000..29bf42b
--- /dev/null
+++ b/execs/mlnx-dpdk.yaml
@@ -0,0 +1,32 @@
+metadata:
+ name: ODP mdev
+ format: "Lava-Test-Shell Test Definition 1.0"
+ description: "Setup DPDK for mellanox Connect 4"
+ version: 1.0
+
+params:
+ DPDK_JOBS: 32
+
+install:
+ deps:
+ - libnuma1
+ - libnuma-dev
+ - libpcap-dev
+
+run:
+ steps:
+ - echo "Build DPDK"
+ - wget http://content.mellanox.com/ofed/MLNX_OFED-4.2-1.2.0.0/MLNX_OFED_LINUX-4.2-1.2.0.0-ubuntu17.10-x86_64.tgz
+ - tar xf http://content.mellanox.com/ofed/MLNX_OFED-4.2-1.2.0.0/MLNX_OFED_LINUX-4.2-1.2.0.0-ubuntu17.10-x86_64.tgz
+ - cd MLNX_OFED_LINUX-4.2-1.2.0.0-ubuntu17.10-x86_64
+ - ./mlnxofedinstall --upstream-libs --dpdk
+ - /etc/init.d/openibd start
+ - git clone http://dpdk.org/git/dpdk && cd dpdk
+ - make config T=x86_64-native-linuxapp-gcc O=x86_64-native-linuxapp-gcc
+ - make -j $DPDK_JOBS install T=x86_64-native-linuxapp-gcc DESTDIR=./install
+ - cd ..
+ - wget http://dpdk.org/browse/apps/pktgen-dpdk/snapshot/pktgen-3.4.7.tar.xz
+ - tar xf pktgen-3.4.7.tar.xz
+ - export RTE_SDK=/root/dpdk
+ - cd pktgen-3.4.7
+ - make -j $DPDK_JOBS