Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jul 2017 21:23:09 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r321587 - head/sys/netinet/cc
Message-ID:  <201707262123.v6QLN9Fu096100@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Wed Jul 26 21:23:09 2017
New Revision: 321587
URL: https://svnweb.freebsd.org/changeset/base/321587

Log:
  cc_cubic: restore braces around if-condition block
  
  r307901 was reverted in r321480, restoring an incorrect block
  delimitation bug present in the original cc_cubic commit. Restore
  only the bugfix (brace addition) from r307901.
  
  CID:		1090182
  Approved by:	sbruno

Modified:
  head/sys/netinet/cc/cc_cubic.c

Modified: head/sys/netinet/cc/cc_cubic.c
==============================================================================
--- head/sys/netinet/cc/cc_cubic.c	Wed Jul 26 21:20:57 2017	(r321586)
+++ head/sys/netinet/cc/cc_cubic.c	Wed Jul 26 21:23:09 2017	(r321587)
@@ -261,9 +261,10 @@ cubic_cong_signal(struct cc_var *ccv, uint32_t type)
 		 * chance the first one is a false alarm and may not indicate
 		 * congestion.
 		 */
-		if (CCV(ccv, t_rxtshift) >= 2)
+		if (CCV(ccv, t_rxtshift) >= 2) {
 			cubic_data->num_cong_events++;
 			cubic_data->t_last_cong = ticks;
+		}
 		break;
 	}
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201707262123.v6QLN9Fu096100>