]> git.baikalelectronics.ru Git - kernel.git/commit
syncookies: remove last_synq_overflow from struct tcp_sock
authorFlorian Westphal <fw@strlen.de>
Sun, 19 Apr 2009 09:43:48 +0000 (09:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Apr 2009 09:25:26 +0000 (02:25 -0700)
commit8ed8e9f8fe4f8e2cf2827b2a9b22f0020fec7e80
tree8c39812fc6fc8133cc28944e38b44c941d8fa3ce
parent402bde22b67a6b4de3803d7b1a11e8df206435df
syncookies: remove last_synq_overflow from struct tcp_sock

last_synq_overflow eats 4 or 8 bytes in struct tcp_sock, even
though it is only used when a listening sockets syn queue
is full.

We can (ab)use rx_opt.ts_recent_stamp to store the same information;
it is not used otherwise as long as a socket is in listen state.

Move linger2 around to avoid splitting struct mtu_probe
across cacheline boundary on 32 bit arches.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/tcp.h
include/net/tcp.h
net/ipv4/syncookies.c
net/ipv6/syncookies.c