]> git.itanic.dy.fi Git - linux-stable/commit
net: dsa: notify drivers of MAC address changes on user ports
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 22 Sep 2023 13:31:05 +0000 (15:31 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 3 Oct 2023 11:51:02 +0000 (13:51 +0200)
commit6715042cd112e1db971583e2eed89b90d6f9b139
treec3efbceff7412366eb5ebb17c9cbaaf782ffda30
parentfefe5dc4afeafe896c90d5b20b605f2759343c3b
net: dsa: notify drivers of MAC address changes on user ports

In some cases, drivers may need to veto the changing of a MAC address on
a user port. Such is the case with KSZ9477 when it offloads a HSR device,
because it programs the MAC address of multiple ports to a shared
hardware register. Those ports need to have equal MAC addresses for the
lifetime of the HSR offload.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/net/dsa.h
net/dsa/slave.c