From 81209956c0fe3eff77110648bf8f0fc92f56a947 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Sat, 5 Nov 2022 10:16:23 +0000 Subject: [PATCH] Tools: Disable TCP/UDP offload on macOS and Linux --- .github/workflows/github-actions-main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/github-actions-main.yml b/.github/workflows/github-actions-main.yml index d6386dec5..614362fa0 100644 --- a/.github/workflows/github-actions-main.yml +++ b/.github/workflows/github-actions-main.yml @@ -14,6 +14,16 @@ jobs: if: runner.os == 'Windows' run: Disable-NetAdapterChecksumOffload -Name * -TcpIPv4 -UdpIPv4 -TcpIPv6 -UdpIPv6 + - name: Disable TCP/UDP offload on Linux + if: runner.os == 'Linux' + run: sudo ethtool -K eth0 tx off rx off + + - name: Disable TCP/UDP offload on macOS + if: runner.os == 'macOS' + run: | + sudo sysctl -w net.link.generic.system.hwcksum_tx=0 + sudo sysctl -w net.link.generic.system.hwcksum_rx=0 + # Silence apt-get update errors (for example when a module doesn't # exist) since otherwise it will make the whole build fails, even though # it might work without update. libsecret-1-dev is required for keytar -