Lines Matching +full:layer +full:- +full:depth
1 /*-
2 * Copyright (C) 1997-2003
56 int altq_flags; /* flags (e.g. ready, in-use) */
57 void *altq_disc; /* for discipline-specific use */
76 * pattr_class is a discipline-dependent scheduling class that is
81 * layer output routines usually don't use m_pullup. link-level
102 * a token-bucket regulator limits the rate that a network driver can
107 * a token-bucket is used to control the burst size in a device
112 int64_t tbr_depth; /* (scaled) token bucket depth */
119 needed for poll-and-dequeue */
139 #define ALTQ_IS_READY(ifq) ((ifq)->altq_flags & ALTQF_READY)
141 #define ALTQ_IS_ENABLED(ifq) ((ifq)->altq_flags & ALTQF_ENABLED)
145 #define ALTQ_IS_CNDTNING(ifq) ((ifq)->altq_flags & ALTQF_CNDTNING)
147 #define ALTQ_SET_CNDTNING(ifq) ((ifq)->altq_flags |= ALTQF_CNDTNING)
148 #define ALTQ_CLEAR_CNDTNING(ifq) ((ifq)->altq_flags &= ~ALTQF_CNDTNING)
149 #define ALTQ_IS_ATTACHED(ifq) ((ifq)->altq_disc != NULL)
152 (err) = (*(ifq)->altq_enqueue)((ifq),(m),(pa))
154 (m) = (*(ifq)->altq_dequeue)((ifq), ALTDQ_REMOVE)
156 (m) = (*(ifq)->altq_dequeue)((ifq), ALTDQ_POLL)
158 (void)(*(ifq)->altq_request)((ifq), ALTRQ_PURGE, (void *)0)
159 #define ALTQ_IS_EMPTY(ifq) ((ifq)->ifq_len == 0)
160 #define TBR_IS_ENABLED(ifq) ((ifq)->altq_tbr != NULL)