Linux 使用 ethtool 禁用 LRO?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6133781/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Disabling LRO using ethtool?
提问by smam
My NIC driver does not support H/W LRO but emulates LRO in the driver. Now GRO (which is a linux network stack feature) can be disabled using 'ethtool -k ethx gro off'. Is that available for LRO as well? i know most distros have either LRO or GRO. So if LRO is disabled using ethtool does it imply turning off the H/W LRO feature or the LRO emulation feature that i do in my driver?
我的 NIC 驱动程序不支持 H/W LRO,但在驱动程序中模拟 LRO。现在可以使用“ethtool -k ethx gro off”禁用 GRO(这是一个 Linux 网络堆栈功能)。这也适用于 LRO 吗?我知道大多数发行版都有 LRO 或 GRO。因此,如果使用 ethtool 禁用 LRO 是否意味着关闭我在驱动程序中执行的 H/W LRO 功能或 LRO 仿真功能?
回答by Nemo
Yes, if your ethtool is new enough.
是的,如果您的 ethtool 足够新。
On my Ubuntu box (Natty Narwhal), "man ethtool" and "ethtool --help" show that LRO is controlled just like GRO; i.e.
在我的 Ubuntu 机器 (Natty Narwhal) 上,“man ethtool”和“ethtool --help”显示 LRO 的控制方式与 GRO 一样;IE
ethtool -K ethX lro off
Run "ethtool --help | grep lro" to see if yours supports it.
运行“ethtool --help | grep lro”看看你的是否支持它。
回答by Seth Robertson
ethtool -k ethx lro off
It should prevent the system from performing lro. However, many of the drivers which still use LRO are broken and do not honor ethtool.
它应该阻止系统执行 lro。但是,许多仍在使用 LRO 的驱动程序已损坏并且不支持 ethtool。