Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Aug 2019 20:26:28 +0000 (UTC)
From:      Randall Stewart <rrs@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r350521 - head/sys/netinet
Message-ID:  <201908012026.x71KQSjT055277@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rrs
Date: Thu Aug  1 20:26:27 2019
New Revision: 350521
URL: https://svnweb.freebsd.org/changeset/base/350521

Log:
  Opps use fetchadd_u64 not long to keep old 32 bit platforms
  happy.

Modified:
  head/sys/netinet/tcp_ratelimit.c

Modified: head/sys/netinet/tcp_ratelimit.c
==============================================================================
--- head/sys/netinet/tcp_ratelimit.c	Thu Aug  1 19:45:34 2019	(r350520)
+++ head/sys/netinet/tcp_ratelimit.c	Thu Aug  1 20:26:27 2019	(r350521)
@@ -1186,7 +1186,7 @@ tcp_rel_pacing_rate(const struct tcp_hwrate_limit_tabl
 	 * in order to release our refcount.
 	 */
 	rs = __DECONST(struct tcp_rate_set *, crs);
-	pre = atomic_fetchadd_long(&rs->rs_flows_using, -1);
+	pre = atomic_fetchadd_64(&rs->rs_flows_using, -1);
 	if (pre == 1) {
 		mtx_lock(&rs_mtx);
 		/*



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