XPS15 9570 + Thunderbolt 3 以太网不断掉线

XPS15 9570 + Thunderbolt 3 以太网不断掉线

我有一台运行 Ubtuntu 20.10 的 XPS 9570 和一个 Elgato Thunderbolt 3 迷你扩展坞。所有端口都在工作,但以太网真的很不稳定。它工作了大约 2 秒钟,然后掉线一秒钟,然后又恢复了。我已经将雷电 3 模式设置为无安全性,这修复了 USB 输出。我已禁用 TLP 并将笔记本电脑插入交流电。这也没有解决问题。启动 Windows 时,稳定性没有问题。

在 dmesg 的输出中,您可以清楚地看到插入电缆时连接的开启和关闭。

[ 1008.264943] tg3 0000:07:00.0 ens1: Link is down
[ 1011.307241] tg3 0000:07:00.0 ens1: Link is up at 1000 Mbps, full duplex
[ 1011.307246] tg3 0000:07:00.0 ens1: Flow control is on for TX and on for RX
[ 1011.307249] tg3 0000:07:00.0 ens1: EEE is enabled
[ 1013.625053] tg3 0000:07:00.0 ens1: Link is down
[ 1016.636342] tg3 0000:07:00.0 ens1: Link is up at 1000 Mbps, full duplex
[ 1016.636347] tg3 0000:07:00.0 ens1: Flow control is on for TX and on for RX
[ 1016.636350] tg3 0000:07:00.0 ens1: EEE is enabled
[ 1019.877241] tg3 0000:07:00.0 ens1: Link is down
[ 1022.843123] tg3 0000:07:00.0 ens1: Link is up at 1000 Mbps, full duplex
[ 1022.843128] tg3 0000:07:00.0 ens1: Flow control is on for TX and on for RX
[ 1022.843130] tg3 0000:07:00.0 ens1: EEE is enabled
[ 1052.584320] tg3 0000:07:00.0 ens1: Link is down
[ 1055.499589] tg3 0000:07:00.0 ens1: Link is up at 1000 Mbps, full duplex
[ 1055.499617] tg3 0000:07:00.0 ens1: Flow control is on for TX and on for RX
[ 1055.499635] tg3 0000:07:00.0 ens1: EEE is enabled
[ 1058.704318] tg3 0000:07:00.0 ens1: Link is down
[ 1061.641735] tg3 0000:07:00.0 ens1: Link is up at 1000 Mbps, full duplex
[ 1061.641764] tg3 0000:07:00.0 ens1: Flow control is on for TX and on for RX
[ 1061.641769] tg3 0000:07:00.0 ens1: EEE is enabled
[ 1064.767652] tg3 0000:07:00.0 ens1: Link is down
[ 1067.759536] tg3 0000:07:00.0 ens1: Link is up at 1000 Mbps, full duplex
[ 1067.759565] tg3 0000:07:00.0 ens1: Flow control is on for TX and on for RX
[ 1067.759570] tg3 0000:07:00.0 ens1: EEE is enabled
[ 1071.026376] tg3 0000:07:00.0 ens1: Link is down
[ 1073.972821] tg3 0000:07:00.0 ens1: Link is up at 1000 Mbps, full duplex
[ 1073.972849] tg3 0000:07:00.0 ens1: Flow control is on for TX and on for RX
[ 1073.972854] tg3 0000:07:00.0 ens1: EEE is enabled
[ 1077.708775] tg3 0000:07:00.0 ens1: Link is down
[ 1080.741436] tg3 0000:07:00.0 ens1: Link is up at 1000 Mbps, full duplex
[ 1080.741462] tg3 0000:07:00.0 ens1: Flow control is on for TX and on for RX
[ 1080.741467] tg3 0000:07:00.0 ens1: EEE is enabled
[ 1086.415177] tg3 0000:07:00.0 ens1: Link is down
[ 1089.617665] tg3 0000:07:00.0 ens1: Link is up at 1000 Mbps, full duplex
[ 1089.617666] tg3 0000:07:00.0 ens1: Flow control is on for TX and on for RX
[ 1089.617667] tg3 0000:07:00.0 ens1: EEE is enabled
[ 1099.637822] tg3 0000:07:00.0 ens1: Link is down

知道是什么原因导致了这种现象吗?

答案1

如果您不希望由于睡眠和唤醒转换所需的额外时间造成的延迟或远端不支持而影响网络性能,请禁用 EEE。

答案2

正如@David 指出的那样,是节能以太网 (EEE) 导致了掉线。使用后ethtool --set-eee ens1 eee off发现这里连接不再断开。

您应该添加igb.EEE=0到内核命令行以在启动期间禁用 EEE,否则您必须每次重新启动时使用该命令。

相关内容