]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: hsr: emit notification for PRP slave2 changed hw addr on port deletion
authorFernando Fernandez Mancera <fmancera@suse.de>
Fri, 3 Apr 2026 12:39:29 +0000 (14:39 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 7 Apr 2026 15:06:16 +0000 (17:06 +0200)
commit2ce8a41113eda1adddc1e6dc43cf89383ec6dc22
tree13cd55a946fb88b121f37b397d6225a227a25529
parent97a8355b6a715c79c090b906894e12dc3934b3fe
net: hsr: emit notification for PRP slave2 changed hw addr on port deletion

On PRP protocol, when deleting the port the MAC address change
notification was missing. In addition to that, make sure to only perform
the MAC address change on slave2 deletion and PRP protocol as the
operation isn't necessary for HSR nor slave1.

Note that the eth_hw_addr_set() is correct on PRP context as the slaves
are either in promiscuous mode or forward offload enabled.

Reported-by: Luka Gejak <luka.gejak@linux.dev>
Closes: https://lore.kernel.org/netdev/DHFCZEM93FTT.1RWFBIE32K7OT@linux.dev/
Signed-off-by: Fernando Fernandez Mancera <fmancera@suse.de>
Reviewed-by: Felix Maurer <fmaurer@redhat.com>
Link: https://patch.msgid.link/20260403123928.4249-2-fmancera@suse.de
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/hsr/hsr_slave.c