Chapter 11. Configuring network adapter offload settings
To reduce CPU load, certain network adapters use offloading features which move the network processing load to the network interface controller (NIC). For example, with Encapsulating Security Payload (ESP) offload, the NIC performs ESP operations to accelerate IPsec connections and reduce CPU load.
By default, most offloading features in Red Hat Enterprise Linux are enabled. Only disable them in the following cases:
- Temporarily disable offload features for troubleshooting purposes.
- Permanently disable offload features when a specific feature negatively impacts your host.
If a performance-related offload feature is not enabled by default in a network driver, you can enable it manually.
11.1. Temporarily setting an offload feature
If you expect that an offload feature causes problems or reduces the performance of your host, you can attempt to narrow down the cause by temporarily enabling or disabling it, depending on its current state.
If you temporarily enable or disable an offload feature, it returns to its previous value on the next reboot.
Prerequisites
- The network card supports offload features.
Procedure
Display the interface’s available offload features and their current state:
ethtool -k enp1s0
# ethtool -k enp1s0 ... esp-hw-offload: on ntuple-filters: off rx-vlan-filter: off [fixed] ...
Copy to Clipboard Copied! The output depends on the capabilities of the hardware and its driver. Note that you cannot change the state of features that are flagged with
[fixed]
.Temporarily disable an offload feature:
ethtool -K <interface> <feature> <on|off>
# ethtool -K <interface> <feature> <on|off>
Copy to Clipboard Copied! For example, to temporarily disable IPsec Encapsulating Security Payload (ESP) offload on the
enp10s0u1
interface, enter:ethtool -K enp10s0u1 esp-hw-offload off
# ethtool -K enp10s0u1 esp-hw-offload off
Copy to Clipboard Copied! For example, to temporarily enable accelerated Receive Flow Steering (aRFS) filtering on the
enp10s0u1
interface, enter:ethtool -K enp10s0u1 ntuple-filters on
# ethtool -K enp10s0u1 ntuple-filters on
Copy to Clipboard Copied!
Verification
Display the states of the offload features:
ethtool -k enp1s0
# ethtool -k enp1s0 ... esp-hw-offload: off ntuple-filters: on ...
Copy to Clipboard Copied! Test whether the problem you encountered before changing the offload feature still exists.
If the problem no longer exists after changing a specific offload feature:
- Contact Red Hat Support and report the problem.
- Consider permanently setting the offload feature until a fix is available.
If the problem still exists after disabling a specific offload feature:
-
Reset the setting to its previous state by using the
ethtool -K <interface> <feature> <on|off>
command. - Enable or disable a different offload feature to narrow down the problem.
-
Reset the setting to its previous state by using the
11.2. Permanently setting an offload feature
If you have identified a specific offload feature that limits the performance on your host, you can permanently enable or disable it, depending on its current state.
If you permanently enable or disable an offload feature, NetworkManager ensures that the feature still has this state after a reboot.
Prerequisites
- You identified a specific offload feature to limit the performance on your host.
Procedure
Identify the connection profile that uses the network interface on which you want to change the state of the offload feature:
nmcli connection show
# nmcli connection show NAME UUID TYPE DEVICE Example a5eb6490-cc20-3668-81f8-0314a27f3f75 ethernet enp1ss0 ...
Copy to Clipboard Copied! Permanently change the state of the offload feature:
nmcli connection modify <connection_name> <feature> <on|off>
# nmcli connection modify <connection_name> <feature> <on|off>
Copy to Clipboard Copied! For example, to permanently disable IPsec Encapsulating Security Payload (ESP) offload in the
Example
connection profile, enter:nmcli connection modify Example ethtool.feature-esp-hw-offload off
# nmcli connection modify Example ethtool.feature-esp-hw-offload off
Copy to Clipboard Copied! For example, to permanently enable accelerated Receive Flow Steering (aRFS) filtering in the
Example
connection profile, enter:nmcli connection modify Example ethtool.feature-ntuple on
# nmcli connection modify Example ethtool.feature-ntuple on
Copy to Clipboard Copied!
Reactivate the connection profile:
nmcli connection up Example
# nmcli connection up Example
Copy to Clipboard Copied!
Verification
Display the output states of the offload features:
ethtool -k enp1s0
# ethtool -k enp1s0 ... esp-hw-offload: off ntuple-filters: on ...
Copy to Clipboard Copied!