1 # Copyright (c) 2017 Intel Corporation.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 #- patch: src="{{ item }}" basedir="{{ dpdk_path }}" strip=0
17 # - "{{ local_nsb_path }}/patches/dpdk_custom_patch/rte_pipeline.patch"
19 #- patch: src="{{ item }}" basedir="{{ dpdk_path }}" strip=1
21 # - "{{ local_nsb_path }}/patches/dpdk_custom_patch/0*.patch"
23 - include: "{{ ansible_os_family }}.yml"
26 chdir: "{{ dpdk_path }}"
29 T: "{{ dpdk_make_arch }}"
30 O: "{{ dpdk_make_arch }}"
31 extra_args: "-j {{ ansible_processor_vcpus }}"
33 - name: enable RTE_PORT_STATS_COLLECT
35 dest: "{{ dpdk_path }}/{{ dpdk_make_arch }}/.config"
36 regexp: '^CONFIG_RTE_PORT_STATS_COLLECT=n'
37 line: 'CONFIG_RTE_PORT_STATS_COLLECT=y'
39 - name: enable DPDK RTE_PORT_PCAP
41 dest: "{{ dpdk_path }}/{{ dpdk_make_arch }}/.config"
42 regexp: '^CONFIG_RTE_PORT_PCAP=n'
43 line: 'CONFIG_RTE_PORT_PCAP=y'
45 - name: enable DPDK RTE_TABLE_STATS_COLLECT
47 dest: "{{ dpdk_path }}/{{ dpdk_make_arch }}/.config"
48 regexp: '^CONFIG_RTE_TABLE_STATS_COLLECT=n'
49 line: 'CONFIG_RTE_TABLE_STATS_COLLECT=y'
51 - name: enable DPDK RTE_PIPELINE_STATS_COLLECT
53 dest: "{{ dpdk_path }}/{{ dpdk_make_arch }}/.config"
54 regexp: '^CONFIG_RTE_PIPELINE_STATS_COLLECT=n'
55 line: 'CONFIG_RTE_PIPELINE_STATS_COLLECT=y'
58 chdir: "{{ dpdk_path }}/{{ dpdk_make_arch}}"
59 extra_args: "-j {{ ansible_processor_vcpus }}"
62 path: "{{ dpdk_module_dir}}"
66 src: "{{ dpdk_path }}/{{ dpdk_make_arch }}/kmod/igb_uio.ko"
67 dest: "{{ dpdk_module_dir }}/igb_uio.ko"
73 path: "{{ INSTALL_BIN_PATH }}"
76 - name: copy dpdk-devbind.py to correct location
78 src: "{{ dpdk_devbind[dpdk_version] }}"
79 dest: "{{ INSTALL_BIN_PATH }}/dpdk-devbind.py"
84 - name: make dpdk_nic_bind.py for backwards compatibility
86 src: "{{ dpdk_devbind[dpdk_version] }}"
87 dest: "{{ INSTALL_BIN_PATH }}/dpdk_nic_bind.py"