Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
Revert "mptcp: sched: avoid calling tcp_current_mss() twice"
Browse files Browse the repository at this point in the history
This reverts commit 8167963.

It has been reported that the commit introducing the issue fixed by this
patch is causing issues.

Best to revert this if it is causing more issues than what it solves on
these old kernels.

Signed-off-by: Matthieu Baerts <[email protected]>
  • Loading branch information
matttbe committed Jul 7, 2021
1 parent 8a137af commit 7aab281
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/mptcp/mptcp_sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ static bool mptcp_is_temp_unavailable(struct sock *sk,
mss_now = tcp_current_mss(sk);

/* Not even a single spot in the cwnd */
if (mptcp_subflow_queued(sk, tcp_tso_segs(sk, mss_now)) >= tp->snd_cwnd)
if (mptcp_subflow_queued(sk, tcp_tso_segs(sk, tcp_current_mss(sk)))
>= tp->snd_cwnd)
return true;

if (zero_wnd_test && !before(tp->write_seq, tcp_wnd_end(tp)))
Expand Down

0 comments on commit 7aab281

Please sign in to comment.