protocol.c (5603effb8295ada8419408d038a34ca89d658229) | protocol.c (d6a0443733434408f2cbd4c53fea6910599bab9e) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* Multipath TCP 3 * 4 * Copyright (c) 2017 - 2019, Intel Corporation. 5 */ 6 7#define pr_fmt(fmt) "MPTCP: " fmt 8 --- 2612 unchanged lines hidden (view full) --- 2621{ 2622 struct mptcp_sock *msk = container_of(work, struct mptcp_sock, work); 2623 struct sock *sk = (struct sock *)msk; 2624 unsigned long fail_tout; 2625 int state; 2626 2627 lock_sock(sk); 2628 state = sk->sk_state; | 1// SPDX-License-Identifier: GPL-2.0 2/* Multipath TCP 3 * 4 * Copyright (c) 2017 - 2019, Intel Corporation. 5 */ 6 7#define pr_fmt(fmt) "MPTCP: " fmt 8 --- 2612 unchanged lines hidden (view full) --- 2621{ 2622 struct mptcp_sock *msk = container_of(work, struct mptcp_sock, work); 2623 struct sock *sk = (struct sock *)msk; 2624 unsigned long fail_tout; 2625 int state; 2626 2627 lock_sock(sk); 2628 state = sk->sk_state; |
2629 if (unlikely(state == TCP_CLOSE)) | 2629 if (unlikely((1 << state) & (TCPF_CLOSE | TCPF_LISTEN))) |
2630 goto unlock; 2631 2632 mptcp_check_data_fin_ack(sk); 2633 2634 mptcp_check_fastclose(msk); 2635 2636 mptcp_pm_nl_work(msk); 2637 --- 1312 unchanged lines hidden --- | 2630 goto unlock; 2631 2632 mptcp_check_data_fin_ack(sk); 2633 2634 mptcp_check_fastclose(msk); 2635 2636 mptcp_pm_nl_work(msk); 2637 --- 1312 unchanged lines hidden --- |