Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_stacks/rack.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 17,133 Lines • ▼ Show 20 Lines | KASSERT(SEQ_LEQ(tp->snd_una, rsm->r_start), | ||||
("%s:%d: r.start:%u < SND.UNA:%u; tp:%p, rack:%p, rsm:%p", | ("%s:%d: r.start:%u < SND.UNA:%u; tp:%p, rack:%p, rsm:%p", | ||||
__func__, __LINE__, | __func__, __LINE__, | ||||
rsm->r_start, tp->snd_una, tp, rack, rsm)); | rsm->r_start, tp->snd_una, tp, rack, rsm)); | ||||
sb_offset = rsm->r_start - tp->snd_una; | sb_offset = rsm->r_start - tp->snd_una; | ||||
cwin = min(tp->snd_wnd, tlen); | cwin = min(tp->snd_wnd, tlen); | ||||
len = cwin; | len = cwin; | ||||
} | } | ||||
if (rack->r_must_retran && | if (rack->r_must_retran && | ||||
(doing_tlp == 0) && | |||||
(rsm == NULL)) { | (rsm == NULL)) { | ||||
/* | /* | ||||
* Non-Sack and we had a RTO or Sack/non-Sack and a | * Non-Sack and we had a RTO or Sack/non-Sack and a | ||||
* MTU change, we need to retransmit until we reach | * MTU change, we need to retransmit until we reach | ||||
* the former snd_max (rack->r_ctl.rc_snd_max_at_rto). | * the former snd_max (rack->r_ctl.rc_snd_max_at_rto). | ||||
*/ | */ | ||||
if (SEQ_GT(tp->snd_max, tp->snd_una)) { | if (SEQ_GT(tp->snd_max, tp->snd_una)) { | ||||
int sendwin, flight; | int sendwin, flight; | ||||
▲ Show 20 Lines • Show All 3,867 Lines • Show Last 20 Lines |