Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet/tcp_output.c
Show First 20 Lines • Show All 414 Lines • ▼ Show 20 Lines | else { | ||||
* We explicitly check for len > 0 here (although it | * We explicitly check for len > 0 here (although it | ||||
* isn't really necessary), to work around a gcc | * isn't really necessary), to work around a gcc | ||||
* optimization issue - to force gcc to compute | * optimization issue - to force gcc to compute | ||||
* len above. Without this check, the computation | * len above. Without this check, the computation | ||||
* of len is bungled by the optimizer. | * of len is bungled by the optimizer. | ||||
*/ | */ | ||||
if (len > 0) { | if (len > 0) { | ||||
cwin = tp->snd_cwnd - | cwin = tp->snd_cwnd - | ||||
(tp->snd_nxt - tp->sack_newdata) - | (tp->snd_nxt - tp->snd_recover) - | ||||
sack_bytes_rxmt; | sack_bytes_rxmt; | ||||
if (cwin < 0) | if (cwin < 0) | ||||
cwin = 0; | cwin = 0; | ||||
len = imin(len, cwin); | len = imin(len, cwin); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,673 Lines • Show Last 20 Lines |