Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/cxgbe/tom/t4_ddp.c
Show First 20 Lines • Show All 761 Lines • ▼ Show 20 Lines | KASSERT(!(toep->flags & TPF_SYNQE), | ||||
("%s: toep %p claims to be a synq entry", __func__, toep)); | ("%s: toep %p claims to be a synq entry", __func__, toep)); | ||||
vld = be32toh(cpl->ddpvld); | vld = be32toh(cpl->ddpvld); | ||||
if (__predict_false(vld & DDP_ERR)) { | if (__predict_false(vld & DDP_ERR)) { | ||||
panic("%s: DDP error 0x%x (tid %d, toep %p)", | panic("%s: DDP error 0x%x (tid %d, toep %p)", | ||||
__func__, vld, tid, toep); | __func__, vld, tid, toep); | ||||
} | } | ||||
if (toep->ulp_mode == ULP_MODE_ISCSI) { | if (ulp_mode(toep) == ULP_MODE_ISCSI) { | ||||
t4_cpl_handler[CPL_RX_ISCSI_DDP](iq, rss, m); | t4_cpl_handler[CPL_RX_ISCSI_DDP](iq, rss, m); | ||||
return (0); | return (0); | ||||
} | } | ||||
handle_ddp_data(toep, cpl->u.ddp_report, cpl->seq, be16toh(cpl->len)); | handle_ddp_data(toep, cpl->u.ddp_report, cpl->seq, be16toh(cpl->len)); | ||||
return (0); | return (0); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,167 Lines • Show Last 20 Lines |