commit | d33e455337ea2c71d09d7f4367d6ad6dd32b6965 | [log] [tgz] |
---|---|---|
author | David S. Miller <davem@davemloft.net> | Tue Dec 14 13:01:14 2010 -0800 |
committer | David S. Miller <davem@davemloft.net> | Tue Dec 14 13:01:14 2010 -0800 |
tree | d1b35b1be5ab73df6f7e57b86a2e68fad2990adf | |
parent | 9fe146aef44afe5ec677d8150b6ae94e09b773f7 [diff] |
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>