]> git.baikalelectronics.ru Git - kernel.git/commit
ip_tunnel: replace dst_cache with generic implementation
authorPaolo Abeni <pabeni@redhat.com>
Fri, 12 Feb 2016 14:43:55 +0000 (15:43 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Feb 2016 01:21:48 +0000 (20:21 -0500)
commit99e199e8ee0dfb1860eaab95243d85ace85753ba
tree456681d08a1ca3017875d6068c4e102633afff74
parentb0e4deb1673931103816f6805c75db7b388a9331
ip_tunnel: replace dst_cache with generic implementation

The current ip_tunnel cache implementation is prone to a race
that will cause the wrong dst to be cached on cuncurrent dst cache
miss and ip tunnel update via netlink.

Replacing with the generic implementation fix the issue.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Suggested-and-acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_tunnels.h
net/ipv4/Kconfig
net/ipv4/ip_tunnel.c
net/ipv6/sit.c