]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit0c37d6a7640a60685692062e555a3d51050d8eb0
tree0ee2012361d1b0f8a92b68da7d0d92209613ecaf
parent39f2a6b8cec417f9e380ce8ba82999f984adea31
[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