Lines Matching refs:credit
36 * If the credit is below the drop threshold, the packet is dropped. If it
64 int credit;
95 credit = qdp->credit;
99 * the new credit, so we should not add it ourselves
103 new_credit = credit + CREDIT_PER_NS(delta, qdp->rate);
105 credit = MAX_CREDIT;
107 credit = new_credit;
109 credit -= len;
110 qdp->credit = credit;
124 if (credit < -DROP_THRESH ||
125 (len > LARGE_PKT_THRESH && credit < -LARGE_PKT_DROP_THRESH)) {
132 } else if (credit < 0) {
135 if (credit < -MARK_THRESH)
151 if (-credit >= MARK_THRESH +
168 cwr_flag, ecn_ce_flag, &pkti, credit);
171 __sync_add_and_fetch(&(qdp->credit), len);