[PATCH] tcp: Cache inetpeer in timewait socket, and only when necessary.
authorDavid S. Miller <davem@davemloft.net>
Sat, 9 Jun 2012 21:56:12 +0000 (14:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 Jun 2012 21:56:12 +0000 (14:56 -0700)
commit2397849baa7c44c242e5d5142d5d16d1e7ed53d0
tree0ee2012361d1b0f8a92b68da7d0d92209613ecaf
parent4670fd819e7f47392c7c6fc6168ea2857c66d163
[PATCH] tcp: Cache inetpeer in timewait socket, and only when necessary.

Since it's guarenteed that we will access the inetpeer if we're trying
to do timewait recycling and TCP options were enabled on the
connection, just cache the peer in the timewait socket.

In the future, inetpeer lookups will be context dependent (per routing
realm), and this helps facilitate that as well.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/tcp.h
include/net/tcp.h
include/net/timewait_sock.h
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_minisocks.c
net/ipv6/tcp_ipv6.c