]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commiteb51fe96687c1c975138cda3a7ba20c24c8411f7
treed1b35b1be5ab73df6f7e57b86a2e68fad2990adf
parent370360c7489665450b2e23671bda214c781f7de6
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