]> 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)
commit862433fbfa73ce0e6962c996820a0b13d3ad96f7
tree456681d08a1ca3017875d6068c4e102633afff74
parent400f3b34cf42fd978da60bda3a566c0345bdf928
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