Tools: Disable TCP/UDP offload on macOS and Linux

pull/7064/head^2
Laurent Cozic 2022-11-05 10:16:23 +00:00
parent e43bae5133
commit 81209956c0
1 changed files with 10 additions and 0 deletions

View File

@ -14,6 +14,16 @@ jobs:
if: runner.os == 'Windows' if: runner.os == 'Windows'
run: Disable-NetAdapterChecksumOffload -Name * -TcpIPv4 -UdpIPv4 -TcpIPv6 -UdpIPv6 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 # Silence apt-get update errors (for example when a module doesn't
# exist) since otherwise it will make the whole build fails, even though # exist) since otherwise it will make the whole build fails, even though
# it might work without update. libsecret-1-dev is required for keytar - # it might work without update. libsecret-1-dev is required for keytar -