Ansible: Update DPDK 65/25065/2
authorPeter Mikus <pmikus@cisco.com>
Thu, 13 Feb 2020 08:21:42 +0000 (08:21 +0000)
committerPeter Mikus <peter.mikus@protonmail.ch>
Fri, 14 Feb 2020 12:43:49 +0000 (12:43 +0000)
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Change-Id: Ia5c1e40b952c14775f2f038d3a8a293335172f47

resources/libraries/python/Constants.py
resources/libraries/python/QemuUtils.py
resources/tools/testbed-setup/ansible/roles/dpdk/defaults/main.yaml
resources/tools/testbed-setup/ansible/roles/dpdk/tasks/main.yaml

index 5ffc7c0..99c1e87 100644 (file)
@@ -179,7 +179,7 @@ class Constants:
     QEMU_VM_IMAGE = u"/var/lib/vm/vhost-nested.img"
 
     # QEMU VM DPDK path
-    QEMU_VM_DPDK = u"/opt/dpdk-19.02"
+    QEMU_VM_DPDK = u"/opt/dpdk-stable-19.08.2"
 
     # Docker container SUT image
     DOCKER_SUT_IMAGE_UBUNTU = u"snergster/csit-sut:latest"
index 2b08429..9fb2410 100644 (file)
@@ -63,7 +63,7 @@ class QemuUtils:
         dpdk_target = u"arm64-armv8a" if self._arch == u"aarch64" \
             else u"x86_64-native"
         self._testpmd_path = f"{Constants.QEMU_VM_DPDK}/" \
-            f"{dpdk_target}-linuxapp-gcc/app"
+            f"{dpdk_target}-linux-gcc/app"
         self._vm_info = {
             u"host": node[u"host"],
             u"type": NodeType.VM,
index 27907f7..d56b967 100644 (file)
@@ -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"
index 3c4f69b..9577c5c 100644 (file)
 
 - 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

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.