veth: allow changing the mac address while interface is up
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Tue, 30 Oct 2012 16:22:01 +0000 (16:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Nov 2012 16:26:10 +0000 (12:26 -0400)
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/veth.c

index e522ff70444cd0d7e8f1ce34132055e438ded7ce..24f6b27e169fd18ab14002544de4e71fe6897f7d 100644 (file)
@@ -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;