netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] Fix routing metrics
@ 2012-02-02 10:11 Steffen Klassert
  2012-02-02 10:12 ` [PATCH 1/4] inetpeer: Allocate the peer metrics dynamically Steffen Klassert
                   ` (4 more replies)
  0 siblings, 5 replies; 22+ messages in thread
From: Steffen Klassert @ 2012-02-02 10:11 UTC (permalink / raw)
  To: David Miller; +Cc: timo.teras, netdev

At the moment we initialize the routing metrics with the, on the inetpeer
cached values in rt_init_metrics(). So if we have the metrics cached on the
inetpeer, we ignore the user configured fib_metrics. This leads to the fact 
that we can't configure the mtu, hoplimit etc. if we have learned metrics 
cached. This patchset adds a possibility to invalidate and exchange the
cached inetpeer metrics. In detail it does:

1. Allocate the inetpeer metrics dynamically and add a reference
to the inetpeer.

2. Remove the direct reference of the inetpeer metrics from
dst->_metrics and access the metrics via the inetpeer reference
of the route. This makes it possible to exchange the inetpeer
metrics if they get invalidated.

3. Protect the inetpeer metrics with rcu.

4. Add a peer_genid to invalidate the metrics. When the peer_genid
is incremeted we allocate new metrics and exchange the metrics
pointer of the inetpeer.

For the case that such a approach is acceptable, I have another patch
to unify peer_genid and redirect_genid.

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2012-02-24  9:15 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-02 10:11 [PATCH 0/4] Fix routing metrics Steffen Klassert
2012-02-02 10:12 ` [PATCH 1/4] inetpeer: Allocate the peer metrics dynamically Steffen Klassert
2012-02-02 10:12 ` [PATCH 2/4] net: Unlink the inetpeer metrics from dst_entry Steffen Klassert
2012-02-02 10:13 ` [PATCH 3/4] inetpeer: protect the inetpeerpeer metrics with rcu Steffen Klassert
2012-02-02 10:14 ` [PATCH 4/4] route: Invalidate the peer metrics along with the routing cache Steffen Klassert
2012-02-06 20:29 ` [PATCH 0/4] Fix routing metrics David Miller
2012-02-08  7:30   ` Steffen Klassert
2012-02-08 20:18     ` David Miller
2012-02-09 12:44       ` Steffen Klassert
2012-02-09 18:40         ` David Miller
2012-02-10  6:50           ` Steffen Klassert
2012-02-10  7:38             ` David Miller
2012-02-10  7:51               ` Steffen Klassert
2012-02-10  8:12                 ` David Miller
2012-02-10  8:44                   ` Steffen Klassert
2012-02-10 18:25                     ` David Miller
2012-02-21  6:19                       ` Steffen Klassert
2012-02-21  6:36                         ` David Miller
2012-02-21  8:18                           ` Steffen Klassert
2012-02-21 19:24                             ` David Miller
2012-02-24  9:08                               ` Steffen Klassert
2012-02-24  9:13                                 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).