diff options
author | Joe Hershberger <joe.hershberger@ni.com> | 2012-05-23 07:59:22 +0000 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2012-05-23 17:53:06 -0500 |
commit | 46c495d52400965fc54ada7e0b9024192b9234ba (patch) | |
tree | 16ff79ddc1d3fb2b8c2d0798ba3143411f0779ff /include | |
parent | cb1c991120983b2b2690564eb6e9d3bfd1c6ae7e (diff) | |
download | u-boot-46c495d52400965fc54ada7e0b9024192b9234ba.tar.gz |
net: Fix net buffer initialization
A new non-static function net_init() will initialize buffers and
read from the environment. Only update from the env on each entry
to NetLoop().
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/net.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net.h b/include/net.h index 9564051c56..ec413664f7 100644 --- a/include/net.h +++ b/include/net.h @@ -436,6 +436,7 @@ extern IPaddr_t Mcast_addr; #endif /* Initialize the network adapter */ +extern void net_init(void); extern int NetLoop(enum proto_t); /* Shutdown adapters and cleanup */ |