CORD-1485 DPDK configuration options for nova-compute charm
Change-Id: I581806b11157aef06d9e041cb47b9af2b5f1bc90
diff --git a/roles/juju-setup/defaults/main.yml b/roles/juju-setup/defaults/main.yml
index 1792108..226794d 100644
--- a/roles/juju-setup/defaults/main.yml
+++ b/roles/juju-setup/defaults/main.yml
@@ -17,3 +17,8 @@
enable_dpdk: False
vcpu_pin_set: "^0,^2"
+hugepages: "60%"
+dpdk_socket_memory: "1024,0"
+dpdk_lcore_mask: "0x1"
+fabric_interfaces: "eth2"
+pmd_cpu_mask: "0x2"
diff --git a/roles/juju-setup/templates/juju_config.yml.j2 b/roles/juju-setup/templates/juju_config.yml.j2
index cc2f1f8..39193e8 100644
--- a/roles/juju-setup/templates/juju_config.yml.j2
+++ b/roles/juju-setup/templates/juju_config.yml.j2
@@ -52,6 +52,12 @@
disable-neutron-security-groups: "True"
{% if enable_dpdk -%}
config-flags: "firewall_driver=nova.virt.firewall.NoopFirewallDriver,vcpu_pin_set={{ vcpu_pin_set }}"
+ enable-dpdk: True
+ hugepages: "{{ hugepages }}"
+ dpdk-socket-memory: "{{ dpdk_socket_memory }}"
+ dpdk-lcore-mask: "{{ dpdk_lcore_mask }}"
+ pmd-cpu-mask: "{{ pmd_cpu_mask }}"
+ fabric-interfaces: "{{ fabric_interfaces }}"
{% else -%}
config-flags: "firewall_driver=nova.virt.firewall.NoopFirewallDriver"
{% endif %}