summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorHannes Frederic Sowa <hannes@stressinduktion.org>2012-10-30 16:22:01 +0000
committerDavid S. Miller <davem@davemloft.net>2012-11-01 12:26:10 -0400
commit23ea5a963768ff162a9ff8654589d7f7e1dfb780 (patch)
tree9648571e6c4a8dfd254af18bb7098260863a5c97 /drivers/net
parent2e5b38abcfad3049608a051826a5aaec2122cdac (diff)
downloadop-kernel-dev-23ea5a963768ff162a9ff8654589d7f7e1dfb780.zip
op-kernel-dev-23ea5a963768ff162a9ff8654589d7f7e1dfb780.tar.gz
veth: allow changing the mac address while interface is up
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/veth.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/veth.c b/drivers/net/veth.c
index e522ff7..24f6b27 100644
--- a/drivers/net/veth.c
+++ b/drivers/net/veth.c
@@ -264,6 +264,7 @@ static void veth_setup(struct net_device *dev)
ether_setup(dev);
dev->priv_flags &= ~IFF_TX_SKB_SHARING;
+ dev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
dev->netdev_ops = &veth_netdev_ops;
dev->ethtool_ops = &veth_ethtool_ops;
OpenPOWER on IntegriCloud