diff options
author | Xin Long <lucien.xin@gmail.com> | 2017-10-01 22:00:56 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-01 22:30:32 -0700 |
commit | c84bed440e4e11a973e8c0254d0dfaccfca41fb0 (patch) | |
tree | 037f60ca472cd85fa942b6e5da0c8e4eb405220b /net/ipv4/ip_gre.c | |
parent | c122fda271717f4fc618e0a31e833941fd5f1efd (diff) | |
download | linux-stable-c84bed440e4e11a973e8c0254d0dfaccfca41fb0.tar.gz linux-stable-c84bed440e4e11a973e8c0254d0dfaccfca41fb0.tar.bz2 linux-stable-c84bed440e4e11a973e8c0254d0dfaccfca41fb0.zip |
ip_gre: erspan device should keep dst
The patch 'ip_gre: ipgre_tap device should keep dst' fixed
the issue ipgre_tap dev mtu couldn't be updated in tx path.
The same fix is needed for erspan as well.
Fixes: 84e54fe0a5ea ("gre: introduce native tunnel support for ERSPAN")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
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 fad0bb1e3e9a..467e44d7587d 100644 --- a/net/ipv4/ip_gre.c +++ b/net/ipv4/ip_gre.c @@ -1254,6 +1254,7 @@ static int erspan_tunnel_init(struct net_device *dev) dev->features |= GRE_FEATURES; dev->hw_features |= GRE_FEATURES; dev->priv_flags |= IFF_LIVE_ADDR_CHANGE; + netif_keep_dst(dev); return ip_tunnel_init(dev); } |