Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/cxgbe/cxgbei/cxgbei.c
Show First 20 Lines • Show All 309 Lines • ▼ Show 20 Lines | |||||
#ifdef INVARIANTS | #ifdef INVARIANTS | ||||
toep->ulpcb2 = NULL; | toep->ulpcb2 = NULL; | ||||
#endif | #endif | ||||
return (0); | return (0); | ||||
} | } | ||||
tp = intotcpcb(inp); | tp = intotcpcb(inp); | ||||
MPASS(icp->icp_seq == tp->rcv_nxt); | MPASS(icp->icp_seq == tp->rcv_nxt); | ||||
MPASS(tp->rcv_wnd >= pdu_len); | |||||
tp->rcv_nxt += pdu_len; | tp->rcv_nxt += pdu_len; | ||||
tp->rcv_wnd -= pdu_len; | |||||
tp->t_rcvtime = ticks; | tp->t_rcvtime = ticks; | ||||
/* update rx credits */ | /* | ||||
t4_rcvd(&toep->td->tod, tp); /* XXX: sc->tom_softc.tod */ | * Don't update the window size or return credits since RX | ||||
* flow control is disabled. | |||||
*/ | |||||
so = inp->inp_socket; | so = inp->inp_socket; | ||||
sb = &so->so_rcv; | sb = &so->so_rcv; | ||||
SOCKBUF_LOCK(sb); | SOCKBUF_LOCK(sb); | ||||
icc = toep->ulpcb; | icc = toep->ulpcb; | ||||
if (__predict_false(icc == NULL || sb->sb_state & SBS_CANTRCVMORE)) { | if (__predict_false(icc == NULL || sb->sb_state & SBS_CANTRCVMORE)) { | ||||
CTR5(KTR_CXGBE, | CTR5(KTR_CXGBE, | ||||
▲ Show 20 Lines • Show All 418 Lines • Show Last 20 Lines |