projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
628174c
)
tcp: use tcp_jiffies32 in __tcp_oow_rate_limited()
author
Eric Dumazet
<
[email protected]
>
Tue, 16 May 2017 21:00:10 +0000
(14:00 -0700)
committer
David S. Miller
<
[email protected]
>
Wed, 17 May 2017 20:06:01 +0000
(16:06 -0400)
This place wants to use tcp_jiffies32, this is good enough.
Signed-off-by: Eric Dumazet <
[email protected]
>
Acked-by: Soheil Hassas Yeganeh <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/ipv4/tcp_input.c
patch
|
blob
|
history
diff --git
a/net/ipv4/tcp_input.c
b/net/ipv4/tcp_input.c
index eeb4967df25a8dc35128d0a0848b5ae7ee6d63e3..85575888365a10643e096f9e019adaa3eda87d40 100644
(file)
--- a/
net/ipv4/tcp_input.c
+++ b/
net/ipv4/tcp_input.c
@@
-3390,7
+3390,7
@@
static bool __tcp_oow_rate_limited(struct net *net, int mib_idx,
u32 *last_oow_ack_time)
{
if (*last_oow_ack_time) {
- s32 elapsed = (s32)(tcp_
time_stamp
- *last_oow_ack_time);
+ s32 elapsed = (s32)(tcp_
jiffies32
- *last_oow_ack_time);
if (0 <= elapsed && elapsed < sysctl_tcp_invalid_ratelimit) {
NET_INC_STATS(net, mib_idx);
@@
-3398,7
+3398,7
@@
static bool __tcp_oow_rate_limited(struct net *net, int mib_idx,
}
}
- *last_oow_ack_time = tcp_
time_stamp
;
+ *last_oow_ack_time = tcp_
jiffies32
;
return false; /* not rate-limited: go ahead, send dupack now! */
}