Skip to content

Commit 067a0b3

Browse files
mjmartineaudavem330
authored andcommitted
mptcp: Only use subflow EOF signaling on fallback connections
The MPTCP state machine handles disconnections on non-fallback connections, but the mptcp_sock still needs to get notified when fallback subflows disconnect. Signed-off-by: Mat Martineau <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 43b54c6 commit 067a0b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

net/mptcp/subflow.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,8 @@ static void subflow_state_change(struct sock *sk)
11591159
if (mptcp_subflow_data_available(sk))
11601160
mptcp_data_ready(parent, sk);
11611161

1162-
if (!(parent->sk_shutdown & RCV_SHUTDOWN) &&
1162+
if (__mptcp_check_fallback(mptcp_sk(parent)) &&
1163+
!(parent->sk_shutdown & RCV_SHUTDOWN) &&
11631164
!subflow->rx_eof && subflow_is_done(sk)) {
11641165
subflow->rx_eof = 1;
11651166
mptcp_subflow_eof(parent);

0 commit comments

Comments
 (0)