]> 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)
commit9c64b12ad5aa30b53fc1d5dbbba75c234abcc6b1
tree0ee2012361d1b0f8a92b68da7d0d92209613ecaf
parent105dede9f70c1be529f8486bc873d1638ca6cf51
[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