【问题标题】:how to disable tx-checksum-ipv4 which is fixed如何禁用已修复的 tx-checksum-ipv4
【发布时间】:2017-01-07 06:59:03
【问题描述】:

我想用 ethtool 禁用 tx-checksum-ipv4 这是

的输出
ethtool -k eth0
Features for eth0:
rx-checksumming: off [fixed]
tx-checksumming: on
    tx-checksum-ipv4: on [fixed]
    tx-checksum-ip-generic: off [fixed]
    tx-checksum-ipv6: off [fixed]
    tx-checksum-fcoe-crc: off [fixed]
    tx-checksum-sctp: off [fixed]
scatter-gather: on
    tx-scatter-gather: on [fixed]
    tx-scatter-gather-fraglist: off [fixed]
tcp-segmentation-offload: off
    tx-tcp-segmentation: off [fixed]
    tx-tcp-ecn-segmentation: off [fixed]
    tx-tcp6-segmentation: off [fixed]
udp-fragmentation-offload: off [fixed]
generic-segmentation-offload: on
generic-receive-offload: on
large-receive-offload: off [fixed]
rx-vlan-offload: off [fixed]
tx-vlan-offload: off [fixed]
ntuple-filters: off [fixed]
receive-hashing: off [fixed]
highdma: off [fixed]
rx-vlan-filter: off [fixed]
vlan-challenged: off [fixed]
tx-lockless: off [fixed]
netns-local: off [fixed]
tx-gso-robust: off [fixed]
tx-fcoe-segmentation: off [fixed]
tx-gre-segmentation: off [fixed]

tx-checksum-ipv4 已打开,我想用它禁用它

ethtool -K eth0 tx-checksum-ipv4 off

我明白了

Could not change any device features

我想知道如何禁用这个 tx-checksum-ipv4。

【问题讨论】:

  • 您找到解决方案了吗?

标签: networking


【解决方案1】:

简短回答:您正在使用的网络驱动程序应实现禁用 tx-checksum-ipv4 的选项,否则它将在驱动程序加载时设置为默认状态并标记为“[已修复] '。

更多信息: 首先,每个功能支持由 include/linux/netdev-features.h 下的宏定义,tx-checksum-ipv4 由 NETIF_F_IP_CSUM 定义。每个驱动程序都设置了其默认功能支持,因此如果包含 NETIF_F_IP_CSUM,则默认启用 tx-checksum-ipv4。

据我所知,TX 校验和的大多数子选项(ipv4、ipv6 等)本身并没有公开。如果可能的话,您可以尝试完全禁用 TX 校验和,这应该会禁用所有情况下的卸载。更改状态时,您会看到实际的变化:

ethtool -K ens4f0 tx on
Actual changes:
tx-checksumming: on
        tx-checksum-ip-generic: on
tcp-segmentation-offload: on
        tx-tcp-segmentation: on
        tx-tcp6-segmentation: on

您不仅可以看到支持的内部 TX 校验和更改,还可以看到相关的卸载。

如果没有驱动程序供应商和版本,很难给出准确的答案。请详细说明有关未来问题的信息。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-07-11
    • 1970-01-01
    • 2020-02-02
    • 1970-01-01
    • 1970-01-01
    • 2017-05-18
    相关资源
    最近更新 更多