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)
commite09acddf873bf775b208b452a4c3a3fd26fa9427
tree456681d08a1ca3017875d6068c4e102633afff74
parent607f725f6f7d5ec3759fbc16224afb60e2152a5b
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