Networking 如何禁用已修复的tx-checksum-ipv4

Networking 如何禁用已修复的tx-checksum-ipv4,networking,Networking,我想用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: o

我想用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。

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

更多信息:首先,每个功能支持由include/linux/netdev features下的宏定义。h和tx-checksum-ipv4由NETIF\u IP\u 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校验和更改,而且还可以看到相关的卸载


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

您找到解决方案了吗?