dpaa2-switch: declare the netdev as IFF_LIVE_ADDR_CHANGE capable
authorIoana Ciornei <ioana.ciornei@nxp.com>
Tue, 19 Dec 2023 11:59:27 +0000 (13:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Dec 2023 01:18:59 +0000 (01:18 +0000)
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 <horms@kernel.org>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c

index 811e2cfe6c937765dd1c0a0898cddc42ce3754e9..a41d5c7428ab848557c932c76b3bb3e5b7030218 100644 (file)
@@ -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)