Kern.info kernel: eth0: tx timeout

This error occurs when you restart the tl-wa901nd device and you do not have an internet connection, the way to solve the error manually is by disconnecting the ethernet cable and waiting for a few seconds and reconnecting it once restarted.
In the rc.local file place:

eth0 connection

/etc/init.d/network stop
logger -t kludge "eth0 stop sama"
sleep 10
/etc/init.d/network start
logger -t kludge "eth0 start sama"

waiting to be solved, but still fails, do any of you know how to solve it?