09 Dec, 2019
1 commit
-
Part of the env cleanup moved this out of the environment code and into
the net code. However, this helper is sometimes needed even when the net
stack isn't included.Move the helper to lib/net_utils.c like it's similarly-purposed
string_to_ip(). Also rename the moved function to similar naming.Signed-off-by: Joe Hershberger
Reported-by: Ondrej Jirman
16 Aug, 2017
3 commits
-
Rename this function for consistency with env_get().
Signed-off-by: Simon Glass
-
Rename this function for consistency with env_set().
Signed-off-by: Simon Glass
-
We are now using an env_ prefix for environment functions. Rename setenv()
for consistency. Also add function comments in common.h.Suggested-by: Wolfgang Denk
Signed-off-by: Simon Glass
20 May, 2015
2 commits
-
We really don't want boards defining fixed MAC addresses in their config
so we just remove the option to set it in a fixed way. If you must have
a MAC address that was not provisioned, then use the random MAC address
functionality.Signed-off-by: Joe Hershberger
Reviewed-by: Simon Glass -
Implement the random ethaddr fallback in eth.c so it is in a common
place and not reimplemented in each board or driver that wants this
behavior.Signed-off-by: Joe Hershberger
Reviewed-by: Simon Glass
19 Apr, 2015
1 commit
-
Use "_ethaddr" at the end of variables and drop CamelCase.
Make constant values actually 'const'.Signed-off-by: Joe Hershberger
Acked-by: Simon Glass
12 Jul, 2012
1 commit
-
If the net driver has setup a valid ethernet address and an ethernet
address is not set in the environment already, then set the environment
variables from the net driver setting.This enables pxe booting on boards which don't set ethaddr env variable.
Signed-off-by: Rob Herring
04 May, 2010
1 commit
-
Add a new function to the eth_device struct for programming a network
controller's hardware address.After all network devices have been initialized and the proper MAC address
for each has been determined, make a device driver call to program the
address into the device. Only device instances with valid unicast addresses
will be programmed.Signed-off-by: Ben Warren
Acked-by: Detlev Zundel
Tested-by: Prafulla Wadaskar
Tested-by: Heiko Schocher
Tested-by: Thomas Chou
31 Mar, 2010
1 commit
-
As this seems unclear, document how the flow of setting up
the MAC address is correct.Signed-off-by: Heiko Schocher
Text changed slightly, adding input from Mike Frysinger.
Signed-off-by: Wolfgang Denk
21 Mar, 2009
1 commit
-
Signed-off-by: Mike Frysinger
CC: Ben Warren