ip_tunnel: Add ip tunnel tun_info type dst_cache in ip_tunnel_xmit
authorwenxu <wenxu@ucloud.cn>
Sun, 24 Feb 2019 00:24:45 +0000 (08:24 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Feb 2019 06:22:33 +0000 (22:22 -0800)
commit186d93669fe0cba252d42a42ddcfdbe9f2ee101d
tree5942f9b59ca86c361821e66b6fe2013d685a82b2
parent169431ed16a3d275c403c85a26fc788187e6d09e
ip_tunnel: Add ip tunnel tun_info type dst_cache in ip_tunnel_xmit

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_inf dst cache support for this mode.

Signed-off-by: wenxu <wenxu@ucloud.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_tunnel.c