net: Abstract default MTU metric calculation behind an accessor.
authorDavid S. Miller <davem@davemloft.net>
Tue, 14 Dec 2010 21:01:14 +0000 (13:01 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Dec 2010 21:01:14 +0000 (13:01 -0800)
commitd33e455337ea2c71d09d7f4367d6ad6dd32b6965
treed1b35b1be5ab73df6f7e57b86a2e68fad2990adf
parent9fe146aef44afe5ec677d8150b6ae94e09b773f7
net: Abstract default MTU metric calculation behind an accessor.

Like RTAX_ADVMSS, make the default calculation go through a dst_ops
method rather than caching the computation in the routing cache
entries.

Now dst metrics are pretty much left as-is when new entries are
created, thus optimizing metric sharing becomes a real possibility.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dst.h
include/net/dst_ops.h
net/decnet/dn_route.c
net/ipv4/route.c
net/ipv6/route.c
net/xfrm/xfrm_policy.c