[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100328143235.GA16694@gondor.apana.org.au>
Date: Sun, 28 Mar 2010 22:32:35 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: David Miller <davem@...emloft.net>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH RFC] inetpeer: Support ipv6 addresses.
On Sun, Mar 28, 2010 at 09:59:31PM +0800, Herbert Xu wrote:
>
> I don't think they are quite the same. The TCP time stamp is
> an attribute of the destination host, it doesn't vary depending
> on which route you take to reach the host. The MTU on the other
> hand is an attribute of the route that reaches the host.
Here's a convoluted scheme that I just thought up as a compromise
between your wish to expel the metrics and maintaining the policy
routing semantics.
Instead of placing the metrics into the inetpeer, we create a new
global cache for them (let's call it the metrics cache for now).
However, we don't actually populate this cache every time we create
an rt object. Instead, we only create an entry in this cache
when an event requires it, e.g., when we receive a PMTU message.
In order for this to then propagate to the rt objects, we increment
a genid in the inetpeer cache for the corresponding host. This
genid is then checked by the rt object every time. When it is
out of step, the rt object can perform a lookup in the metrics cache
to get the latest data.
Of course once an rt object has a pointer to an entry in the metrics
cache it doesn't need to check the genid anymore, until the metrics
data expires at which point this process can be repeated.
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists