Skip to content

Commit 047558c

Browse files
author
Paolo Abeni
committed
Merge branch 'mptcp-blackhole-only-if-1st-syn-retrans-w-o-mpc-is-accepted'
Matthieu Baerts says: ==================== mptcp: blackhole only if 1st SYN retrans w/o MPC is accepted Here are two small fixes for issues introduced in v6.12. - Patch 1: reset the mpc_drop mark for other SYN retransmits, to only consider an MPTCP blackhole when the first SYN retransmitted without the MPTCP options is accepted, as initially intended. - Patch 2: also mention in the doc that the blackhole_timeout sysctl knob is per-netns, like all the others. Signed-off-by: Matthieu Baerts (NGI0) <[email protected]> ==================== Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
2 parents 3effcc0 + 18da4b5 commit 047558c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Documentation/networking/mptcp-sysctl.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ blackhole_timeout - INTEGER (seconds)
4141
MPTCP is re-enabled and will reset to the initial value when the
4242
blackhole issue goes away.
4343

44-
0 to disable the blackhole detection.
44+
0 to disable the blackhole detection. This is a per-namespace sysctl.
4545

4646
Default: 3600
4747

net/mptcp/ctrl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,9 +418,9 @@ void mptcp_active_detect_blackhole(struct sock *ssk, bool expired)
418418
MPTCP_INC_STATS(net, MPTCP_MIB_MPCAPABLEACTIVEDROP);
419419
subflow->mpc_drop = 1;
420420
mptcp_subflow_early_fallback(mptcp_sk(subflow->conn), subflow);
421-
} else {
422-
subflow->mpc_drop = 0;
423421
}
422+
} else if (ssk->sk_state == TCP_SYN_SENT) {
423+
subflow->mpc_drop = 0;
424424
}
425425
}
426426

0 commit comments

Comments
 (0)