network/salt/bond-slaves
Astro 195c5a07d7 server1-network: disable hw offloading
causes warnings in hfsc and interferes with packet timing.
2017-01-18 01:12:27 +01:00

11 lines
233 B
Bash

#!/bin/sh
F=/sys/class/net/$IFACE/bonding/slaves
[ -f "$F" ] || exit 0
for slave in `cat "$F"`; do
ip link set $slave up
# Disable offloading as it interferes with shaping
ethtool -K gso off gro off tso off $slave
done