This is required in order to use vfio-pci driver. More info: http://docs.openvswitch.org/en/latest/intro/install/dpdk/ Change-Id: I1c936ffd4a903b9c6d67cdde6c612019a85f9b9epull/110/head
bridge: openvswitch | bridge: openvswitch | ||||
dpdk: | dpdk: | ||||
enabled: true | enabled: true | ||||
driver: uio/vfio-pci | |||||
driver: uio/vfio | |||||
openvswitch: | openvswitch: | ||||
pmd_cpu_mask: "0x6" | pmd_cpu_mask: "0x6" | ||||
dpdk_socket_mem: "1024,1024" | dpdk_socket_mem: "1024,1024" | ||||
dpkd0: | dpkd0: | ||||
name: ${_param:dpdk_nic} | name: ${_param:dpdk_nic} | ||||
pci: 0000:06:00.0 | pci: 0000:06:00.0 | ||||
driver: igb_uio/vfio | |||||
driver: igb_uio/vfio-pci | |||||
enabled: true | enabled: true | ||||
type: dpdk_ovs_port | type: dpdk_ovs_port | ||||
n_rxq: 2 | n_rxq: 2 | ||||
bridge: openvswitch | bridge: openvswitch | ||||
dpdk: | dpdk: | ||||
enabled: true | enabled: true | ||||
driver: uio/vfio-pci | |||||
driver: uio/vfio | |||||
openvswitch: | openvswitch: | ||||
pmd_cpu_mask: "0x6" | pmd_cpu_mask: "0x6" | ||||
dpdk_socket_mem: "1024,1024" | dpdk_socket_mem: "1024,1024" | ||||
dpdk_second_nic: | dpdk_second_nic: | ||||
name: ${_param:primary_second_nic} | name: ${_param:primary_second_nic} | ||||
pci: 0000:06:00.0 | pci: 0000:06:00.0 | ||||
driver: igb_uio/vfio | |||||
driver: igb_uio/vfio-pci | |||||
bond: dpdkbond0 | bond: dpdkbond0 | ||||
enabled: true | enabled: true | ||||
type: dpdk_ovs_port | type: dpdk_ovs_port | ||||
dpdk_first_nic: | dpdk_first_nic: | ||||
name: ${_param:primary_first_nic} | name: ${_param:primary_first_nic} | ||||
pci: 0000:05:00.0 | pci: 0000:05:00.0 | ||||
driver: igb_uio/vfio | |||||
driver: igb_uio/vfio-pci | |||||
bond: dpdkbond0 | bond: dpdkbond0 | ||||
enabled: true | enabled: true | ||||
type: dpdk_ovs_port | type: dpdk_ovs_port |
{%- from "linux/map.jinja" import network with context %} | |||||
{%- if network.dpdk.enabled and network.dpdk.driver == "vfio" %} | |||||
include: | |||||
- linux.system.iommu | |||||
{%- endif %} |
{%- from "linux/map.jinja" import system with context %} | {%- from "linux/map.jinja" import system with context %} | ||||
{%- from "linux/map.jinja" import network with context %} | |||||
include: | include: | ||||
- linux.system.env | - linux.system.env | ||||
- linux.system.profile | - linux.system.profile | ||||
{%- if system.kernel.hugepages is defined %} | {%- if system.kernel.hugepages is defined %} | ||||
- linux.system.hugepages | - linux.system.hugepages | ||||
{%- endif %} | {%- endif %} | ||||
{%- if network.dpdk is defined %} | |||||
- linux.system.dpdk | |||||
{%- endif %} | |||||
{%- if system.kernel.sriov is defined %} | {%- if system.kernel.sriov is defined %} | ||||
- linux.system.sriov | - linux.system.sriov | ||||
{%- endif %} | {%- endif %} |
include: | |||||
- linux.system.grub | |||||
/etc/default/grub.d/90-iommu.cfg: | |||||
file.managed: | |||||
- contents: 'GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT intel_iommu=on iommu=pt"' | |||||
- require: | |||||
- file: grub_d_directory | |||||
{%- if grains.get('virtual_subtype', None) not in ['Docker', 'LXC'] %} | |||||
- watch_in: | |||||
- cmd: grub_update | |||||
{%- endif %} |
{%- from "linux/map.jinja" import system with context %} | {%- from "linux/map.jinja" import system with context %} | ||||
include: | include: | ||||
- linux.system.grub | |||||
/etc/default/grub.d/90-sriov.cfg: | |||||
file.managed: | |||||
- contents: 'GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT intel_iommu=on iommu=pt"' | |||||
- require: | |||||
- file: grub_d_directory | |||||
{%- if grains.get('virtual_subtype', None) not in ['Docker', 'LXC'] %} | |||||
- watch_in: | |||||
- cmd: grub_update | |||||
{%- endif %} | |||||
- linux.system.iommu | |||||
/etc/modprobe.d/sriov.conf: | /etc/modprobe.d/sriov.conf: | ||||
file.managed: | file.managed: |