Message ID | 20250129-net-mptcp-blackhole-fix-v1-1-afe88e5a6d2c@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Commit | e598d8981fd34470b78a1ae777dbf131b15d5bf2 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | mptcp: blackhole only if 1st SYN retrans w/o MPC is accepted | expand |
diff --git a/net/mptcp/ctrl.c b/net/mptcp/ctrl.c index 3999e0ba2c35b50c36ce32277e0b8bfb24197946..2dd81e6c26bdb5220abed68e26d70d2dc3ab14fb 100644 --- a/net/mptcp/ctrl.c +++ b/net/mptcp/ctrl.c @@ -418,9 +418,9 @@ void mptcp_active_detect_blackhole(struct sock *ssk, bool expired) MPTCP_INC_STATS(net, MPTCP_MIB_MPCAPABLEACTIVEDROP); subflow->mpc_drop = 1; mptcp_subflow_early_fallback(mptcp_sk(subflow->conn), subflow); - } else { - subflow->mpc_drop = 0; } + } else if (ssk->sk_state == TCP_SYN_SENT) { + subflow->mpc_drop = 0; } }