Skip to content

Commit 7218e96

Browse files
IoanaCiorneidavem330
authored andcommitted
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 <[email protected]> Signed-off-by: Ioana Ciornei <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 365d037 commit 7218e96

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3293,6 +3293,7 @@ static int dpaa2_switch_probe_port(struct ethsw_core *ethsw,
32933293
port_netdev->features = NETIF_F_HW_VLAN_CTAG_FILTER |
32943294
NETIF_F_HW_VLAN_STAG_FILTER |
32953295
NETIF_F_HW_TC;
3296+
port_netdev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
32963297

32973298
err = dpaa2_switch_port_init(port_priv, port_idx);
32983299
if (err)

0 commit comments

Comments
 (0)