]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: introduce a hash table to store dst cache
authorWei Wang <weiwan@google.com>
Fri, 6 Oct 2017 19:05:57 +0000 (12:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Oct 2017 20:22:57 +0000 (21:22 +0100)
commit1070a04a91f8510c85241d51eb13832d6a342af6
tree48594f61dffdd2325f2449dc07e061de750c4312
parent6bab6e1b18d07079613f2f55faced4d22b58e1af
ipv6: introduce a hash table to store dst cache

Add a hash table into struct rt6_info in order to store dst caches
created by pmtu discovery and ip redirect in ipv6 routing code.
APIs to add dst cache, delete dst cache, find dst cache and update
dst cache in the hash table are implemented and will be used in later
commits.
This is a preparation work to move all cache routes into the exception
table instead of getting inserted into the fib6 tree.

Signed-off-by: Wei Wang <weiwan@google.com>
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_fib.h
include/net/ip6_route.h
net/ipv6/route.c