Message ID | 20141227100142.13b7ed79@urahara |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
From: Stephen Hemminger <shemming@brocade.com> Date: Sat, 27 Dec 2014 10:01:42 -0800 > 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. > > Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Applied. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
--- a/net/ipv4/ip_gre.c 2014-12-27 09:43:49.070032631 -0800 +++ b/net/ipv4/ip_gre.c 2014-12-27 09:43:49.066032607 -0800 @@ -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); }
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. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html