summaryrefslogtreecommitdiff
path: root/include/net/request_sock.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-10-02 21:43:33 +0300
committerDavid S. Miller <davem@davemloft.net>2015-10-03 14:32:42 +0300
commit81b496b31a4331415b6a644b485a329ec0b45155 (patch)
tree0412d4d8c3d58625f838ad3fb6f7f044bfd9fcc4 /include/net/request_sock.h
parent079096f103faca2dd87342cca6f23d4b34da8871 (diff)
downloadlinux-81b496b31a4331415b6a644b485a329ec0b45155.tar.xz
tcp/dccp: shrink struct listen_sock
We no longer use hash_rnd, nr_table_entries and syn_table[] For a listener with a backlog of 10 millions sockets, this saves 80 MBytes of vmalloced memory. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/request_sock.h')
-rw-r--r--include/net/request_sock.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/net/request_sock.h b/include/net/request_sock.h
index e1850923c4f5..353cb61bb399 100644
--- a/include/net/request_sock.h
+++ b/include/net/request_sock.h
@@ -125,9 +125,6 @@ extern int sysctl_max_syn_backlog;
*/
struct listen_sock {
u32 max_qlen_log;
- u32 hash_rnd;
- u32 nr_table_entries;
- struct request_sock *syn_table[0];
};
/*