From: Ioana Ciornei Date: Tue, 19 Dec 2023 11:59:27 +0000 (+0200) Subject: dpaa2-switch: declare the netdev as IFF_LIVE_ADDR_CHANGE capable X-Git-Tag: v6.8-rc1~131^2~93^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7218e963196e5f85008a8f86e5b4dd613fae0a4c;p=thirdparty%2Fkernel%2Flinux.git dpaa2-switch: declare the netdev as IFF_LIVE_ADDR_CHANGE capable There is no restriction around the change of the MAC address on the switch ports, thus declare the interface netdevs IFF_LIVE_ADDR_CHANGE capable. Reviewed-by: Simon Horman Signed-off-by: Ioana Ciornei Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c b/drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c index 811e2cfe6c937..a41d5c7428ab8 100644 --- a/drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c +++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c @@ -3293,6 +3293,7 @@ static int dpaa2_switch_probe_port(struct ethsw_core *ethsw, port_netdev->features = NETIF_F_HW_VLAN_CTAG_FILTER | NETIF_F_HW_VLAN_STAG_FILTER | NETIF_F_HW_TC; + port_netdev->priv_flags |= IFF_LIVE_ADDR_CHANGE; err = dpaa2_switch_port_init(port_priv, port_idx); if (err)