Thread (24 messages) 24 messages, 2 authors, 2017-11-01

Re: [RFC v2 PATCH 07/11] ipv6: Move dst->from into struct rt6_info.

From: Eric Dumazet <hidden>
Date: 2017-10-31 18:47:07

On Tue, 2017-10-31 at 23:10 +0900, David S. Miller wrote:
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>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help