summaryrefslogtreecommitdiff
path: root/include/env_callback.h
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2015-05-20 19:27:26 (GMT)
committerTom Rini <trini@konsulko.com>2015-05-21 13:16:16 (GMT)
commit6e0d26c0502e4d697cb235069aef188f8f1407d3 (patch)
treeab7bfaa2dd1f6c964e13f0fdb0481a34cae672e1 /include/env_callback.h
parent2d1febf7d5867cb5441c5d5081d042b61cc647eb (diff)
downloadu-boot-fsl-qoriq-6e0d26c0502e4d697cb235069aef188f8f1407d3.tar.xz
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>
Diffstat (limited to 'include/env_callback.h')
-rw-r--r--include/env_callback.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/env_callback.h b/include/env_callback.h
index 91f3cc0..ab5d42d 100644
--- a/include/env_callback.h
+++ b/include/env_callback.h
@@ -52,7 +52,8 @@
"serverip:serverip," \
"nvlan:nvlan," \
"vlan:vlan," \
- DNS_CALLBACK
+ DNS_CALLBACK \
+ "eth\\d?addr:ethaddr,"
#else
#define NET_CALLBACKS
#endif