diff mbox

[net] gre: allow live address change

Message ID 20141227100142.13b7ed79@urahara
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

stephen hemminger Dec. 27, 2014, 6:01 p.m. UTC
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

Comments

David Miller Dec. 31, 2014, 7:18 p.m. UTC | #1
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
diff mbox

Patch

--- 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);
 }