Skip to content

stmmac: fix changing mac address

Corinna Vinschen requested to merge vinschen/centos-stream-9:bz2213161 into main

Without the IFF_LIVE_ADDR_CHANGE flag being set, the network code
disallows changing the mac address while the interface is UP.

Consequences are, for instance, that the interface can't be used
in a failover bond.

Add the missing flag to net_device priv_flags.

Tested on Intel Elkhart Lake with default settings, as well as with
failover and alb mode bonds.

Signed-off-by: Corinna Vinschen vinschen@redhat.com
Signed-off-by: David S. Miller davem@davemloft.net
(cherry picked from commit 4e195166624851d1da1a4e42110e66ee4faca4a3)
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2213161

Merge request reports