]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
net: Make netretry actually do something
authorJoe Hershberger <joe.hershberger@ni.com>
Sun, 22 Mar 2015 22:09:07 +0000 (17:09 -0500)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 19:47:30 +0000 (21:47 +0200)
commit4b31268b4da82e10d5a2ecd8930816fe3f0f599f
tree914a5d617c7a0b99aaf3ce540868b3869a8b14c9
parent5cce2f820ce174e50106142a8d0997e3fa76f1dc
net: Make netretry actually do something

netretry previously would only retry in one specific case (your MAC
address is not set) and no other. This is basically useless. In the DM
implementation for eth it turns this into a completely useless case
since an un-configured MAC address results in not even entering the
NetLoop. The behavior is now changed to retry any failed command
(rotating through the eth adapters if ethrotate != no).

It also defaulted to retry forever. It is now changed to default to not
retry

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
net/net.c