summaryrefslogtreecommitdiff
path: root/execs/mlnx-dpdk.yaml
blob: 25b4cc5ab935caa212faada8261048cb5fb98af3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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 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 --force
        - /etc/init.d/openibd start
        - cd ..
        - git clone http://dpdk.org/git/dpdk && cd dpdk
        - make config T=x86_64-native-linuxapp-gcc O=x86_64-native-linuxapp-gcc
        - cd x86_64-native-linuxapp-gcc/
        - sed -ri 's,(CONFIG_RTE_LIBRTE_PMD_PCAP=).*,\1y,' .config
        - sed -ri 's,(CONFIG_RTE_LIBRTE_PMD_OPENSSL=).*,\1y,' .config
        - sed -ri 's,(CONFIG_RTE_LIBRTE_MLX5_PMD=).*,\1y,' .config
        - cd ..
        - 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=dpdk
        - cd pktgen-3.4.7
        - make -j $DPDK_JOBS