]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Move dst->from into struct rt6_info.
authorDavid Miller <davem@davemloft.net>
Tue, 28 Nov 2017 20:40:40 +0000 (15:40 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Nov 2017 14:54:26 +0000 (09:54 -0500)
commit37a3a891566da40c2ba6ce052e5d527105b32184
treed4bea5d4b31fe38dde724e8eb102038438f17f36
parentb394463c415bb44d1fb81008721677bd288a7b16
ipv6: Move dst->from into struct rt6_info.

The dst->from value is only used by ipv6 routes to track where
a route "came from".

Any time we clone or copy a core ipv6 route in the ipv6 routing
tables, we have the copy/clone's ->from point to the base route.

This is used to handle route expiration properly.

Only ipv6 uses this mechanism, and only ipv6 code references
it.  So it is safe to move it into rt6_info.

Signed-off-by: David S. Miller <davem@davemloft.net>
Reviewed-by: Eric Dumazet <edumazet@google.com>
include/net/dst.h
include/net/ip6_fib.h
net/core/dst.c
net/ipv6/route.c