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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Dec 2011 16:56:00 +0000 (08:56 -0800)
commitfe421e849a3c36373dd59eb5f302705c91a14719
tree80c8cfdd036e7c6cfded64374371f511e4c9e528
parent5eb027bb82d1f9d4af0df73a3ce08945ffc1b481
ipv4: avoid useless call of the function check_peer_pmtu

[ Upstream commit 59445b6b1f90b97c4e28062b96306bacfa4fb170 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/route.c