netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net] gre: allow live address change
@ 2014-12-27 18:01 Stephen Hemminger
  2014-12-31 19:18 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2014-12-27 18:01 UTC (permalink / raw)
  To: David Miller; +Cc: netdev

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>

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH net] gre: allow live address change
  2014-12-27 18:01 [PATCH net] gre: allow live address change Stephen Hemminger
@ 2014-12-31 19:18 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2014-12-31 19:18 UTC (permalink / raw)
  To: shemming; +Cc: netdev

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-12-31 19:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-27 18:01 [PATCH net] gre: allow live address change Stephen Hemminger
2014-12-31 19:18 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).