diff options
| author | Quentin Freimanis <quentin@q-lab.dev> | 2026-09-27 21:50:12 -0700 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-09-30 16:10:41 -0700 |
| commit | 5642b1648d5c4561d8ed7a410d0a7017f706604d (patch) | |
| tree | f118e1cca07f80454ffae93115b2a5d71cfbe550 /tools/lib/python/kdoc/python_version.py | |
| parent | be35a3e003941fc25b4e72d8d4fd44f8a98ac1af (diff) | |
| download | linux-next-5642b1648d5c4561d8ed7a410d0a7017f706604d.tar.gz linux-next-5642b1648d5c4561d8ed7a410d0a7017f706604d.zip | |
net: sparx5: make ports inherit the switch base mac address type
When the switch uses a random base MAC address it does not mark each
port's address as random:
$ dmesg | grep "MAC addr"
sparx5-switch e00c0000.switch: MAC addr was not set, use random MAC
$ cat /sys/class/net/eth0/addr_assign_type
0
0 is NET_ADDR_PERM, so userspace thinks this is a stable address.
With a random MAC reported as NET_ADDR_PERM, systemd's
MACAddressPolicy=persistent [1] leaves it unchanged, so a DHCP client
gets a new IP address every boot and a static reservation can't be used.
Reporting it as NET_ADDR_RANDOM makes systemd replace it with a stable
address derived from the interface name and machine-id.
Fixes: f3cad2611a77 ("net: sparx5: add hostmode with phylink support")
Signed-off-by: Quentin Freimanis <quentin@q-lab.dev>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Daniel Machon <daniel.machon@microchip.com>
Link: https://patch.msgid.link/20260928045012.30178-1-quentin@q-lab.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
