]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
net: sync env ethaddr to device enetaddr in eth_init()
authorMike Frysinger <vapier@gentoo.org>
Thu, 16 Jul 2009 01:31:28 +0000 (21:31 -0400)
committerBen Warren <biggerbadderben@gmail.com>
Sat, 8 Aug 2009 00:39:23 +0000 (17:39 -0700)
commit86848a74c3c8eb2f8dd179d039ee604dc45288cf
treef380764541e302d8a2810c817768058cdba4cdb0
parent0ebf04c607b54a352629dcf7e76b76f1785dae54
net: sync env ethaddr to device enetaddr in eth_init()

In the previous enetaddr refactoring, the assumption with commit 56b555a644
was that the eth layer would handle the env -> device enetaddr syncing.
This was not the case as eth_initialize() is called only once and the sync
occurs there.  So make sure the eth_init() function does the env -> device
sync with every network init.

Reported-by: Andrzej Wolski <awolski@poczta.fm>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
include/net.h
net/eth.c