From: we...@ucloud.cn Date: Thu, 21 Feb 2019 20:08:50 +0800 > From: wenxu <we...@ucloud.cn> > > ip l add dev tun type gretap key 1000 > > Non-tunnel-dst ip tunnel device can send packet through lwtunnel. > This patch provide the tun_info dst cache support for this mode > > Signed-off-by: wenxu <we...@ucloud.cn> > --- > net/ipv4/ip_tunnel.c | 25 ++++++++++++++++++++----- > 1 file changed, 20 insertions(+), 5 deletions(-) > > diff --git a/net/ipv4/ip_tunnel.c b/net/ipv4/ip_tunnel.c > index 893f013..874ad58 100644 > --- a/net/ipv4/ip_tunnel.c > +++ b/net/ipv4/ip_tunnel.c > @@ -662,6 +662,9 @@ void ip_tunnel_xmit(struct sk_buff *skb, struct > net_device *dev, > unsigned int max_headroom; /* The extra header space needed */ > __be32 dst; > bool connected; > + bool use_cache = false; > + bool md = false; > + struct ip_tunnel_info *tun_info;
Reverse christmas tree, please.