Home | History | Annotate | Download | only in netinet

Lines Matching refs:bw_meter

234 static void free_bw_list(struct bw_meter *);
237 static void bw_meter_receive_packet(struct bw_meter *, int , struct timeval *);
238 static void bw_meter_prepare_upcall(struct bw_meter *, struct timeval *);
240 static void schedule_bw_meter(struct bw_meter *, struct timeval *);
241 static void unschedule_bw_meter(struct bw_meter *);
277 static struct bw_meter *bw_meter_timers[BW_METER_BUCKETS];
1230 * free the bw_meter entries
1544 * free the bw_meter entries
1547 struct bw_meter *x = rt->mfc_bw_meter;
1709 struct bw_meter *x;
2167 * Add a bw_meter entry
2177 struct bw_meter *x;
2199 * Find if we have already same bw_meter entry
2218 /* Allocate the new bw_meter entry */
2225 /* Set the new bw_meter entry */
2237 /* Add the new bw_meter entry to the front of entries for this MFC */
2248 free_bw_list(struct bw_meter *list)
2251 struct bw_meter *x = list;
2260 * Delete one or multiple bw_meter entries
2267 struct bw_meter *x;
2280 * Delete all bw_meter entries for this mfc
2282 struct bw_meter *list;
2289 } else { /* Delete a single bw_meter entry */
2290 struct bw_meter *prev;
2295 /* Find the bw_meter entry to delete */
2313 /* Free the bw_meter entry */
2328 bw_meter_receive_packet(struct bw_meter *x, int plen, struct timeval *nowp)
2337 * Processing for ">=" type of bw_meter entry
2340 /* Reset the bw_meter entry */
2366 * Processing for "<=" type of bw_meter entry
2371 * scanning for "<=" type of bw_meter entries, so test now
2381 /* Reschedule the bw_meter entry */
2418 bw_meter_prepare_upcall(struct bw_meter *x, struct timeval *nowp)
2512 * Compute the timeout hash value for the bw_meter entries
2514 #define BW_METER_TIMEHASH(bw_meter, hash) \
2516 struct timeval next_timeval = (bw_meter)->bm_start_time; \
2517 BW_TIMEVALADD(&next_timeval, &(bw_meter)->bm_threshold.b_time); \
2525 * Schedule a timer to process periodically bw_meter entry of type "<="
2529 schedule_bw_meter(struct bw_meter *x, struct timeval *nowp)
2537 * Reset the bw_meter entry
2554 * Unschedule the periodic timer that processes bw_meter entry of type "<="
2558 unschedule_bw_meter(struct bw_meter *x)
2561 struct bw_meter *prev, *tmp;
2579 panic("unschedule_bw_meter: bw_meter entry not found");
2591 * Process all "<=" type of bw_meter that should be processed now,
2620 * Process all bins of bw_meter entries from the one after the last
2625 struct bw_meter *x, *tmp_list;
2630 /* Disconnect the list of bw_meter entries from the bin */
2634 /* Process the list of bw_meter entries */
2704 * table for processing all "<=" bw_meter entries.