Add DPDK driver modprobe for loading modules on reboot
driverctl will be used to bind the pci with the DPDK driver, but the DPDK driver modules has to be loaded for it. Adding sysconfig modules files to load driver module on reboot. Implements: blueprint tripleo-ovs-dpdk Depends-On: I79308ac5949a47a707d42bb2566407b9e8adfb9c Change-Id: I46331a882eca97d8b2ea0229ff768ce629971a6d
This commit is contained in:
parent
0f93b8926e
commit
94a9e3966e
@ -35,6 +35,8 @@ class vswitch::dpdk (
|
||||
|
||||
include ::vswitch::params
|
||||
|
||||
kmod::load { 'vfio-pci': }
|
||||
|
||||
package { $::vswitch::params::ovs_dpdk_package_name:
|
||||
ensure => $package_ensure,
|
||||
before => Service['openvswitch'],
|
||||
|
@ -41,5 +41,7 @@
|
||||
{ "name": "pe","version_requirement": "3.x" },
|
||||
{ "name": "puppet","version_requirement": "3.x" }
|
||||
],
|
||||
"dependencies": []
|
||||
"dependencies": [
|
||||
{ "name": "camptocamp/puppet-kmod" }
|
||||
]
|
||||
}
|
||||
|
3
releasenotes/notes/dpdk-module-678cecf0f8ff78a5.yaml
Normal file
3
releasenotes/notes/dpdk-module-678cecf0f8ff78a5.yaml
Normal file
@ -0,0 +1,3 @@
|
||||
---
|
||||
features:
|
||||
- DPDK driver kernel module is loaded persistently.
|
@ -82,6 +82,13 @@ describe 'vswitch::dpdk' do
|
||||
end
|
||||
end
|
||||
|
||||
shared_examples_for 'vswitch dpdk for modprobe' do
|
||||
it 'should have dpdk driver modules file' do
|
||||
is_expected.to contain_kmod__load('vfio-pci')
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
context 'on redhat with only mandatory parameters' do
|
||||
let :params do default_params end
|
||||
|
||||
@ -113,6 +120,7 @@ describe 'vswitch::dpdk' do
|
||||
|
||||
it_configures 'vswitch dpdk'
|
||||
it_configures 'vswitch dpdk additional params'
|
||||
it_configures 'vswitch dpdk for modprobe'
|
||||
end
|
||||
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user