]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: constify tcp_syn_flood_action() socket argument
authorEric Dumazet <edumazet@google.com>
Tue, 29 Sep 2015 14:42:51 +0000 (07:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Sep 2015 23:53:10 +0000 (16:53 -0700)
commit6a771c4ccfe6a77acfe522c6bc7f9b9d9baf803e
tree43f34a8d12365c7ee0e5101bb30332e8fbcc0827
parent16044cc2401b769e6afe9f38b2ea9e28baa6e349
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>
include/net/request_sock.h
net/ipv4/tcp_input.c