如何验证 TCP 分段卸载的状态

Kin*_*vid 1 networking redhat dmesg ethtool linux-networking

我们在 Linux rhel 机器上执行以下操作

ethtool -K ifcfg-478476 tso off
Run Code Online (Sandbox Code Playgroud)

现在假设我们要验证设置

如何使用 ethtool 或其他 cli 进行检查?

我们尝试

ethtool -k ifcfg-478476 | grep -i tso
Run Code Online (Sandbox Code Playgroud)

但我们没有得到状态

任何想法 ?

注意 -ifcfg-478476是 eth 链接

Lac*_*cek 6

在 的输出中ethtool -k,它被称为tcp-segmentation-offload, not tso。输出是这样的:

tcp-segmentation-offload: on
    tx-tcp-segmentation: on
    tx-tcp-ecn-segmentation: on
    tx-tcp6-segmentation: on
Run Code Online (Sandbox Code Playgroud)