From 4f264ca3baff25b8afaa3c31dbbdbd03db156351 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 14 Apr 2025 17:09:33 +0200 Subject: [slx-network] Disable pause frames early --- modules.d/slx-network/hooks/s3-setup-bootif-network.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules.d') 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 -- cgit v1.2.3-55-g7522