ethtool命令输出中"[fixed]"字符串的含义是什么?

lei*_*vli 12 networking nic

我运行ethtool使用"ethtool -k"命令查询NIC的卸载功能,输出如下:

ethtool -k eth0

scatter-gather: on
tx-scatter-gather: on
tx-scatter-gather-fraglist: off **[fixed]**
Run Code Online (Sandbox Code Playgroud)

我想知道"[固定]"的含义是什么.

use*_*915 17

那些是无法改变的参数,它们是"固定的".

这是一个例子.我们来看看ethtool的输出:

large-receive-offload: off [fixed]
rx-vlan-offload: on
tx-vlan-offload: on
Run Code Online (Sandbox Code Playgroud)

如果我想更改rx-vlan-offload,我会这样做:

$ sudo ethtool -K eth0 rxvlan off
Actual changes:
tcp-segmentation-offload: on
    tx-tcp-segmentation: on
    tx-tcp6-segmentation: on
rx-vlan-offload: off
Run Code Online (Sandbox Code Playgroud)

结果将是:

$ sudo ethtool -k eth0 | grep rx-vlan
rx-vlan-offload: **off**
rx-vlan-filter: off [fixed]
rx-vlan-stag-hw-parse: off [fixed]
rx-vlan-stag-filter: off [fixed]
Run Code Online (Sandbox Code Playgroud)

现在,让我们尝试修改"固定"参数,例如"large-receive-offload":

$ sudo ethtool -K eth0 lro on
Cannot change large-receive-offload
Could not change any device features
Run Code Online (Sandbox Code Playgroud)

希望这可以帮助.

  • “已修复”,因为它无法更改,驱动程序中没有选项可以切换这些设备参数。 (2认同)