Fix dpdk-20.02 build to include igb_uio.
[csit.git] / 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