Questo contenuto non è disponibile nella lingua selezionata.

Chapter 10. Tuning the device driver and NIC


In RHEL, kernel modules provide drivers for network interface controllers (NICs). These modules support parameters to tune and optimize the device driver and the NIC.

For example, if the driver supports delaying the generation of receive interrupts, you can reduce the value of the corresponding parameter to avoid running out of receive descriptors.

Note

Not all modules support custom parameters, and the features depend on the hardware, as well as the driver and firmware version.

10.1. Configuring custom NIC driver parameters

Many kernel modules support setting parameters to tune the driver and the network interface controller (NIC). You can customize the settings according to the hardware and the driver.

Important

If you set parameters on a kernel module, RHEL applies these settings to all devices that use this driver.

Prerequisites

  • A NIC is installed in the host.
  • The kernel module that provides the driver for the NIC supports the required tuning feature.
  • You are logged in locally or by using a network interface that is different from the one that uses the driver for which you want to change the parameters.

Procedure

  1. Identify the driver:

    # ethtool -i enp0s31f6
    driver: e1000e
    version: ...
    firmware-version: ...
    ...

    Note that certain features can require a specific driver and firmware version.

  2. Display the available parameters of the kernel module:

    # modinfo -p e1000e
    ...
    SmartPowerDownEnable:Enable PHY smart power down (array of int)
    parm:RxIntDelay:Receive Interrupt Delay (array of int)

    For further details on the parameters, see the kernel module’s documentation. For modules in RHEL, see the documentation in the /usr/share/doc/kernel-doc-<version>/Documentation/networking/device_drivers/ directory that is provided by the kernel-doc package.

  3. Create the /etc/modprobe.d/nic-parameters.conf file and specify the parameters for the module:

    options <module_name> <parameter1>=<value> <parameter2>=<value>

    For example, to enable the port power saving mechanism and set the generation of receive interrupts to 4 units, enter:

    options e1000e SmartPowerDownEnable=1 RxIntDelay=4
  4. Unload the module:

    # modprobe -r e1000e
    Warning

    Unloading a module that an active network interface uses immediately terminates the connection and you can lock yourself out of the server.

  5. Load the module:

    # modprobe e1000e
  6. Reactivate the network connections:

    # nmcli connection up <profile_name>

Verification

  1. Display the kernel messages:

    # dmesg
    ...
    [35309.225765] e1000e 0000:00:1f.6: Transmit Interrupt Delay set to 16
    [35309.225769] e1000e 0000:00:1f.6: PHY Smart Power Down Enabled
    ...

    Note that not all modules log parameter settings to the kernel ring buffer.

  2. Certain kernel modules create files for each module parameter in the /sys/module/<driver>/parameters/ directory. Each of these files contain the current value of this parameter. You can display these files to verify a setting:

    # cat /sys/module/<driver_name>/parameters/<parameter_name>
Red Hat logoGithubredditYoutubeTwitter

Formazione

Prova, acquista e vendi

Community

Informazioni sulla documentazione di Red Hat

Aiutiamo gli utenti Red Hat a innovarsi e raggiungere i propri obiettivi con i nostri prodotti e servizi grazie a contenuti di cui possono fidarsi. Esplora i nostri ultimi aggiornamenti.

Rendiamo l’open source più inclusivo

Red Hat si impegna a sostituire il linguaggio problematico nel codice, nella documentazione e nelle proprietà web. Per maggiori dettagli, visita il Blog di Red Hat.

Informazioni su Red Hat

Forniamo soluzioni consolidate che rendono più semplice per le aziende lavorare su piattaforme e ambienti diversi, dal datacenter centrale all'edge della rete.

Theme

© 2026 Red Hat
Torna in cima