Add helper for enabling or disabling tx offloading

https://bugzilla.novell.com/show_bug.cgi?id=888518
(cherry picked from commit 8bcf772aa965a106fa220bdcb95b4db4ad9ed313)