diff options
| author | stephen hemminger <[email protected]> | 2014-08-30 06:32:05 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2014-09-02 01:12:45 +0000 |
| commit | 688d1945bc89bd585ec67b5b83121f499e6290bb (patch) | |
| tree | 3138045afe46d72e458c1cfb3dd2552b2acaf915 /net/ipv4/tcp_scalable.c | |
| parent | net: systemport: tell RXCHK if we are using Broadcom tags (diff) | |
| download | kernel-688d1945bc89bd585ec67b5b83121f499e6290bb.tar.gz kernel-688d1945bc89bd585ec67b5b83121f499e6290bb.zip | |
tcp: whitespace fixes
Fix places where there is space before tab, long lines, and
awkward if(){, double spacing etc. Add blank line after declaration/initialization.
Signed-off-by: Stephen Hemminger <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_scalable.c')
| -rw-r--r-- | net/ipv4/tcp_scalable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_scalable.c b/net/ipv4/tcp_scalable.c index 8250949b8853..6824afb65d93 100644 --- a/net/ipv4/tcp_scalable.c +++ b/net/ipv4/tcp_scalable.c @@ -31,10 +31,10 @@ static void tcp_scalable_cong_avoid(struct sock *sk, u32 ack, u32 acked) static u32 tcp_scalable_ssthresh(struct sock *sk) { const struct tcp_sock *tp = tcp_sk(sk); + return max(tp->snd_cwnd - (tp->snd_cwnd>>TCP_SCALABLE_MD_SCALE), 2U); } - static struct tcp_congestion_ops tcp_scalable __read_mostly = { .ssthresh = tcp_scalable_ssthresh, .cong_avoid = tcp_scalable_cong_avoid, |
