Jump to content

Linux: Difference between revisions

524 bytes added ,  26 February 2022
Line 794: Line 794:
sudo ethtool -K eno1 tso off
sudo ethtool -K eno1 tso off
</pre>
</pre>
You can create a script <code>/etc/network/if-up.d/disable-tso</code>:
 
<pre>
To make this persist across reboots:
{{hidden | Script |
If you're using netplan (default for Ubuntu):<br>
[https://michael.mulqueen.me.uk/2018/08/disable-offloading-netplan-ubuntu/ Reference]<br>
<syntaxhighlight lang="bash">
output_path=/usr/lib/networkd-dispatcher/routable.d/10-disable-offloading
sudo tee $output_path <<EOF> /dev/null
#!/bin/bash
#!/bin/bash
/sbin/ethtool -K eno1 tso off
ethtool -K eno1 tso off
</pre>
EOF
sudo chmod +x $output_path
</syntaxhighlight>
 
If using ifupdown:
<syntaxhighlight lang="bash">
output_path=/etc/network/if-up.d/disable-tso
sudo tee $output_path <<EOF> /dev/null
#!/bin/bash
ethtool -K eno1 tso off
EOF
sudo chmod +x $output_path
</syntaxhighlight>
}}