stmmac: fix changing mac address
authorCorinna Vinschen <vinschen@redhat.com>
Mon, 17 Apr 2023 19:29:03 +0000 (21:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Apr 2023 12:14:58 +0000 (13:14 +0100)
commit4e195166624851d1da1a4e42110e66ee4faca4a3
tree094634bf478c6d8d534675e0e7503e079ef1ddb7
parentfbb192a836bee873e4e94c5deca19bf558ab7bb9
stmmac: fix changing mac address

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>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c