]> git.baikalelectronics.ru Git - kernel.git/commit
[TCP]: Congestion control API RTT sampling fix
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Fri, 15 Jun 2007 22:08:43 +0000 (15:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Jun 2007 22:08:43 +0000 (15:08 -0700)
commitef488df63add46adfc6d841e5dbe19b36170eb6b
tree45078d076bcd952d8820c590653939b312d06ac2
parent3b944e9c3baf5e3ca296e6c42c0fa9b3bf62ec76
[TCP]: Congestion control API RTT sampling fix

Commit 06209e8218a03168148d788b3818254ff79cd14f broke RTT
sampling of congestion control modules. Inaccurate timestamps
could be fed to them without providing any way for them to
identify such cases. Previously RTT sampler was called only if
FLAG_RETRANS_DATA_ACKED was not set filtering inaccurate
timestamps nicely. In addition, the new behavior could give an
invalid timestamp (zero) to RTT sampler if only skbs with
TCPCB_RETRANS were ACKed. This solves both problems.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ktime.h
include/linux/skbuff.h
net/ipv4/tcp_illinois.c
net/ipv4/tcp_input.c
net/ipv4/tcp_lp.c
net/ipv4/tcp_vegas.c
net/ipv4/tcp_veno.c