Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/cxgbe/tom/t4_cpl_io.c
Show First 20 Lines • Show All 1,531 Lines • ▼ Show 20 Lines | CTR4(KTR_CXGBE, "%s: tid %u, rx (%d bytes), inp_flags 0x%x", | ||||
__func__, tid, len, inp->inp_flags); | __func__, tid, len, inp->inp_flags); | ||||
INP_WUNLOCK(inp); | INP_WUNLOCK(inp); | ||||
m_freem(m); | m_freem(m); | ||||
return (0); | return (0); | ||||
} | } | ||||
tp = intotcpcb(inp); | tp = intotcpcb(inp); | ||||
if (__predict_false(ulp_mode(toep) == ULP_MODE_TLS && | |||||
toep->flags & TPF_TLS_RECEIVE)) { | |||||
/* Received "raw" data on a TLS socket. */ | |||||
CTR3(KTR_CXGBE, "%s: tid %u, raw TLS data (%d bytes)", | |||||
__func__, tid, len); | |||||
do_rx_data_tls(cpl, toep, m); | |||||
return (0); | |||||
} | |||||
if (__predict_false(tp->rcv_nxt != be32toh(cpl->seq))) | if (__predict_false(tp->rcv_nxt != be32toh(cpl->seq))) | ||||
ddp_placed = be32toh(cpl->seq) - tp->rcv_nxt; | ddp_placed = be32toh(cpl->seq) - tp->rcv_nxt; | ||||
tp->rcv_nxt += len; | tp->rcv_nxt += len; | ||||
if (tp->rcv_wnd < len) { | if (tp->rcv_wnd < len) { | ||||
KASSERT(ulp_mode(toep) == ULP_MODE_RDMA, | KASSERT(ulp_mode(toep) == ULP_MODE_RDMA, | ||||
("%s: negative window size", __func__)); | ("%s: negative window size", __func__)); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 747 Lines • Show Last 20 Lines |