mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
ipv4: Remove the 'publish' logic in tcp_fastopen_init_key_once
The 'publish' logic is not necessary after commit dfea2aa654
("tcp:
Do not call tcp_fastopen_reset_cipher from interrupt context"), because
in tcp_fastopen_cookie_gen,it wouldn't call tcp_fastopen_init_key_once.
Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e1cfcbe82b
commit
dd000598a3
5 changed files with 5 additions and 10 deletions
|
@ -2749,7 +2749,7 @@ static int do_tcp_setsockopt(struct sock *sk, int level,
|
|||
case TCP_FASTOPEN:
|
||||
if (val >= 0 && ((1 << sk->sk_state) & (TCPF_CLOSE |
|
||||
TCPF_LISTEN))) {
|
||||
tcp_fastopen_init_key_once(true);
|
||||
tcp_fastopen_init_key_once();
|
||||
|
||||
fastopen_queue_tune(sk, val);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue