summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2012-09-06 07:03:56 +0000
committertuexen <tuexen@FreeBSD.org>2012-09-06 07:03:56 +0000
commit53b4991234ec7b7754647f1ec70e0555c8e94f2d (patch)
treef6add25e4f1ba6fc3fa087f0d9f0f8cf8dea9a28 /sys/netinet
parent0160930e18300f23b566937e2710f55d991c653b (diff)
downloadFreeBSD-src-53b4991234ec7b7754647f1ec70e0555c8e94f2d.zip
FreeBSD-src-53b4991234ec7b7754647f1ec70e0555c8e94f2d.tar.gz
Get rid of a gcc'ism.
MFC after: 10 days
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/sctp_cc_functions.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/netinet/sctp_cc_functions.c b/sys/netinet/sctp_cc_functions.c
index 807075d..d788ff2 100644
--- a/sys/netinet/sctp_cc_functions.c
+++ b/sys/netinet/sctp_cc_functions.c
@@ -1917,10 +1917,9 @@ measure_achieved_throughput(struct sctp_nets *net)
return;
}
net->cc_mod.htcp_ca.bytecount += net->net_ack;
-
- if (net->cc_mod.htcp_ca.bytecount >= net->cwnd - ((net->cc_mod.htcp_ca.alpha >> 7 ? : 1) * net->mtu)
- && now - net->cc_mod.htcp_ca.lasttime >= net->cc_mod.htcp_ca.minRTT
- && net->cc_mod.htcp_ca.minRTT > 0) {
+ if ((net->cc_mod.htcp_ca.bytecount >= net->cwnd - (((net->cc_mod.htcp_ca.alpha >> 7) ? (net->cc_mod.htcp_ca.alpha >> 7) : 1) * net->mtu)) &&
+ (now - net->cc_mod.htcp_ca.lasttime >= net->cc_mod.htcp_ca.minRTT) &&
+ (net->cc_mod.htcp_ca.minRTT > 0)) {
uint32_t cur_Bi = net->cc_mod.htcp_ca.bytecount / net->mtu * hz / (now - net->cc_mod.htcp_ca.lasttime);
if (htcp_ccount(&net->cc_mod.htcp_ca) <= 3) {
OpenPOWER on IntegriCloud