diff options
| author | Dominique Martinet <[email protected]> | 2025-03-26 08:32:36 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-03-28 11:46:28 +0000 |
| commit | 2ea396448f26d0d7d66224cb56500a6789c7ed07 (patch) | |
| tree | f221ef524ae2a74fc4609edde987caf6f1679c1d /drivers/net/wan/lapbether.c | |
| parent | net/mlx5e: SHAMPO, Make reserved size independent of page size (diff) | |
| download | kernel-2ea396448f26d0d7d66224cb56500a6789c7ed07.tar.gz kernel-2ea396448f26d0d7d66224cb56500a6789c7ed07.zip | |
net: usb: usbnet: restore usb%d name exception for local mac addresses
commit 8a7d12d674ac ("net: usb: usbnet: fix name regression") assumed
that local addresses always came from the kernel, but some devices hand
out local mac addresses so we ended up with point-to-point devices with
a mac set by the driver, renaming to eth%d when they used to be named
usb%d.
Userspace should not rely on device name, but for the sake of stability
restore the local mac address check portion of the naming exception:
point to point devices which either have no mac set by the driver or
have a local mac handed out by the driver will keep the usb%d name.
(some USB LTE modems are known to hand out a stable mac from the locally
administered range; that mac appears to be random (different for
mulitple devices) and can be reset with device-specific commands, so
while such devices would benefit from getting a OUI reserved, we have
to deal with these and might as well preserve the existing behavior
to avoid breaking fragile openwrt configurations and such on upgrade.)
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 8a7d12d674ac ("net: usb: usbnet: fix name regression")
Cc: [email protected]
Tested-by: Ahmed Naseef <[email protected]>
Signed-off-by: Dominique Martinet <[email protected]>
Acked-by: Oliver Neukum <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/wan/lapbether.c')
0 files changed, 0 insertions, 0 deletions
