acd617f4ca
Add full support for DPDK; this includes a number of configuration options to allow the number of cores and memory allocated per NUMA node to be changed. By default, the first core and 1024MB of RAM of each NUMA node will be configured for DPDK use. When DPDK is enabled, OVS bridges are configured as datapath type 'netdev' rather than type 'system' to allow use of userspace DPDK packet processing; Security groups are also disabled, as iptables based rules cannot be applied against userspace sockets. DPDK device binding is undertaken using /etc/dpdk/interfaces and the dpdk init script provided as part of the DPDK package; device resolution is determined using the data-port configuration option using the <bridge:<mac address> format - MAC addresses are used to resolve underlying PCI device names for binding with DPDK. It's assumed that hugepage memory configuration is either done as part of system boot as kernel command line options (set via MAAS) or using the hugepages configuration option on the nova-compute charm. Change-Id: Ieb2ac522b07e495f1855e304d31eef59c316c0e4
21 lines
909 B
Plaintext
21 lines
909 B
Plaintext
###############################################################################
|
|
# [ WARNING ]
|
|
# Configuration file maintained by Juju. Local changes may be overwritten.
|
|
# Configuration managed by neutron-openvswitch charm
|
|
###############################################################################
|
|
#
|
|
# <bus> Currently only "pci" is supported
|
|
# <id> Device ID on the specified bus
|
|
# <driver> Driver to bind against (vfio-pci or uio_pci_generic)
|
|
#
|
|
# Note that depending on your network card and what you want to set up also the
|
|
# drivers ixgbe or virtio-pci might apply, but these are the default drivers
|
|
# and therefore have not to be rebound as dpdk interfaces.
|
|
#
|
|
# Be aware that those two drivers are part of linux-image-extra-<VERSION>
|
|
# package in case you run into missing module issues.
|
|
#
|
|
# <bus> <id> <driver>
|
|
{% for device in devices -%}
|
|
pci {{ device }} {{ driver }}
|
|
{% endfor -%} |