我想用ethtool禁用tx-checksum-ipv4 4,这是
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 4是打开的,我想用
ethtool -K eth0 tx-checksum-ipv4 off我得到了
Could not change any device features我想知道如何禁用这个tx-校验和-ipv4 4。
发布于 2021-04-11 19:15:17
简短回答:您使用的网络驱动程序应该实现一个选项来禁用tx-checksum-ipv4 4,否则它将在加载驱动程序时被设置为默认状态,并标记为‘’。
更多信息:首先,每个特性支持是由包含/linux/netdev-.h下的宏定义的,tx ipv4 4是由NETIF_F_IP_CSUM定义的。每个驱动程序都设置了其默认特性支持,因此如果包含NETIF_F_IP_CSUM,则默认情况下将启用tx ipv4 4。
据我所知,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校验和更改,还可以看到相关的卸载。
在没有驱动程序供应商和版本的情况下,给出一个准确的答案有点困难。请说明关于今后问题的更多资料。
https://stackoverflow.com/questions/41518784
复制相似问题