Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/cxgbe/tom/t4_cpl_io.c
Show First 20 Lines • Show All 1,086 Lines • ▼ Show 20 Lines | while ((sndptr = mbufq_first(pduq)) != NULL) { | ||||
txsd->tx_credits = credits; | txsd->tx_credits = credits; | ||||
txsd++; | txsd++; | ||||
if (__predict_false(++toep->txsd_pidx == toep->txsd_total)) { | if (__predict_false(++toep->txsd_pidx == toep->txsd_total)) { | ||||
toep->txsd_pidx = 0; | toep->txsd_pidx = 0; | ||||
txsd = &toep->txsd[0]; | txsd = &toep->txsd[0]; | ||||
} | } | ||||
toep->txsd_avail--; | toep->txsd_avail--; | ||||
counter_u64_add(toep->ofld_txq->tx_iscsi_pdus, 1); | |||||
counter_u64_add(toep->ofld_txq->tx_iscsi_octets, plen); | |||||
t4_l2t_send(sc, wr, toep->l2te); | t4_l2t_send(sc, wr, toep->l2te); | ||||
} | } | ||||
/* Send a FIN if requested, but only if there are no more PDUs to send */ | /* Send a FIN if requested, but only if there are no more PDUs to send */ | ||||
if (mbufq_first(pduq) == NULL && toep->flags & TPF_SEND_FIN) | if (mbufq_first(pduq) == NULL && toep->flags & TPF_SEND_FIN) | ||||
t4_close_conn(sc, toep); | t4_close_conn(sc, toep); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,211 Lines • Show Last 20 Lines |