Lines Matching refs:sfb

199 static struct zone *sfb_zone;		/* zone for sfb */
208 static u_int32_t sfb_random(struct sfb *);
209 static struct mbuf *sfb_getq_flow(struct sfb *, class_queue_t *, u_int32_t,
211 static void sfb_resetq(struct sfb *, cqev_t);
212 static void sfb_calc_holdtime(struct sfb *, u_int64_t);
213 static void sfb_calc_pboxtime(struct sfb *, u_int64_t);
214 static void sfb_calc_hinterval(struct sfb *, u_int64_t *);
215 static void sfb_swap_bins(struct sfb *, u_int32_t);
216 static inline int sfb_pcheck(struct sfb *, struct pkthdr *);
217 static int sfb_penalize(struct sfb *, struct pkthdr *, struct timespec *);
218 static void sfb_adjust_bin(struct sfb *, struct sfbbinstats *,
220 static void sfb_decrement_bin(struct sfb *, struct sfbbinstats *,
222 static void sfb_increment_bin(struct sfb *, struct sfbbinstats *,
224 static inline void sfb_dq_update_bins(struct sfb *, struct pkthdr *,
226 static inline void sfb_eq_update_bins(struct sfb *, struct pkthdr *);
227 static int sfb_drop_early(struct sfb *, struct pkthdr *, u_int16_t *,
229 static boolean_t sfb_bin_addfcentry(struct sfb *, struct pkthdr *);
230 static void sfb_fclist_append(struct sfb *, struct sfb_fcl *);
231 static void sfb_fclists_clean(struct sfb *sp);
233 SYSCTL_NODE(_net_classq, OID_AUTO, sfb, CTLFLAG_RW|CTLFLAG_LOCKED, 0, "SFB");
288 sfb_size = sizeof (struct sfb);
298 sfb_bins_size = sizeof (*((struct sfb *)0)->sfb_bins);
308 sfb_fcl_size = sizeof (*((struct sfb *)0)->sfb_fc_lists);
320 sfb_random(struct sfb *sp)
327 sfb_calc_holdtime(struct sfb *sp, u_int64_t outbw)
350 sfb_calc_pboxtime(struct sfb *sp, u_int64_t outbw)
374 sfb_calc_hinterval(struct sfb *sp, u_int64_t *t)
398 * sfb support routines
400 struct sfb *
403 struct sfb *sp;
451 sfb_fclist_append(struct sfb *sp, struct sfb_fcl *fcl)
464 sfb_fclists_clean(struct sfb *sp)
477 sfb_destroy(struct sfb *sp)
492 sfb_resetq(struct sfb *sp, cqev_t ev)
539 sfb_getstats(struct sfb *sp, struct sfb_stats *sps)
561 sfb_swap_bins(struct sfb *sp, u_int32_t len)
616 sfb_pcheck(struct sfb *sp, struct pkthdr *pkt)
655 sfb_penalize(struct sfb *sp, struct pkthdr *pkt, struct timespec *now)
714 sfb_adjust_bin(struct sfb *sp, struct sfbbinstats *bin, struct timespec *ft,
739 sfb_decrement_bin(struct sfb *sp, struct sfbbinstats *bin, struct timespec *ft,
746 sfb_increment_bin(struct sfb *sp, struct sfbbinstats *bin, struct timespec *ft,
753 sfb_dq_update_bins(struct sfb *sp, struct pkthdr *pkt, struct timespec *now)
818 sfb_eq_update_bins(struct sfb *sp, struct pkthdr *pkt)
852 sfb_bin_addfcentry(struct sfb *sp, struct pkthdr *pkt)
900 sfb_drop_early(struct sfb *sp, struct pkthdr *pkt, u_int16_t *pmin,
972 sfb_addq(struct sfb *sp, class_queue_t *q, struct mbuf *m, struct pf_mtag *t)
1008 /* flow control, mark or drop by sfb */
1030 /* unforced drop by sfb */
1082 sfb_getq_flow(struct sfb *sp, class_queue_t *q, u_int32_t flow, boolean_t purge)
1155 sfb_getq(struct sfb *sp, class_queue_t *q)
1161 sfb_purgeq(struct sfb *sp, class_queue_t *q, u_int32_t flow, u_int32_t *packets,
1182 sfb_updateq(struct sfb *sp, cqev_t ev)
1224 sfb_suspendq(struct sfb *sp, class_queue_t *q, boolean_t on)