]> Pileus Git - ~andy/linux/blobdiff - net/ipv4/tcp.c
tcp: tsq: restore minimal amount of queueing
[~andy/linux] / net / ipv4 / tcp.c
index 8e8529d3c8c92a4473a3ed9fd8db876ca83533bd..3dc0c6cf02a896e66071cd5f66b0a93f0dd3fc06 100644 (file)
@@ -808,12 +808,6 @@ static unsigned int tcp_xmit_size_goal(struct sock *sk, u32 mss_now,
                xmit_size_goal = min_t(u32, gso_size,
                                       sk->sk_gso_max_size - 1 - hlen);
 
-               /* TSQ : try to have at least two segments in flight
-                * (one in NIC TX ring, another in Qdisc)
-                */
-               xmit_size_goal = min_t(u32, xmit_size_goal,
-                                      sysctl_tcp_limit_output_bytes >> 1);
-
                xmit_size_goal = tcp_bound_to_half_wnd(tp, xmit_size_goal);
 
                /* We try hard to avoid divides here */