mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
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: 84e54fe0a5
("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>
This commit is contained in:
parent
c122fda271
commit
c84bed440e
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user