Skip to content

Commit c84bed4

Browse files
lxindavem330
authored andcommitted
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: 84e54fe ("gre: introduce native tunnel support for ERSPAN") Signed-off-by: Xin Long <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c122fda commit c84bed4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/ipv4/ip_gre.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,6 +1254,7 @@ static int erspan_tunnel_init(struct net_device *dev)
12541254
dev->features |= GRE_FEATURES;
12551255
dev->hw_features |= GRE_FEATURES;
12561256
dev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
1257+
netif_keep_dst(dev);
12571258

12581259
return ip_tunnel_init(dev);
12591260
}

0 commit comments

Comments
 (0)