Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Milan Broz and committed by
Jakub Kicinski
cb6cf082 62b5bf58

+1
+1
drivers/net/usb/r8152.c
··· 1774 1774 goto amacout; 1775 1775 } 1776 1776 memcpy(sa->sa_data, buf, 6); 1777 + tp->netdev->addr_assign_type = NET_ADDR_STOLEN; 1777 1778 netif_info(tp, probe, tp->netdev, 1778 1779 "Using pass-thru MAC addr %pM\n", sa->sa_data); 1779 1780