]> git.baikalelectronics.ru Git - kernel.git/commit
lwtunnel: add options process for cmp_encap
authorXin Long <lucien.xin@gmail.com>
Wed, 6 Nov 2019 09:01:04 +0000 (17:01 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Nov 2019 05:14:21 +0000 (21:14 -0800)
commit807f87e37e74368fd8a4bf802d871d43bf4aa43b
treea483d299fe2d969045027762de7f351e011be34f
parent839e933f00d49cdf27f67a6d09c1b4c4f0fa99f0
lwtunnel: add options process for cmp_encap

When comparing two tun_info, dst_cache member should have been skipped,
as dst_cache is a per cpu pointer and they are always different values
even in two tun_info with the same keys.

So this patch is to skip dst_cache member and compare the key, mode and
options_len only. For the future opts setting support, also to compare
options.

Fixes: 5d7890ec2a30 ("lwtunnel: ip tunnel: fix multiple routes with different encap")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_tunnel_core.c