net: Handle ethaddr changes as an env callback

When the ethaddr is changed in the env, update the device pdata at the
same time (only if it is probed for the DM case; only if registered for
the non-DM case). Again this gets us closer to completely non-polled
env needed to simplify the net_loop.

This requires that the NET feature select the REGEX feature.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
Joe Hershberger
2015-05-20 14:27:26 -05:00
committed by Tom Rini
parent 2d1febf7d5
commit 6e0d26c050
3 changed files with 63 additions and 44 deletions

View File

@@ -4,6 +4,7 @@
menuconfig NET
bool "Networking support"
select REGEX
if NET