Skip to content

Commit 76e48f9

Browse files
Shweta Choudahadavem330
authored andcommitted
ip6gre: Allow live link address change
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>
1 parent 753c104 commit 76e48f9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

net/ipv6/ip6_gre.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,6 +1256,8 @@ static int ip6gre_tap_init(struct net_device *dev)
12561256
if (ret)
12571257
return ret;
12581258

1259+
dev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
1260+
12591261
tunnel = netdev_priv(dev);
12601262

12611263
ip6gre_tnl_link_config(tunnel, 1);
@@ -1289,6 +1291,7 @@ static void ip6gre_tap_setup(struct net_device *dev)
12891291

12901292
dev->features |= NETIF_F_NETNS_LOCAL;
12911293
dev->priv_flags &= ~IFF_TX_SKB_SHARING;
1294+
dev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
12921295
}
12931296

12941297
static bool ip6gre_netlink_encap_parms(struct nlattr *data[],

0 commit comments

Comments
 (0)