aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_vegas.c
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2014-08-30 02:32:05 -0400
committerDavid S. Miller <davem@davemloft.net>2014-09-01 21:12:45 -0400
commit688d1945bc89bd585ec67b5b83121f499e6290bb (patch)
tree3138045afe46d72e458c1cfb3dd2552b2acaf915 /net/ipv4/tcp_vegas.c
parentd09d3038a336cbab6bde616ce44266c36c214f81 (diff)
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 <stephen@networkplumber.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_vegas.c')
-rw-r--r--net/ipv4/tcp_vegas.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/ipv4/tcp_vegas.c b/net/ipv4/tcp_vegas.c
index b40ad897f945..a6afde666ab1 100644
--- a/net/ipv4/tcp_vegas.c
+++ b/net/ipv4/tcp_vegas.c
@@ -51,7 +51,6 @@ MODULE_PARM_DESC(beta, "upper bound of packets in network");
51module_param(gamma, int, 0644); 51module_param(gamma, int, 0644);
52MODULE_PARM_DESC(gamma, "limit on increase (scale by 2)"); 52MODULE_PARM_DESC(gamma, "limit on increase (scale by 2)");
53 53
54
55/* There are several situations when we must "re-start" Vegas: 54/* There are several situations when we must "re-start" Vegas:
56 * 55 *
57 * o when a connection is established 56 * o when a connection is established
@@ -133,7 +132,6 @@ EXPORT_SYMBOL_GPL(tcp_vegas_pkts_acked);
133 132
134void tcp_vegas_state(struct sock *sk, u8 ca_state) 133void tcp_vegas_state(struct sock *sk, u8 ca_state)
135{ 134{
136
137 if (ca_state == TCP_CA_Open) 135 if (ca_state == TCP_CA_Open)
138 vegas_enable(sk); 136 vegas_enable(sk);
139 else 137 else
@@ -285,7 +283,6 @@ static void tcp_vegas_cong_avoid(struct sock *sk, u32 ack, u32 acked)
285 /* Use normal slow start */ 283 /* Use normal slow start */
286 else if (tp->snd_cwnd <= tp->snd_ssthresh) 284 else if (tp->snd_cwnd <= tp->snd_ssthresh)
287 tcp_slow_start(tp, acked); 285 tcp_slow_start(tp, acked);
288
289} 286}
290 287
291/* Extract info for Tcp socket info provided via netlink. */ 288/* Extract info for Tcp socket info provided via netlink. */