Lines Matching +full:current +full:- +full:limiting

120 since a non-empty queue could return
122 under rate-limiting.
141 The purge operation is needed since a non-work conserving queue cannot be
150 if the queuing discipline is non-work conserving.
154 .Fa ifq->ifq_drv_maxlen
164 even for a non-empty queue.
225 increment or decrement the current queue length in packets.
249 .Bd -literal
250 ##old-style## ##new-style##
268 .Bd -literal
269 ##old-style## ##new-style##
283 .Bd -literal
297 .Bd -literal
314 .Bl -hyphen -compact
348 .Bd -literal
349 ##old-style## ##new-style##
356 | mflags = m->m_flags;
357 | len = m->m_pkthdr.len;
359 if (IF_QFULL(&ifp->if_snd)) { | IFQ_ENQUEUE(&ifp->if_snd, m,
361 IF_DROP(&ifp->if_snd); | if (error != 0) {
365 IF_ENQUEUE(&ifp->if_snd, m); |
366 ifp->if_obytes += | ifp->if_obytes += len;
367 m->m_pkthdr.len; |
368 if (m->m_flags & M_MCAST) | if (mflags & M_MCAST)
369 ifp->if_omcasts++; | ifp->if_omcasts++;
371 if ((ifp->if_flags & IFF_OACTIVE) | if ((ifp->if_flags & IFF_OACTIVE)
373 (*ifp->if_start)(ifp); | (*ifp->if_start)(ifp);
399 .Bd -literal
400 ##old-style## ##new-style##
402 if (ifp->if_snd.ifq_head != NULL) | if (!IFQ_IS_EMPTY(&ifp->if_snd))
414 if the queue is under rate-limiting.
430 due to rate-limiting.
431 .Bd -literal
432 ##old-style## ##new-style##
434 IF_DEQUEUE(&ifp->if_snd, m); | IFQ_DEQUEUE(&ifp->if_snd, m);
442 .Ss Poll-and-dequeue operation
448 .Bd -literal
449 ##old-style## ##new-style##
451 | IFQ_LOCK(&ifp->if_snd);
452 m = ifp->if_snd.ifq_head; | IFQ_POLL_NOLOCK(&ifp->if_snd, m);
457 | IFQ_UNLOCK(&ifp->if_snd);
460 IF_DEQUEUE(&ifp->if_snd, m); | IFQ_DEQUEUE_NOLOCK(&ifp->if_snd, m);
461 | IFQ_UNLOCK(&ifp->if_snd);
485 You have to convert the logic into poll-and-dequeue.
486 .Bd -literal
487 ##old-style## ##new-style##
489 | IFQ_LOCK(&ifp->if_snd);
490 IF_DEQUEUE(&ifp->if_snd, m); | IFQ_POLL_NOLOCK(&ifp->if_snd, m);
494 IF_PREPEND(&ifp->if_snd, m); | IFQ_UNLOCK(&ifp->if_snd);
502 | IFQ_DEQUEUE_NOLOCK(&ifp->if_snd, m);
503 | IFQ_UNLOCK(&ifp->if_snd);
513 Note that a non-work conserving queue cannot be emptied by a dequeue loop.
514 .Bd -literal
515 ##old-style## ##new-style##
517 while (ifp->if_snd.ifq_head != NULL) {| IFQ_PURGE(&ifp->if_snd);
518 IF_DEQUEUE(&ifp->if_snd, m); |
531 .Bd -literal
532 ##old-style## ##new-style##
534 if (ifp->if_snd.ifq_head != NULL) | if (!IFQ_DRV_IS_EMPTY(&ifp->if_snd))
558 (This is used to distinguish new-style drivers.)
559 .Bd -literal
560 ##old-style## ##new-style##
562 ifp->if_snd.ifq_maxlen = qsize; | IFQ_SET_MAXLEN(&ifp->if_snd, qsize);
563 | ifp->if_snd.ifq_drv_maxlen = qsize;
564 | IFQ_SET_READY(&ifp->if_snd);
570 .Bd -literal
571 ##old-style## ##new-style##
573 IF_DROP(&ifp->if_snd); | IFQ_INC_DROPS(&ifp->if_snd);
575 ifp->if_snd.ifq_len++; | IFQ_INC_LEN(&ifp->if_snd);
577 ifp->if_snd.ifq_len--; | IFQ_DEC_LEN(&ifp->if_snd);