ipv4: avoid useless call of the function check_peer_pmtu
authorGao feng <gaofeng@cn.fujitsu.com>
Wed, 19 Oct 2011 15:34:09 +0000 (15:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Oct 2011 22:30:07 +0000 (18:30 -0400)
commit59445b6b1f90b97c4e28062b96306bacfa4fb170
tree61408e20f1e56c98a5b377ae02079dc5c229af00
parent1805b2f04855f07afe3a71d620a68f483b0ed74f
ipv4: avoid useless call of the function check_peer_pmtu

In func ipv4_dst_check,check_peer_pmtu should be called only when peer is updated.
So,if the peer is not updated in ip_rt_frag_needed,we can not inc __rt_peer_genid.

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c