net: mvneta: enable change MAC address when interface is up
authorDmitri Epshtein <dima@marvell.com>
Sat, 12 Mar 2016 17:44:18 +0000 (18:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Mar 2016 19:48:51 +0000 (15:48 -0400)
commit928b6519afeb2a5e2dc61154380b545ed66c476a
tree5d712d9d24e9827e89e032982366265e190188e0
parent1c2722a975fdb8c90bc6ba8570b7fb62db4e2e9c
net: mvneta: enable change MAC address when interface is up

Function eth_prepare_mac_addr_change() is called as part of MAC
address change. This function check if interface is running.
To enable change MAC address when interface is running:
IFF_LIVE_ADDR_CHANGE flag must be set to dev->priv_flags field

Fixes: c5aff18204da ("net: mvneta: driver for Marvell Armada 370/XP
network unit")
Cc: stable@vger.kernel.org
Signed-off-by: Dmitri Epshtein <dima@marvell.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c