-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed name of script that disable network offload on network cards …
…to a generic name, as now it may be used to act on several network interfaces. Signed-off-by: KheOps <kheops@ceops.eu>
- Loading branch information
1 parent
2660f6a
commit 9369bfb
Showing
4 changed files
with
16 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
@reboot root /opt/disable-network-offload-{{ monitored_interface }}.sh | ||
@reboot root /opt/disable-network-offload.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
#!/bin/bash | ||
|
||
/sbin/ethtool -K {{ monitored_interface }} tso off | ||
/sbin/ethtool -K {{ monitored_interface }} gro off | ||
/sbin/ethtool -K {{ monitored_interface }} lro off | ||
/sbin/ethtool -K {{ monitored_interface }} gso off | ||
/sbin/ethtool -K {{ monitored_interface }} rx off | ||
/sbin/ethtool -K {{ monitored_interface }} tx off | ||
/sbin/ethtool -K {{ monitored_interface }} sg off | ||
/sbin/ethtool -K {{ monitored_interface }} rxvlan off | ||
/sbin/ethtool -K {{ monitored_interface }} txvlan off | ||
{% for ifcap in monitored_interfaces %} | ||
/sbin/ethtool -K {{ ifcap }} tso off | ||
/sbin/ethtool -K {{ ifcap }} gro off | ||
/sbin/ethtool -K {{ ifcap }} lro off | ||
/sbin/ethtool -K {{ ifcap }} gso off | ||
/sbin/ethtool -K {{ ifcap }} rx off | ||
/sbin/ethtool -K {{ ifcap }} tx off | ||
/sbin/ethtool -K {{ ifcap }} sg off | ||
/sbin/ethtool -K {{ ifcap }} rxvlan off | ||
/sbin/ethtool -K {{ ifcap }} txvlan off | ||
|
||
{% endfor %} |