diff options
| author | Michal Simek <[email protected]> | 2022-01-11 10:28:09 +0100 |
|---|---|---|
| committer | Michal Simek <[email protected]> | 2022-01-11 10:33:42 +0100 |
| commit | 381e6e5494d422a2adcede3da9f967c22c6ad123 (patch) | |
| tree | e0d87fbb2b6f8bb53f67198e5834116b1d2b1b41 /net/Kconfig | |
| parent | 2a9caba1ceff85c7c07dcb43d48b4c8cf8c79f5e (diff) | |
net: uclass: Save generated ethernet MAC addresses to the environment
When a MAC address is randomly generated we currently only update the
appropriate data structure. For consistency and to re-align with
historic usage, it should be also saved to the appropriate environment
variable as well.
Cc: Wolfgang Denk <[email protected]>
Signed-off-by: Michal Simek <[email protected]>
Reviewed-by: Ramon Fried <[email protected]>
[trini: Update Kconfig, handle legacy networking case as well]
Signed-off-by: Tom Rini <[email protected]>
Acked-by: Ramon Fried <[email protected]>
Link: https://lore.kernel.org/r/1a2518e3cc19c14a41875ef64c5acc1f16edc813.1641893287.git.michal.simek@xilinx.com
Diffstat (limited to 'net/Kconfig')
| -rw-r--r-- | net/Kconfig | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/net/Kconfig b/net/Kconfig index 7a2d1450188..cabe93c6bd2 100644 --- a/net/Kconfig +++ b/net/Kconfig @@ -27,10 +27,11 @@ config BOOTP_SEND_HOSTNAME config NET_RANDOM_ETHADDR bool "Random ethaddr if unset" help - Selecting this will allow the Ethernet interface to function - even when the ethaddr variable for that interface is unset. - A new MAC address will be generated on every boot and it will - not be added to the environment. + Selecting this will allow the Ethernet interface to function even + when the ethaddr variable for that interface is unset. In this case, + a random MAC address in the locally administered address space is + generated. It will be saved to the appropriate environment variable, + too. config NETCONSOLE bool "NetConsole support" |
