Message ID | 1526690988-29912-10-git-send-email-gvrose8192@gmail.com |
---|---|
State | Accepted |
Headers | show |
Series | Add ERSPAN support | expand |
On Fri, May 18, 2018 at 5:49 PM, Greg Rose <gvrose8192@gmail.com> wrote: > From: Xin Long <lucien.xin@gmail.com> > > Upstream commit: > commit c84bed440e4e11a973e8c0254d0dfaccfca41fb0 > Author: Xin Long <lucien.xin@gmail.com> > Date: Sun Oct 1 22:00:56 2017 +0800 > > 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> > > Cc: Xin Long <lucien.xin@gmail.com> > Signed-off-by: Greg Rose <gvrose8192@gmail.com> > --- LGTM. Acked-by: William Tu <u9012063@gmail.com>
diff --git a/datapath/linux/compat/ip_gre.c b/datapath/linux/compat/ip_gre.c index 70c6a9f..19e78af 100644 --- a/datapath/linux/compat/ip_gre.c +++ b/datapath/linux/compat/ip_gre.c @@ -1053,6 +1053,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); }