Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next] tcp: whitespace fixes
@ 2014-08-29  7:06 Stephen Hemminger
  2014-08-29 12:27 ` Jeff Kirsher
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2014-08-29  7:06 UTC (permalink / raw)
  To: David Miller; +Cc: netdev

Fix places where there is space before tab, long lines, and
awkward if(){.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>


--- a/net/ipv4/tcp_bic.c	2014-05-05 23:44:19.000000000 -0700
+++ b/net/ipv4/tcp_bic.c	2014-08-22 17:17:51.448069718 -0700
@@ -50,7 +50,7 @@ MODULE_PARM_DESC(smooth_part, "log(B/(B*
 /* BIC TCP Parameters */
 struct bictcp {
 	u32	cnt;		/* increase cwnd by 1 after ACKs */
-	u32 	last_max_cwnd;	/* last maximum snd_cwnd */
+	u32	last_max_cwnd;	/* last maximum snd_cwnd */
 	u32	loss_cwnd;	/* congestion window at last loss */
 	u32	last_cwnd;	/* the last snd_cwnd */
 	u32	last_time;	/* time when updated last_cwnd */
@@ -103,7 +103,7 @@ static inline void bictcp_update(struct
 
 	/* binary increase */
 	if (cwnd < ca->last_max_cwnd) {
-		__u32 	dist = (ca->last_max_cwnd - cwnd)
+		__u32	dist = (ca->last_max_cwnd - cwnd)
 			/ BICTCP_B;
 
 		if (dist > max_increment)
--- a/net/ipv4/tcp_cubic.c	2014-06-16 14:48:29.000000000 -0700
+++ b/net/ipv4/tcp_cubic.c	2014-08-22 17:20:10.368073438 -0700
@@ -82,7 +82,7 @@ MODULE_PARM_DESC(hystart_ack_delta, "spa
 /* BIC TCP Parameters */
 struct bictcp {
 	u32	cnt;		/* increase cwnd by 1 after ACKs */
-	u32 	last_max_cwnd;	/* last maximum snd_cwnd */
+	u32	last_max_cwnd;	/* last maximum snd_cwnd */
 	u32	loss_cwnd;	/* congestion window at last loss */
 	u32	last_cwnd;	/* the last snd_cwnd */
 	u32	last_time;	/* time when updated last_cwnd */
@@ -263,9 +263,9 @@ static inline void bictcp_update(struct
 
 	/* c/rtt * (t-K)^3 */
 	delta = (cube_rtt_scale * offs * offs * offs) >> (10+3*BICTCP_HZ);
-	if (t < ca->bic_K)                                	/* below origin*/
+	if (t < ca->bic_K)                            /* below origin*/
 		bic_target = ca->bic_origin_point - delta;
-	else                                                	/* above origin*/
+	else                                          /* above origin*/
 		bic_target = ca->bic_origin_point + delta;
 
 	/* cubic function - calc bictcp_cnt*/
@@ -291,7 +291,7 @@ static inline void bictcp_update(struct
 			ca->tcp_cwnd++;
 		}
 
-		if (ca->tcp_cwnd > cwnd){	/* if bic is slower than tcp */
+		if (ca->tcp_cwnd > cwnd) {	/* if bic is slower than tcp */
 			delta = ca->tcp_cwnd - cwnd;
 			max_cnt = cwnd / delta;
 			if (ca->cnt > max_cnt)
@@ -452,7 +452,7 @@ static int __init cubictcp_register(void
 	 * based on SRTT of 100ms
 	 */
 
-	beta_scale = 8*(BICTCP_BETA_SCALE+beta)/ 3 / (BICTCP_BETA_SCALE - beta);
+	beta_scale = 8*(BICTCP_BETA_SCALE+beta) / 3 / (BICTCP_BETA_SCALE - beta);
 
 	cube_rtt_scale = (bic_scale * 10);	/* 1024*c/rtt */
 
--- a/net/ipv4/tcp_yeah.c	2014-05-05 23:44:19.000000000 -0700
+++ b/net/ipv4/tcp_yeah.c	2014-08-22 17:15:47.788066407 -0700
@@ -84,7 +84,7 @@ static void tcp_yeah_cong_avoid(struct s
 		/* Scalable */
 
 		tp->snd_cwnd_cnt += yeah->pkts_acked;
-		if (tp->snd_cwnd_cnt > min(tp->snd_cwnd, TCP_SCALABLE_AI_CNT)){
+		if (tp->snd_cwnd_cnt > min(tp->snd_cwnd, TCP_SCALABLE_AI_CNT)) {
 			if (tp->snd_cwnd < tp->snd_cwnd_clamp)
 				tp->snd_cwnd++;
 			tp->snd_cwnd_cnt = 0;

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-29 12:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-29  7:06 [PATCH net-next] tcp: whitespace fixes Stephen Hemminger
2014-08-29 12:27 ` Jeff Kirsher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox