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>
Цей коміт міститься в:
Paolo Abeni
2016-02-12 15:43:55 +01:00
зафіксовано David S. Miller
джерело 607f725f6f
коміт e09acddf87
4 змінених файлів з 25 додано та 80 видалено

Переглянути файл

@@ -186,6 +186,7 @@ config NET_IPGRE_DEMUX
config NET_IP_TUNNEL
tristate
select DST_CACHE
default n
config NET_IPGRE