From 6e0d26c0502e4d697cb235069aef188f8f1407d3 Mon Sep 17 00:00:00 2001 From: Joe Hershberger Date: Wed, 20 May 2015 14:27:26 -0500 Subject: 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 --- include/env_callback.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') 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 -- cgit v1.2.1