diff options
author | stephen hemminger <shemming@brocade.com> | 2014-12-27 10:01:42 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-12-31 14:18:28 -0500 |
commit | bec94d430f2c97159e21e38c0f1fa4da3710d5e1 (patch) | |
tree | 1a7d779e23686ad399e3175d39c0d9404acb29f8 /net/ipv4/ip_gre.c | |
parent | 33f72e6f0c67f673fd0c63a8182dbd9ffb8cf50b (diff) | |
download | lwn-bec94d430f2c97159e21e38c0f1fa4da3710d5e1.tar.gz lwn-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); } |