blob: 9052baff74cfe48873cf3fc6b9ed8d7f647800b9 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
---
# file: roles/dpdk/tasks/main.yaml
- name: Inst - Update Package Cache (APT)
apt:
update_cache: true
cache_valid_time: 3600
when:
- ansible_distribution == 'Ubuntu'
tags:
- dpdk-inst-prerequisites
- name: Inst - Prerequisites
package:
name: "{{ packages | flatten(levels=1) }}"
state: "latest"
tags:
- dpdk-inst-prerequisites
- name: Inst - Download Release Archive
get_url:
url: "{{ dpdk_url }}/dpdk-{{ item }}.tar.xz"
dest: "{{ dpdk_target_dir }}/dpdk-{{ item }}.tar.xz"
mode: 0644
loop: "{{ dpdk_version }}"
register: "dpdk_downloaded"
tags:
- dpdk-inst
- name: Inst - Extract Release Archive
unarchive:
remote_src: true
src: "{{ dpdk_target_dir }}/dpdk-{{ item }}.tar.xz"
dest: "{{ dpdk_target_dir }}/"
creates: "{{ dpdk_target_dir }}/dpdk-{{ item }}"
loop: "{{ dpdk_version }}"
when: "dpdk_downloaded"
register: "dpdk_extracted"
tags:
- dpdk-inst
- name: Inst - Compile Release I
command: "meson -Dexamples=l3fwd build"
args:
chdir: "{{ dpdk_target_dir }}/dpdk-{{ item }}"
environment:
CFLAGS: "-DRTE_LIBRTE_I40E_16BYTE_RX_DESC=y"
loop: "{{ dpdk_version }}"
register: "dpdk_compiled"
tags:
- dpdk-inst
- name: Inst - Compile Release II
command: "ninja -C build"
args:
chdir: "{{ dpdk_target_dir }}/dpdk-{{ item }}"
environment:
CFLAGS: "-DRTE_LIBRTE_I40E_16BYTE_RX_DESC=y"
loop: "{{ dpdk_version }}"
register: "dpdk_compiled"
tags:
- dpdk-inst
|