I want to disable tcp-offloading (TOE) on my Debian servers. I would use something like:
ethtool -K …
I have some wishes, though: is it possible to integrate it cleanly into Debian?
This reads: no rc.local
, I would also like to avoid pseudo-rc-scripting.
I would guess, it's installing ethtool
and using the pre-up.d/hook which deconfigures TOE using options from /etc/network/interfaces
.
I would like to deconfigure all my (future) servers in a generic fashion using FAI (since FAI is already in place - and wanted!).
What about toe-options that are not supported on some hardware? Will networking fail if a non-existing-option should be disabled? I guess it should be robust not to do so, but this does not seem to be my wanted solution, either.
It clutters the config very much, since atm there are 11 options! Using multiple NICs this smells error-prone to me.
Isn't there a more generic solution? I have a sysctl in mind, but did not find one yet. My wish was:
echo 0 > /proc/sys/net/core/enable_tcp_offloading
PS: I'm quite surprised to find my "newer hardware" to have TOE enabled by default, because of this.