Merge "Configure IRQ Work threads priority"

This commit is contained in:
Zuul
2025-05-13 20:15:44 +00:00
committed by Gerrit Code Review
2 changed files with 16 additions and 0 deletions

View File

@@ -269,6 +269,21 @@ class platform::config::file::irq {
match_for_absence => true,
}
}
if $::platform::params::irq_work_priority {
file_line { "${platform_conf} irq_work_priority":
path => $platform_conf,
line => "irq_work_priority=${::platform::params::irq_work_priority}",
match => '^irq_work_priority=',
}
} else {
file_line { "${platform_conf} irq_work_priority":
ensure => absent,
path => $platform_conf,
match => '^irq_work_priority=',
match_for_absence => true,
}
}
}
# Runtime manifest updates /etc/platform/platform.conf to add or remove kernel

View File

@@ -33,6 +33,7 @@ class platform::params (
$apparmor = 'disabled',
$sctp_autoload = 'enabled',
$ksoftirqd_priority = undef,
$irq_work_priority = undef,
) {
$ipv4 = 4
$ipv6 = 6