Skip to content

Commit

Permalink
ipv4: Don't update the pmtu on mtu locked routes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steffen Klassert authored and David S. Miller committed Jan 17, 2013
1 parent 38d523e commit fa1e492
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/ipv4/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit fa1e492

Please sign in to comment.