summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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