Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/cxgbe/tom/t4_tls.c
Show First 20 Lines • Show All 2,039 Lines • ▼ Show 20 Lines | #endif | ||||
tp = intotcpcb(inp); | tp = intotcpcb(inp); | ||||
#ifdef VERBOSE_TRACES | #ifdef VERBOSE_TRACES | ||||
CTR6(KTR_CXGBE, "%s: tid %u PDU len %d len %d seq %u, rcv_nxt %u", | CTR6(KTR_CXGBE, "%s: tid %u PDU len %d len %d seq %u, rcv_nxt %u", | ||||
__func__, tid, pdu_length, len, be32toh(cpl->seq), tp->rcv_nxt); | __func__, tid, pdu_length, len, be32toh(cpl->seq), tp->rcv_nxt); | ||||
#endif | #endif | ||||
tp->rcv_nxt += pdu_length; | tp->rcv_nxt += pdu_length; | ||||
if (tp->rcv_wnd < pdu_length) { | KASSERT(tp->rcv_wnd >= pdu_length, | ||||
toep->tls.rcv_over += pdu_length - tp->rcv_wnd; | ("%s: negative window size", __func__)); | ||||
tp->rcv_wnd = 0; | |||||
} else | |||||
tp->rcv_wnd -= pdu_length; | tp->rcv_wnd -= pdu_length; | ||||
/* XXX: Not sure what to do about urgent data. */ | /* XXX: Not sure what to do about urgent data. */ | ||||
/* | /* | ||||
* The payload of this CPL is the TLS header followed by | * The payload of this CPL is the TLS header followed by | ||||
* additional fields. | * additional fields. | ||||
*/ | */ | ||||
KASSERT(m->m_len >= sizeof(*tls_hdr_pkt), | KASSERT(m->m_len >= sizeof(*tls_hdr_pkt), | ||||
▲ Show 20 Lines • Show All 182 Lines • Show Last 20 Lines |