29.3. 使用 nmcli 配置 ethtool coalesce 设置
您可以使用 NetworkManager 来在连接配置文件中设置 ethtool 合并设置。
流程
例如,要在
enp1s0连接配置文件中将接收的数据包的最大数量设置为延迟到128,请输入:nmcli connection modify enp1s0 ethtool.coalesce-rx-frames 128
# nmcli connection modify enp1s0 ethtool.coalesce-rx-frames 128Copy to Clipboard Copied! Toggle word wrap Toggle overflow 要删除 coalesce 设置,请将其设置为 null 值。例如,要删除
ethtool.coalesce-rx-frames设置,请输入:nmcli connection modify enp1s0 ethtool.coalesce-rx-frames ""
# nmcli connection modify enp1s0 ethtool.coalesce-rx-frames ""Copy to Clipboard Copied! Toggle word wrap Toggle overflow 重新激活网络配置集:
nmcli connection up enp1s0
# nmcli connection up enp1s0Copy to Clipboard Copied! Toggle word wrap Toggle overflow
验证
使用
ethtool -c命令显示网络设备的当前卸载特性:ethtool -c network_device
# ethtool -c network_deviceCopy to Clipboard Copied! Toggle word wrap Toggle overflow