inet: Minimize use of cached route inetpeer.
authorDavid S. Miller <davem@davemloft.net>
Tue, 10 Jul 2012 10:58:16 +0000 (03:58 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Jul 2012 05:40:11 +0000 (22:40 -0700)
commit1d861aa4b3fb08822055345f480850205ffe6170
tree072c23dcde7766274464c75e51e820649301ad82
parent16d1839907e695387654901995f9286b65fbbc6a
inet: Minimize use of cached route inetpeer.

Only use it in the absolutely required cases:

1) COW'ing metrics

2) ipv4 PMTU

3) ipv4 redirects

Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/icmp.c
net/ipv4/route.c
net/ipv6/icmp.c
net/ipv6/ip6_output.c
net/ipv6/ndisc.c