Skip to content

Commit 4e19516

Browse files
github-cygwindavem330
authored andcommitted
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>
1 parent fbb192a commit 4e19516

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7339,6 +7339,8 @@ int stmmac_dvr_probe(struct device *device,
73397339
if (flow_ctrl)
73407340
priv->flow_ctrl = FLOW_AUTO; /* RX/TX pause on */
73417341

7342+
ndev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
7343+
73427344
/* Setup channels NAPI */
73437345
stmmac_napi_add(ndev);
73447346

0 commit comments

Comments
 (0)