Browse files

mptcp: Do not schedule on tsq-throttled subflows

The default scheduler expects segments to exit as soon as possible. If
the subflow is blocked by tsq, we should choose the next one.

This patch adds the necessary limitation to mptcp_is_available.

Signed-off-by: Christoph Paasch <>
  • Loading branch information...
Christoph Paasch
Christoph Paasch committed Jul 18, 2014
1 parent 7e583c0 commit 5c278893b37fe48c66ff226793607687b8482ba9
Showing with 6 additions and 0 deletions.
  1. +6 −0 net/mptcp/mptcp_sched.c
@@ -49,6 +49,12 @@ static int mptcp_is_available(struct sock *sk, struct sk_buff *skb,
return 0;
/* If TSQ is already throttling us, do not send on this subflow. When
* TSQ gets cleared the subflow becomes eligible again.
if (test_bit(TSQ_THROTTLED, &tp->tsq_flags))
return 0;
if (!tcp_cwnd_test(tp, skb))
return 0;

0 comments on commit 5c27889

Please sign in to comment.