From 066a7e0ab4a6cf46b0ef80599e493bc1cd7ed024 Mon Sep 17 00:00:00 2001 From: Hemachandra Reddy Date: Wed, 4 Dec 2019 22:23:13 +0000 Subject: [PATCH] Initialize PCI module if used before DPDK for hotplug to work Change-Id: I9f552035eb70fd2a828ff7fa4852ba66055b885f --- .../templates/bin/_openvswitch-vswitchd-init-modules.sh.tpl | 6 ++++++ openvswitch/values.yaml | 2 ++ 2 files changed, 8 insertions(+) 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