From: David S. Miller Date: Mon, 13 Dec 2010 20:52:14 +0000 (-0800) Subject: net: Abstract default ADVMSS behind an accessor. X-Git-Tag: v2.6.38-rc1~476^2~170 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0dbaee3b37e118a96bb7b8eb0d9bbaeeb46264be;p=pandora-kernel.git net: Abstract default ADVMSS behind an accessor. Make all RTAX_ADVMSS metric accesses go through a new helper function, dst_metric_advmss(). Leave the actual default metric as "zero" in the real metric slot, and compute the actual default value dynamically via a new dst_ops AF specific callback. For stacked IPSEC routes, we use the advmss of the path which preserves existing behavior. Unlike ipv4/ipv6, DecNET ties the advmss to the mtu and thus updates advmss on pmtu updates. This inconsistency in advmss handling results in more raw metric accesses than I wish we ended up with. Signed-off-by: David S. Miller --- Reading git-diff-tree failed