tun: allow setting ethernet addresss while running
authorstephen hemminger <shemminger@vyatta.com>
Mon, 10 Dec 2012 15:16:00 +0000 (15:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Dec 2012 17:49:53 +0000 (12:49 -0500)
This is a pure software device, and ok with live address change.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c

index 14a04543cd91fef0ab1b5b3516caa7cc6230f4cf..2ac2164a1e39bd70b0a046ee6dc7df05b76e1045 100644 (file)
@@ -849,6 +849,7 @@ static void tun_net_init(struct net_device *dev)
                /* Ethernet TAP Device */
                ether_setup(dev);
                dev->priv_flags &= ~IFF_TX_SKB_SHARING;
+               dev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
 
                eth_hw_addr_random(dev);