summaryrefslogtreecommitdiff
path: root/net/ipv4
diff options
context:
space:
mode:
authorstephen hemminger <shemming@brocade.com>2014-12-27 18:01:42 (GMT)
committerDavid S. Miller <davem@davemloft.net>2014-12-31 19:18:28 (GMT)
commitbec94d430f2c97159e21e38c0f1fa4da3710d5e1 (patch)
tree1a7d779e23686ad399e3175d39c0d9404acb29f8 /net/ipv4
parent33f72e6f0c67f673fd0c63a8182dbd9ffb8cf50b (diff)
downloadlinux-bec94d430f2c97159e21e38c0f1fa4da3710d5e1.tar.xz
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')
-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 4f4bf5b..942576e 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);
}