]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/net/tcp.h
TCP: Increase the max_burst threshold from 3 to tp->reordering.
[karo-tx-linux.git] / include / net / tcp.h
index 4fd3eb2f8ec2c4bef73eab8ebe9866301e00832e..d69d12e3c0421356a097a22c0cfb00c70ed39508 100644 (file)
@@ -776,11 +776,14 @@ extern void tcp_enter_cwr(struct sock *sk, const int set_ssthresh);
 extern __u32 tcp_init_cwnd(struct tcp_sock *tp, struct dst_entry *dst);
 
 /* Slow start with delack produces 3 packets of burst, so that
- * it is safe "de facto".
+ * it is safe "de facto".  This will be the default - same as
+ * the default reordering threshold - but if reordering increases,
+ * we must be able to allow cwnd to burst at least this much in order
+ * to not pull it back when holes are filled.
  */
 static __inline__ __u32 tcp_max_burst(const struct tcp_sock *tp)
 {
-       return 3;
+       return tp->reordering;
 }
 
 /* Returns end sequence number of the receiver's advertised window */