]> 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)
commit198b618bc39380c08eda09603d5c639f3aba0313
tree48594f61dffdd2325f2449dc07e061de750c4312
parentad4ec3df449d8ebce37ccbc93430b10880810dfe
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