projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tcp: do not slow start when cwnd equals ssthresh
[firefly-linux-kernel-4.4.55.git]
/
include
/
net
/
tcp.h
diff --git
a/include/net/tcp.h
b/include/net/tcp.h
index dba22fc1b065a70b9604872b1460c7b2ea24db1d..364426a2be5a0f7f0a2e6daaf6ce9b9a2f3e3304 100644
(file)
--- a/
include/net/tcp.h
+++ b/
include/net/tcp.h
@@
-991,7
+991,7
@@
static inline unsigned int tcp_packets_in_flight(const struct tcp_sock *tp)
static inline bool tcp_in_slow_start(const struct tcp_sock *tp)
{
- return tp->snd_cwnd <
=
tp->snd_ssthresh;
+ return tp->snd_cwnd < tp->snd_ssthresh;
}
static inline bool tcp_in_initial_slowstart(const struct tcp_sock *tp)