aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2020-02-13 08:21:42 +0000
committerPeter Mikus <peter.mikus@protonmail.ch>2020-02-14 12:43:49 +0000
commit1ff1a79c8b4a1fa081fcf383bdb0d8b06823a4fe (patch)
tree23d771b63fa57bc0c0aed694bbffd07d0867ed2a /resources/tools/testbed-setup
parentffab1c91ccbc298f7d57352e69ae914e58b97856 (diff)
Ansible: Update DPDK
Signed-off-by: Peter Mikus <pmikus@cisco.com> Change-Id: Ia5c1e40b952c14775f2f038d3a8a293335172f47
Diffstat (limited to 'resources/tools/testbed-setup')
-rw-r--r--resources/tools/testbed-setup/ansible/roles/dpdk/defaults/main.yaml2
-rw-r--r--resources/tools/testbed-setup/ansible/roles/dpdk/tasks/main.yaml13
2 files changed, 9 insertions, 6 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/dpdk/defaults/main.yaml b/resources/tools/testbed-setup/ansible/roles/dpdk/defaults/main.yaml
index 27907f7d0e..d56b967b97 100644
--- a/resources/tools/testbed-setup/ansible/roles/dpdk/defaults/main.yaml
+++ b/resources/tools/testbed-setup/ansible/roles/dpdk/defaults/main.yaml
@@ -18,7 +18,7 @@ packages_by_arch:
- []
dpdk_target_dir: "/opt"
-dpdk_version: "dpdk-19.02"
+dpdk_version: "19.08.2"
dpdk_url: "https://fast.dpdk.org/rel"
dpdk_build_targets:
aarch64: "arm64-armv8a"
diff --git a/resources/tools/testbed-setup/ansible/roles/dpdk/tasks/main.yaml b/resources/tools/testbed-setup/ansible/roles/dpdk/tasks/main.yaml
index 3c4f69b5a0..9577c5c392 100644
--- a/resources/tools/testbed-setup/ansible/roles/dpdk/tasks/main.yaml
+++ b/resources/tools/testbed-setup/ansible/roles/dpdk/tasks/main.yaml
@@ -11,16 +11,19 @@
- name: DPDK - Download Release Archive
get_url:
- url: "{{ dpdk_url }}/{{ dpdk_version }}.tar.xz"
- dest: "{{ dpdk_target_dir }}/{{ dpdk_version }}.tar.xz"
+ url: "{{ dpdk_url }}/dpdk-{{ dpdk_version }}.tar.xz"
+ dest: "{{ dpdk_target_dir }}/dpdk-{{ dpdk_version }}.tar.xz"
mode: 0644
register: "linux__dpdk_downloaded"
tags:
- install-dpdk
- name: Extract DPDK release archive
- become: yes
- shell: "cd {{ dpdk_target_dir }}; tar xf {{ dpdk_target_dir }}/{{ dpdk_version }}.tar.xz"
+ unarchive:
+ remote_src: true
+ src: "{{ dpdk_target_dir }}/dpdk-{{ dpdk_version }}.tar.xz"
+ dest: "{{ dpdk_target_dir }}/"
+ creates: "{{ dpdk_target_dir }}/dpdk-stable-{{ dpdk_version }}"
when: "linux__dpdk_downloaded"
register: "linux__dpdk_extracted"
tags:
@@ -28,7 +31,7 @@
- name: Compile DPDK release
become: yes
- command: "make install T={{ dpdk_build_targets[ansible_machine] }}-linuxapp-gcc DESTDIR={{ dpdk_target_dir }}/{{ dpdk_version }} chdir={{ dpdk_target_dir }}/{{ dpdk_version }}"
+ command: "make install T={{ dpdk_build_targets[ansible_machine] }}-linux-gcc DESTDIR={{ dpdk_target_dir }}/dpdk-stable-{{ dpdk_version }} chdir={{ dpdk_target_dir }}/dpdk-stable-{{ dpdk_version }}"
when: "linux__dpdk_extracted"
tags:
- install-dpdk