diff --git a/openvswitch/templates/bin/_openvswitch-vswitchd-init-modules.sh.tpl b/openvswitch/templates/bin/_openvswitch-vswitchd-init-modules.sh.tpl index ae06b97c1..2d84c8a2c 100644 --- a/openvswitch/templates/bin/_openvswitch-vswitchd-init-modules.sh.tpl +++ b/openvswitch/templates/bin/_openvswitch-vswitchd-init-modules.sh.tpl @@ -20,3 +20,9 @@ set -ex chroot /mnt/host-rootfs modprobe openvswitch chroot /mnt/host-rootfs modprobe gre chroot /mnt/host-rootfs modprobe vxlan + +{{- if .Values.conf.ovs_dpdk.enabled }} +{{- if hasKey .Values.conf.ovs_dpdk "driver"}} +chroot /mnt/host-rootfs modprobe {{ .Values.conf.ovs_dpdk.driver | quote }} +{{- end }} +{{- end }} diff --git a/openvswitch/values.yaml b/openvswitch/values.yaml index 770235e1d..46a64ce6b 100644 --- a/openvswitch/values.yaml +++ b/openvswitch/values.yaml @@ -205,3 +205,5 @@ conf: # mem_channels: 4 # lcore_mask: 0x1 # pmd_cpu_mask: 0x4 + ## Optional driver to use + # driver: vfio-pci