diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-06-27 03:27:05 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-29 00:27:47 -0400 |
commit | 2ffae99d1fac272952b5a395759823717760ce37 (patch) | |
tree | 0c1cd0ea84fa58072e0eef58a0d8507567c6d785 /net/ipv4/fib_semantics.c | |
parent | b173ee488dcc545e77ed482158a2f0d06d7a5860 (diff) |
ipv4: use next hop exceptions also for input routes
Commit d2d68ba9 (ipv4: Cache input routes in fib_info nexthops)
assmued that "locally destined, and routed packets, never trigger
PMTU events or redirects that will be processed by us".
However, it seems that tunnel devices do trigger PMTU events in certain
cases. At least ip_gre, ip6_gre, sit, and ipip do use the inner flow's
skb_dst(skb)->ops->update_pmtu to propage mtu information from the
outer flows. These can cause the inner flow mtu to be decreased. If
next hop exceptions are not consulted for pmtu, IP fragmentation will
not be done properly for these routes.
It also seems that we really need to have the PMTU information always
for netfilter TCPMSS clamp-to-pmtu feature to work properly.
So for the time being, cache separate copies of input routes for
each next hop exception.
Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Reviewed-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_semantics.c')
-rw-r--r-- | net/ipv4/fib_semantics.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c index 8f6cb7a87cd6..d5dbca5ecf62 100644 --- a/net/ipv4/fib_semantics.c +++ b/net/ipv4/fib_semantics.c | |||
@@ -169,7 +169,8 @@ static void free_nh_exceptions(struct fib_nh *nh) | |||
169 | 169 | ||
170 | next = rcu_dereference_protected(fnhe->fnhe_next, 1); | 170 | next = rcu_dereference_protected(fnhe->fnhe_next, 1); |
171 | 171 | ||
172 | rt_fibinfo_free(&fnhe->fnhe_rth); | 172 | rt_fibinfo_free(&fnhe->fnhe_rth_input); |
173 | rt_fibinfo_free(&fnhe->fnhe_rth_output); | ||
173 | 174 | ||
174 | kfree(fnhe); | 175 | kfree(fnhe); |
175 | 176 | ||