summaryrefslogtreecommitdiffstats
path: root/modules.d/slx-network
diff options
context:
space:
mode:
authorSimon Rettberg2025-04-14 17:09:33 +0200
committerSimon Rettberg2025-04-14 17:09:33 +0200
commit4f264ca3baff25b8afaa3c31dbbdbd03db156351 (patch)
tree6871458ea2d4274f39e8b01947c6c12a43a708c7 /modules.d/slx-network
parent[slx-clock] Try harder to make sure date understands hwclock output (diff)
downloadsystemd-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-xmodules.d/slx-network/hooks/s3-setup-bootif-network.sh6
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