Skip to content

Commit 2863085

Browse files
edumazetZhengShunQian
authored andcommitted
tcp: do not force quickack when receiving out-of-order packets
[ Upstream commit a389363 ] As explained in commit 9f9843a ("tcp: properly handle stretch acks in slow start"), TCP stacks have to consider how many packets are acknowledged in one single ACK, because of GRO, but also because of ACK compression or losses. We plan to add SACK compression in the following patch, we must therefore not call tcp_enter_quickack_mode() Signed-off-by: Eric Dumazet <[email protected]> Acked-by: Neal Cardwell <[email protected]> Acked-by: Soheil Hassas Yeganeh <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 3b60400 commit 2863085

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

net/ipv4/tcp_input.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4650,8 +4650,6 @@ static void tcp_data_queue(struct sock *sk, struct sk_buff *skb)
46504650
if (!before(TCP_SKB_CB(skb)->seq, tp->rcv_nxt + tcp_receive_window(tp)))
46514651
goto out_of_window;
46524652

4653-
tcp_enter_quickack_mode(sk);
4654-
46554653
if (before(TCP_SKB_CB(skb)->seq, tp->rcv_nxt)) {
46564654
/* Partial packet, seq < rcv_next < end_seq */
46574655
SOCK_DEBUG(sk, "partial packet: rcv_next %X seq %X - %X\n",

0 commit comments

Comments
 (0)