mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 10:33:27 +00:00
ipv4: Don't update the pmtu on mtu locked routes
Routes with locked mtu should not use learned pmtu informations, so do not update the pmtu on these routes. Reported-by: Julian Anastasov <ja@ssi.bg> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
38d523e294
commit
fa1e492aa3
1 changed files with 3 additions and 0 deletions
|
@ -912,6 +912,9 @@ static void __ip_rt_update_pmtu(struct rtable *rt, struct flowi4 *fl4, u32 mtu)
|
|||
struct dst_entry *dst = &rt->dst;
|
||||
struct fib_result res;
|
||||
|
||||
if (dst_metric_locked(dst, RTAX_MTU))
|
||||
return;
|
||||
|
||||
if (dst->dev->mtu < mtu)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in a new issue