projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c873879
)
[TCP]: Do receiver-side SWS avoidance for rcvbuf < MSS.
author
John Heffner
<jheffner@psc.edu>
Mon, 2 Apr 2007 20:56:32 +0000
(13:56 -0700)
committer
David S. Miller
<davem@davemloft.net>
Mon, 2 Apr 2007 20:56:32 +0000
(13:56 -0700)
Signed-off-by: John Heffner <jheffner@psc.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/tcp_output.c
b/net/ipv4/tcp_output.c
index dc151139b5afbe642a2b9245f3795dc5d688f0f1..688b95594f2e9de0f2724889855e470ce6aab376 100644
(file)
--- a/
net/ipv4/tcp_output.c
+++ b/
net/ipv4/tcp_output.c
@@
-1607,6
+1607,9
@@
u32 __tcp_select_window(struct sock *sk)
*/
if (window <= free_space - mss || window > free_space)
window = (free_space/mss)*mss;
+ else if (mss == full_space &&
+ free_space > window + full_space/2)
+ window = free_space;
}
return window;