Searched refs:rate_est (Results 1 - 10 of 10) sorted by relevance

/linux-4.4.14/net/core/
H A Dgen_estimator.c85 struct gnet_stats_rate_est64 *rate_est; member in struct:gen_estimator
134 e->rate_est->bps = (e->avbps+0xF)>>5; est_timer()
140 e->rate_est->pps = (e->avpps + 0xF) >> 5; est_timer()
172 const struct gnet_stats_rate_est64 *rate_est) gen_find_node()
183 else if (bstats < e->bstats || rate_est != e->rate_est) gen_find_node()
194 * @rate_est: rate estimator statistics
198 * Creates a new rate estimator with &bstats as source and &rate_est
202 * &rate_est with the statistics lock grabbed during this period.
209 struct gnet_stats_rate_est64 *rate_est, gen_new_estimator()
232 est->rate_est = rate_est; gen_new_estimator()
236 est->avbps = rate_est->bps<<5; gen_new_estimator()
238 est->avpps = rate_est->pps<<10; gen_new_estimator()
261 * @rate_est: rate estimator statistics
263 * Removes the rate estimator specified by &bstats and &rate_est.
268 struct gnet_stats_rate_est64 *rate_est) gen_kill_estimator()
273 while ((e = gen_find_node(bstats, rate_est))) { gen_kill_estimator()
290 * @rate_est: rate estimator statistics
301 struct gnet_stats_rate_est64 *rate_est, gen_replace_estimator()
304 gen_kill_estimator(bstats, rate_est); gen_replace_estimator()
305 return gen_new_estimator(bstats, cpu_bstats, rate_est, stats_lock, opt); gen_replace_estimator()
312 * @rate_est: rate estimator statistics
317 const struct gnet_stats_rate_est64 *rate_est) gen_estimator_active()
324 res = gen_find_node(bstats, rate_est) != NULL; gen_estimator_active()
171 gen_find_node(const struct gnet_stats_basic_packed *bstats, const struct gnet_stats_rate_est64 *rate_est) gen_find_node() argument
207 gen_new_estimator(struct gnet_stats_basic_packed *bstats, struct gnet_stats_basic_cpu __percpu *cpu_bstats, struct gnet_stats_rate_est64 *rate_est, spinlock_t *stats_lock, struct nlattr *opt) gen_new_estimator() argument
267 gen_kill_estimator(struct gnet_stats_basic_packed *bstats, struct gnet_stats_rate_est64 *rate_est) gen_kill_estimator() argument
299 gen_replace_estimator(struct gnet_stats_basic_packed *bstats, struct gnet_stats_basic_cpu __percpu *cpu_bstats, struct gnet_stats_rate_est64 *rate_est, spinlock_t *stats_lock, struct nlattr *opt) gen_replace_estimator() argument
316 gen_estimator_active(const struct gnet_stats_basic_packed *bstats, const struct gnet_stats_rate_est64 *rate_est) gen_estimator_active() argument
/linux-4.4.14/include/net/
H A Dgen_stats.h52 struct gnet_stats_rate_est64 *rate_est,
55 struct gnet_stats_rate_est64 *rate_est);
58 struct gnet_stats_rate_est64 *rate_est,
61 const struct gnet_stats_rate_est64 *rate_est);
H A Dsch_generic.h84 struct gnet_stats_rate_est64 rate_est; member in struct:Qdisc
/linux-4.4.14/net/sched/
H A Dsch_drr.c28 struct gnet_stats_rate_est64 rate_est; member in struct:drr_class
93 &cl->rate_est, drr_change_class()
121 err = gen_replace_estimator(&cl->bstats, NULL, &cl->rate_est, drr_change_class()
143 gen_kill_estimator(&cl->bstats, &cl->rate_est); drr_destroy_class()
283 gnet_stats_copy_rate_est(d, &cl->bstats, &cl->rate_est) < 0 || drr_dump_class_stats()
H A Dsch_qfq.c140 struct gnet_stats_rate_est64 rate_est; member in struct:qfq_class
462 &cl->rate_est, qfq_change_class()
488 &cl->rate_est, qfq_change_class()
509 gen_kill_estimator(&cl->bstats, &cl->rate_est); qfq_change_class()
534 gen_kill_estimator(&cl->bstats, &cl->rate_est); qfq_destroy_class()
667 gnet_stats_copy_rate_est(d, &cl->bstats, &cl->rate_est) < 0 || qfq_dump_class_stats()
H A Dsch_cbq.c133 struct gnet_stats_rate_est64 rate_est; member in struct:cbq_class
1604 gnet_stats_copy_rate_est(d, &cl->bstats, &cl->rate_est) < 0 || cbq_dump_class_stats()
1668 gen_kill_estimator(&cl->bstats, &cl->rate_est); cbq_destroy_class()
1757 &cl->rate_est, cbq_change_class()
1850 err = gen_new_estimator(&cl->bstats, NULL, &cl->rate_est, cbq_change_class()
H A Dsch_hfsc.c117 struct gnet_stats_rate_est64 rate_est; member in struct:hfsc_class
1021 &cl->rate_est, hfsc_change_class()
1070 err = gen_new_estimator(&cl->bstats, NULL, &cl->rate_est, hfsc_change_class()
1120 gen_kill_estimator(&cl->bstats, &cl->rate_est); hfsc_destroy_class()
1377 gnet_stats_copy_rate_est(d, &cl->bstats, &cl->rate_est) < 0 || hfsc_dump_class_stats()
H A Dsch_htb.c114 struct gnet_stats_rate_est64 rate_est; member in struct:htb_class
1150 gnet_stats_copy_rate_est(d, NULL, &cl->rate_est) < 0 || htb_dump_class_stats()
1233 gen_kill_estimator(&cl->bstats, &cl->rate_est); htb_destroy_class()
1402 &cl->rate_est, htb_change_class()
1468 &cl->rate_est, htb_change_class()
H A Dsch_api.c996 &sch->rate_est, qdisc_create()
1059 &sch->rate_est, qdisc_change()
1380 gnet_stats_copy_rate_est(&d, &q->bstats, &q->rate_est) < 0 || tc_fill_qdisc()
H A Dsch_generic.c685 gen_kill_estimator(&qdisc->bstats, &qdisc->rate_est); qdisc_destroy()

Completed in 270 milliseconds