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:
Saravanan KR 2016-07-26 21:26:33 +05:30
parent 0f93b8926e
commit 94a9e3966e
4 changed files with 16 additions and 1 deletions

View File

@ -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'],

View File

@ -41,5 +41,7 @@
{ "name": "pe","version_requirement": "3.x" },
{ "name": "puppet","version_requirement": "3.x" }
],
"dependencies": []
"dependencies": [
{ "name": "camptocamp/puppet-kmod" }
]
}

View File

@ -0,0 +1,3 @@
---
features:
- DPDK driver kernel module is loaded persistently.

View File

@ -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