diff options
| author | Simon Rettberg | 2025-04-14 17:09:33 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2025-04-14 17:09:33 +0200 |
| commit | 4f264ca3baff25b8afaa3c31dbbdbd03db156351 (patch) | |
| tree | 6871458ea2d4274f39e8b01947c6c12a43a708c7 /modules.d/slx-network | |
| parent | [slx-clock] Try harder to make sure date understands hwclock output (diff) | |
| download | systemd-init-4f264ca3baff25b8afaa3c31dbbdbd03db156351.tar.gz systemd-init-4f264ca3baff25b8afaa3c31dbbdbd03db156351.tar.xz systemd-init-4f264ca3baff25b8afaa3c31dbbdbd03db156351.zip | |
[slx-network] Disable pause frames early
Diffstat (limited to 'modules.d/slx-network')
| -rwxr-xr-x | modules.d/slx-network/hooks/s3-setup-bootif-network.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules.d/slx-network/hooks/s3-setup-bootif-network.sh b/modules.d/slx-network/hooks/s3-setup-bootif-network.sh index 3daa8a2c..1f01f11b 100755 --- a/modules.d/slx-network/hooks/s3-setup-bootif-network.sh +++ b/modules.d/slx-network/hooks/s3-setup-bootif-network.sh @@ -86,6 +86,12 @@ wait_for_iface() { { set -x +# Disable pause frames early as it brings the link down again on some realtek chips +if command -v ethtool &> /dev/null; then + echo "Disabling pause frames on $SLX_PXE_NETIF" + ethtool -A "$SLX_PXE_NETIF" autoneg off rx off tx off +fi +# Bring up if ! wait_for_iface "$SLX_PXE_NETIF" 30; then echo "$SLX_PXE_NETIF: Still not up after 30sec ... trying anyway." # TODO handle case where we waited for 30sec and it is still not up |
