X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=linux-2.6-720-undo-rttzero.patch;fp=linux-2.6-720-undo-rttzero.patch;h=526f3f5786af04795017edfbe577505e17c3ea08;hb=d3da589a1fe22f84ac03cbd189ec9027ae6366e6;hp=0000000000000000000000000000000000000000;hpb=d82ad652ce76bd9b06f92e33448f26cdb4d827f3;p=linux-2.6.git diff --git a/linux-2.6-720-undo-rttzero.patch b/linux-2.6-720-undo-rttzero.patch new file mode 100644 index 000000000..526f3f578 --- /dev/null +++ b/linux-2.6-720-undo-rttzero.patch @@ -0,0 +1,17 @@ +diff -Ndur linux-2.6.32-orig/net/ipv4/tcp_input.c linux-2.6.32-undorttzero/net/ipv4/tcp_input.c +--- linux-2.6.32-orig/net/ipv4/tcp_input.c 2013-06-05 15:47:10.551009408 -0400 ++++ linux-2.6.32-undorttzero/net/ipv4/tcp_input.c 2013-06-05 15:49:32.458996663 -0400 +@@ -5783,9 +5783,11 @@ + + /* tcp_ack considers this ACK as duplicate + * and does not calculate rtt. +- * Force it here. ++ * Fix it at least with timestamps. + */ +- tcp_ack_update_rtt(sk, 0, 0); ++ if (tp->rx_opt.saw_tstamp && ++ tp->rx_opt.rcv_tsecr && !tp->srtt) ++ tcp_ack_saw_tstamp(sk, 0); + + if (tp->rx_opt.tstamp_ok) + tp->advmss -= TCPOLEN_TSTAMP_ALIGNED;