Skip to contentSkip to conversation

gre: allow live address change

PATCH Applied Stephen Hemminger 2 participants 2 messages Dec 27, 2014 – Dec 31, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gre: allow live address change

The GRE tap device supports Ethernet over GRE, but doesn't care about the source address of the tunnel, therefore it can be changed without bring device down.

net/ipv4/ip_gre.c +1 -0
@@ -673,6 +673,7 @@ static bool ipgre_netlink_encap_parms(st
 static int gre_tap_init(struct net_device *dev)
 {
 	__gre_tunnel_init(dev);
+	dev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
 
 	return ip_tunnel_init(dev);
 }