Add helper for enabling or disabling tx offloading

and this would become

      run_ethtool('-K', nic, 'tx', on ? 'on' : 'off')

which is not only more secure but also somewhat easier to read.