diff options
author | Joe Hershberger <joe.hershberger@ni.com> | 2015-05-04 14:55:13 -0500 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2015-05-19 13:33:21 -0500 |
commit | bef1014b31c5b33052bcaa865ba3618d73e906f0 (patch) | |
tree | b56bfdcf1466f142f2aeb4ed87cb6e6a87d73f24 /doc/README.enetaddr | |
parent | abbfcbe58eefc1accda5dd120fcfe58d244b63dd (diff) |
net: Implement random ethaddr fallback in eth.c
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 <joe.hershberger@ni.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'doc/README.enetaddr')
-rw-r--r-- | doc/README.enetaddr | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/README.enetaddr b/doc/README.enetaddr index 0fafd2cdcd..82c9cd5fe5 100644 --- a/doc/README.enetaddr +++ b/doc/README.enetaddr @@ -37,6 +37,8 @@ Correct flow of setting up the MAC address (summarized): environment variable will be used unchanged. If the environment variable is not set, it will be initialized from eth_device->enetaddr, and a warning will be printed. + If both are invalid and CONFIG_NET_RANDOM_ETHADDR is defined, a random, + locally-assigned MAC is written to eth_device->enetaddr. 4. Program the address into hardware if the following conditions are met: a) The relevant driver has a 'write_addr' function b) The user hasn't set an 'ethmacskip' environment variable |