ip_tunnel: Add dst_cache support in lwtunnel_state of ip tunnel
authorwenxu <wenxu@ucloud.cn>
Sat, 23 Feb 2019 13:32:54 +0000 (21:32 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Feb 2019 06:13:49 +0000 (22:13 -0800)
commit3d25eabbbf6717bc0465754a66d6ebe51d5faa54
tree79bf3fe040622c6c3ea21790fd4fb27127164fca
parent2b794c4098b525836e37d16045abee3091fdfe18
ip_tunnel: Add dst_cache support in lwtunnel_state of ip tunnel

The lwtunnel_state is not init the dst_cache Which make the
ip_md_tunnel_xmit can't use the dst_cache. It will lookup
route table every packets.

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