diff options
author | David S. Miller <davem@davemloft.net> | 2012-06-09 01:25:47 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-09 01:25:47 -0700 |
commit | 4670fd819e7f47392c7c6fc6168ea2857c66d163 (patch) | |
tree | b8e90a8a449c0b42b77b54313683ab2d0edb09f3 /virt | |
parent | fbfe95a42e90b3dd079cc9019ba7d7700feee0f6 (diff) | |
download | linux-4670fd819e7f47392c7c6fc6168ea2857c66d163.tar.gz linux-4670fd819e7f47392c7c6fc6168ea2857c66d163.tar.bz2 linux-4670fd819e7f47392c7c6fc6168ea2857c66d163.zip |
tcp: Get rid of inetpeer special cases.
The get_peer method TCP uses is full of special cases that make no
sense accommodating, and it also gets in the way of doing more
reasonable things here.
First of all, if the socket doesn't have a usable cached route, there
is no sense in trying to optimize timewait recycling.
Likewise for the case where we have IP options, such as SRR enabled,
that make the IP header destination address (and thus the destination
address of the route key) differ from that of the connection's
destination address.
Just return a NULL peer in these cases, and thus we're also able to
get rid of the clumsy inetpeer release logic.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions