Fix dpdk-20.02 build to include igb_uio. 53/25953/3
authorMaros Mullner <maros.mullner@pantheon.tech>
Tue, 17 Mar 2020 14:09:51 +0000 (15:09 +0100)
committerPeter Mikus <pmikus@cisco.com>
Wed, 18 Mar 2020 09:35:07 +0000 (09:35 +0000)
Signed-off-by: Maros Mullner <maros.mullner@pantheon.tech>
Change-Id: Ifd0f4d09b7c518feab534186220d618a560f223c

resources/tools/testbed-setup/ansible/roles/dpdk/tasks/main.yaml

index 8ece4af..1b4e398 100644 (file)
   tags:
     - install-dpdk
 
+- name: DPDK - Build igb_uio by default
+  lineinfile:
+    dest: "{{ dpdk_target_dir }}/dpdk-{{ item }}/config/common_base"
+    regexp: "^CONFIG_RTE_EAL_IGB_UIO"
+    line: "CONFIG_RTE_EAL_IGB_UIO=y"
+  loop: "{{ dpdk_version }}"
+  when: "dpdk_extracted"
+  register: "dpdk_configured"
+  tags:
+    - install-dpdk
+
 - name: DPDK - Compile Release I
   become: yes
   command: "make install T={{ dpdk_build_targets[item][ansible_machine] }} DESTDIR={{ dpdk_target_dir }}/dpdk-{{ item }} chdir={{ dpdk_target_dir }}/dpdk-{{ item }}"
   loop: "{{ dpdk_version }}"
-  when: "dpdk_extracted"
+  when: "dpdk_configured"
   register: "dpdk_compiled"
   tags:
     - install-dpdk