summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2015-05-20 14:27:26 -0500
committerTom Rini <trini@konsulko.com>2015-05-21 09:16:16 -0400
commit6e0d26c0502e4d697cb235069aef188f8f1407d3 (patch)
treeab7bfaa2dd1f6c964e13f0fdb0481a34cae672e1 /include
parent2d1febf7d5867cb5441c5d5081d042b61cc647eb (diff)
downloadtalos-obmc-uboot-6e0d26c0502e4d697cb235069aef188f8f1407d3.tar.gz
talos-obmc-uboot-6e0d26c0502e4d697cb235069aef188f8f1407d3.zip
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')
-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 91f3cc013c..ab5d42dd81 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
OpenPOWER on IntegriCloud