aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ip_gre.c
diff options
context:
space:
mode:
authorstephen hemminger <shemming@brocade.com>2014-12-27 10:01:42 -0800
committerDavid S. Miller <davem@davemloft.net>2014-12-31 14:18:28 -0500
commitbec94d430f2c97159e21e38c0f1fa4da3710d5e1 (patch)
tree1a7d779e23686ad399e3175d39c0d9404acb29f8 /net/ipv4/ip_gre.c
parentl2tp : multicast notification to the registered listeners (diff)
downloadlinux-dev-bec94d430f2c97159e21e38c0f1fa4da3710d5e1.tar.xz
linux-dev-bec94d430f2c97159e21e38c0f1fa4da3710d5e1.zip
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@networkplumber.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ip_gre.c')
-rw-r--r--net/ipv4/ip_gre.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c
index 4f4bf5b99686..942576e27df1 100644
--- a/net/ipv4/ip_gre.c
+++ b/net/ipv4/ip_gre.c
@@ -673,6 +673,7 @@ static bool ipgre_netlink_encap_parms(struct nlattr *data[],
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);
}