]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ip6gre: Allow live link address change
authorShweta Choudaha <schoudah@brocade.com>
Wed, 8 Jun 2016 19:15:43 +0000 (20:15 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Jun 2016 05:02:17 +0000 (22:02 -0700)
The ip6 GRE tap device should not be forced to down state to change
the mac address and should allow live address change for tap device
similar to ipv4 gre.

Signed-off-by: Shweta Choudaha <schoudah@brocade.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_gre.c

index f4ac2842d4d9543d2ac1e7d4b91b99df32d43e6d..fdc9de276ab1aeecfbc917e8718953d0aa0691ee 100644 (file)
@@ -1256,6 +1256,8 @@ static int ip6gre_tap_init(struct net_device *dev)
        if (ret)
                return ret;
 
+       dev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
+
        tunnel = netdev_priv(dev);
 
        ip6gre_tnl_link_config(tunnel, 1);
@@ -1289,6 +1291,7 @@ static void ip6gre_tap_setup(struct net_device *dev)
 
        dev->features |= NETIF_F_NETNS_LOCAL;
        dev->priv_flags &= ~IFF_TX_SKB_SHARING;
+       dev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
 }
 
 static bool ip6gre_netlink_encap_parms(struct nlattr *data[],