Skip to content

Commit

Permalink
ip6gre: Allow live link address change
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shweta Choudaha authored and David S. Miller committed Jun 9, 2016
1 parent 753c104 commit 76e48f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/ipv6/ip6_gre.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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[],
Expand Down

0 comments on commit 76e48f9

Please sign in to comment.