projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[TCP]: Congestion control API update.
[powerpc.git]
/
net
/
ipv4
/
tcp_yeah.h
diff --git
a/net/ipv4/tcp_yeah.h
b/net/ipv4/tcp_yeah.h
index
a62d820
..
33ad538
100644
(file)
--- a/
net/ipv4/tcp_yeah.h
+++ b/
net/ipv4/tcp_yeah.h
@@
-81,10
+81,13
@@
static void tcp_vegas_state(struct sock *sk, u8 ca_state)
* o min-filter RTT samples from a much longer window (forever for now)
* to find the propagation delay (baseRTT)
*/
* o min-filter RTT samples from a much longer window (forever for now)
* to find the propagation delay (baseRTT)
*/
-static void tcp_vegas_
rtt_calc(struct sock *sk, u32 usrt
t)
+static void tcp_vegas_
pkts_acked(struct sock *sk, u32 cnt, ktime_t las
t)
{
struct vegas *vegas = inet_csk_ca(sk);
{
struct vegas *vegas = inet_csk_ca(sk);
- u32 vrtt = usrtt + 1; /* Never allow zero rtt or baseRTT */
+ u32 vrtt;
+
+ /* Never allow zero rtt or baseRTT */
+ vrtt = (ktime_to_ns(net_timedelta(last)) / NSEC_PER_USEC) + 1;
/* Filter to find propagation delay: */
if (vrtt < vegas->baseRTT)
/* Filter to find propagation delay: */
if (vrtt < vegas->baseRTT)