Fix no_global_constructors in congestion_controller/bbr.

Bug: webrtc:9693
Change-Id: I47eb1b27adb0fd40e7955e477fa31cdc462891cd
Reviewed-on: https://webrtc-review.googlesource.com/98581
Reviewed-by: Sebastian Jansson <srte@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24608}
This commit is contained in:
Mirko Bonadei
2018-09-06 15:10:35 +02:00
committed by Commit Bot
parent 50cfab7d84
commit 59dd972e37
2 changed files with 3 additions and 4 deletions

View File

@ -23,7 +23,6 @@ rtc_static_library("bbr") {
rtc_source_set("bbr_controller") { rtc_source_set("bbr_controller") {
visibility = [ ":*" ] visibility = [ ":*" ]
configs += [ "../../..:no_global_constructors" ]
sources = [ sources = [
"bbr_network_controller.cc", "bbr_network_controller.cc",
"bbr_network_controller.h", "bbr_network_controller.h",

View File

@ -35,13 +35,13 @@ const double kProbeBWCongestionWindowGain = 2.0f;
// minus the IP and UDP headers. IPv6 has a 40 byte header, UDP adds an // minus the IP and UDP headers. IPv6 has a 40 byte header, UDP adds an
// additional 8 bytes. This is a total overhead of 48 bytes. Ethernet's // additional 8 bytes. This is a total overhead of 48 bytes. Ethernet's
// max packet size is 1500 bytes, 1500 - 48 = 1452. // max packet size is 1500 bytes, 1500 - 48 = 1452.
const DataSize kMaxPacketSize = DataSize::bytes(1452); const DataSize kMaxPacketSize = DataSize::Bytes<1452>();
// Default maximum packet size used in the Linux TCP implementation. // Default maximum packet size used in the Linux TCP implementation.
// Used in QUIC for congestion window computations in bytes. // Used in QUIC for congestion window computations in bytes.
const DataSize kDefaultTCPMSS = DataSize::bytes(1460); constexpr DataSize kDefaultTCPMSS = DataSize::Bytes<1460>();
// Constants based on TCP defaults. // Constants based on TCP defaults.
const DataSize kMaxSegmentSize = kDefaultTCPMSS; constexpr DataSize kMaxSegmentSize = kDefaultTCPMSS;
// The gain used for the slow start, equal to 2/ln(2). // The gain used for the slow start, equal to 2/ln(2).
const double kHighGain = 2.885f; const double kHighGain = 2.885f;