Re: [PATCH RFC] inetpeer: Support ipv6 addresses.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Miller
Date: Monday, March 29, 2010 - 3:15 pm

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: Sun, 28 Mar 2010 22:32:35 +0800


Interesting idea, but there is the issue of how to fill in
new metrics cache entries when these requests come in later.

We'd have to retain a pointer to the routing table fib entry.
This is because the fib entry states what the initial metric
values need to be for cached routes.

So we'd need a pointer to the fib_info in the routing cache entry, and
this pointer would need to grab a reference to the fib_info.  And this
subsequently leads to the question of what to do for route changes
(f.e. hold the fib_info around until all the route cache entries drop
their references and have a dead state in the fib_info struct that can
be checked, and if we find it dead what can we even do as the route
we're working with might be cached in a socket or similar)

The other option is to relookup the FIB, but we'd then have to
validate that the route cache entry we're working with matches
precisely still, and also this lookup alone going to have non-trivial
cost :-)

It's really depressing how hard it is to untangle the way we have
things currently setup, isn't it. :-)

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH RFC] inetpeer: Support ipv6 addresses., David Miller, (Sat Mar 27, 8:31 pm)
Re: [PATCH RFC] inetpeer: Support ipv6 addresses., David Miller, (Sat Mar 27, 9:06 pm)
Re: [PATCH RFC] inetpeer: Support ipv6 addresses., Herbert Xu, (Sun Mar 28, 1:22 am)
Re: [PATCH RFC] inetpeer: Support ipv6 addresses., David Miller, (Sun Mar 28, 5:53 am)
Re: [PATCH RFC] inetpeer: Support ipv6 addresses., Herbert Xu, (Sun Mar 28, 6:11 am)
Re: [PATCH RFC] inetpeer: Support ipv6 addresses., David Miller, (Sun Mar 28, 6:40 am)
Re: [PATCH RFC] inetpeer: Support ipv6 addresses., Herbert Xu, (Sun Mar 28, 6:59 am)
Re: [PATCH RFC] inetpeer: Support ipv6 addresses., Herbert Xu, (Sun Mar 28, 7:32 am)
Re: [PATCH RFC] inetpeer: Support ipv6 addresses., Herbert Xu, (Mon Mar 29, 8:08 am)
Re: [PATCH RFC] inetpeer: Support ipv6 addresses., David Miller, (Mon Mar 29, 3:15 pm)
Re: [PATCH RFC] inetpeer: Support ipv6 addresses., David Miller, (Mon Mar 29, 3:21 pm)
Re: [PATCH RFC] inetpeer: Support ipv6 addresses., Herbert Xu, (Tue Mar 30, 5:34 am)
Re: [PATCH RFC] inetpeer: Support ipv6 addresses., Eric W. Biederman, (Tue Mar 30, 10:43 pm)
Re: [PATCH RFC] inetpeer: Support ipv6 addresses., Eric W. Biederman, (Tue Mar 30, 10:44 pm)