diff options
author | Eric Dumazet <edumazet@google.com> | 2015-09-29 16:42:51 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-09-30 01:53:10 +0200 |
commit | 2985aaac010ebd5e562ce1a22cc61acbb0e40cf2 (patch) | |
tree | 43f34a8d12365c7ee0e5101bb30332e8fbcc0827 /include/net/request_sock.h | |
parent | tcp: constify tcp_v{4|6}_route_req() sock argument (diff) | |
download | linux-2985aaac010ebd5e562ce1a22cc61acbb0e40cf2.tar.xz linux-2985aaac010ebd5e562ce1a22cc61acbb0e40cf2.zip |
tcp: constify tcp_syn_flood_action() socket argument
tcp_syn_flood_action() will soon be called with unlocked socket.
In order to avoid SYN flood warning being emitted multiple times,
use xchg().
Extend max_qlen_log and synflood_warned fields in struct listen_sock
to u32
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.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/net/request_sock.h b/include/net/request_sock.h index 90247ec7955b..c146b5284786 100644 --- a/include/net/request_sock.h +++ b/include/net/request_sock.h @@ -129,9 +129,8 @@ struct listen_sock { atomic_t qlen_dec; /* qlen = qlen_inc - qlen_dec */ atomic_t young_dec; - u8 max_qlen_log ____cacheline_aligned_in_smp; - u8 synflood_warned; - /* 2 bytes hole, try to use */ + u32 max_qlen_log ____cacheline_aligned_in_smp; + u32 synflood_warned; u32 hash_rnd; u32 nr_table_entries; struct request_sock *syn_table[0]; |