第 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

  1. Display the interface’s available offload features and their current state:

    # ethtool -k enp1s0
    ...
    esp-hw-offload: on
    ntuple-filters: off
    rx-vlan-filter: off [fixed]
    ...

    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].

  2. Temporarily disable an offload feature:

    # ethtool -K <interface> <feature> <on|off>
    • For example, to temporarily disable IPsec Encapsulating Security Payload (ESP) offload on the enp10s0u1 interface, enter:

      # ethtool -K enp10s0u1 esp-hw-offload off
    • For example, to temporarily enable accelerated Receive Flow Steering (aRFS) filtering on the enp10s0u1 interface, enter:

      # ethtool -K enp10s0u1 ntuple-filters on

Verification

  1. Display the states of the offload features:

    # ethtool -k enp1s0
    ...
    esp-hw-offload: off
    ntuple-filters: on
    ...
  2. 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:

      1. Contact Red Hat Support and report the problem.
      2. Consider permanently setting the offload feature until a fix is available.
    • If the problem still exists after disabling a specific offload feature:

      1. Reset the setting to its previous state by using the ethtool -K <interface> <feature> <on|off> command.
      2. Enable or disable a different offload feature to narrow down the problem.
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部