diff options
author | stephen hemminger <shemming@brocade.com> | 2014-12-27 19:01:42 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-12-31 20:18:28 +0100 |
commit | bec94d430f2c97159e21e38c0f1fa4da3710d5e1 (patch) | |
tree | 1a7d779e23686ad399e3175d39c0d9404acb29f8 /net/ipv4/ip_gre.c | |
parent | l2tp : multicast notification to the registered listeners (diff) | |
download | linux-bec94d430f2c97159e21e38c0f1fa4da3710d5e1.tar.xz linux-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.c | 1 |
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); } |