[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Sat, 27 Dec 2014 10:01:42 -0800
From: Stephen Hemminger <shemming@...cade.com>
To: David Miller <davem@...emloft.net>
CC: <netdev@...r.kernel.org>
Subject: [PATCH net] 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.
Signed-off-by: Stephen Hemminger <stephen@...workplumber.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);
}
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists