Puppet Class: interface::rps::modparams

Defined in:
modules/interface/manifests/rps/modparams.pp

Overview



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'modules/interface/manifests/rps/modparams.pp', line 1

class interface::rps::modparams {
    include initramfs

    # This hack is specific to bnx2x and tries to configure the queue count as
    # a module parameter, head of the general support for doing so at runtime
    # via ethtool.  It may be possible we don't even need this anymore, but I'm
    # not really sure!

    # note this assumes if bnx2x queue counts matter at all, that the
    # primary interface is bnx2x.  This is true for current cases, but may
    # need to evolve later for hosts with multiple interfaces with distinct
    # drivers, or the bonding case?
    # There's no avoiding the fact that this setting is global to the
    # driver, and therefore can't handle differing IRQ counts for different
    # bnx2x interfaces.  Again, not presently an issue...
    $num_queues = size($facts['numa']['device_to_htset'][$facts['interface_primary']])

    file { '/etc/modprobe.d/rps.conf':
        content => template("${module_name}/rps.conf.erb"),
        notify  => Exec['update-initramfs']
    }
}