r8152: Set NET_ADDR_STOLEN if using passthru MAC
authorMilan Broz <gmazyland@gmail.com>
Wed, 5 Jun 2024 15:33:40 +0000 (17:33 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 7 Jun 2024 00:33:12 +0000 (17:33 -0700)
commitcb6cf0820f22ca36dc8f95cf1bd196e5ec24e69d
tree18480b00aa11e65796c60975af6996db21bed1f2
parent62b5bf58b928f0f4fcc8bb633b63795517825d31
r8152: Set NET_ADDR_STOLEN if using passthru MAC

Some docks support MAC pass-through - MAC address
is taken from another device.

Driver should indicate that with NET_ADDR_STOLEN flag.

This should help to avoid collisions if network interface
names are generated with MAC policy.

Reported and discussed here
https://github.com/systemd/systemd/issues/33104

Signed-off-by: Milan Broz <gmazyland@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20240605153340.25694-1-gmazyland@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/usb/r8152.c