Home
last modified time | relevance | path

Searched refs:bstats (Results 1 – 19 of 19) sorted by relevance

/net/core/
Dgen_estimator.c43 struct gnet_stats_basic_sync *bstats; member
69 gnet_stats_add_basic(b, e->cpu_bstats, e->bstats, e->running); in est_fetch_counters()
130 int gen_new_estimator(struct gnet_stats_basic_sync *bstats, in gen_new_estimator() argument
161 est->bstats = bstats; in gen_new_estimator()
233 int gen_replace_estimator(struct gnet_stats_basic_sync *bstats, in gen_replace_estimator() argument
239 return gen_new_estimator(bstats, cpu_bstats, rate_est, in gen_replace_estimator()
Dgen_stats.c126 static void gnet_stats_add_basic_cpu(struct gnet_stats_basic_sync *bstats, in gnet_stats_add_basic_cpu() argument
146 _bstats_update(bstats, t_bytes, t_packets); in gnet_stats_add_basic_cpu()
149 void gnet_stats_add_basic(struct gnet_stats_basic_sync *bstats, in gnet_stats_add_basic() argument
160 gnet_stats_add_basic_cpu(bstats, cpu); in gnet_stats_add_basic()
170 _bstats_update(bstats, bytes, packets); in gnet_stats_add_basic()
/net/sched/
Dsch_mq.c44 .bstats = &sch->bstats, in mq_offload_stats()
135 gnet_stats_basic_sync_init(&sch->bstats); in mq_dump()
147 gnet_stats_add_basic(&sch->bstats, qdisc->cpu_bstats, in mq_dump()
148 &qdisc->bstats, false); in mq_dump()
234 if (gnet_stats_copy_basic(d, sch->cpu_bstats, &sch->bstats, true) < 0 || in mq_dump_class_stats()
Dsch_mqprio.c565 gnet_stats_basic_sync_init(&sch->bstats); in mqprio_dump()
577 gnet_stats_add_basic(&sch->bstats, qdisc->cpu_bstats, in mqprio_dump()
578 &qdisc->bstats, false); in mqprio_dump()
672 struct gnet_stats_basic_sync bstats; in mqprio_dump_class_stats() local
676 gnet_stats_basic_sync_init(&bstats); in mqprio_dump_class_stats()
691 gnet_stats_add_basic(&bstats, qdisc->cpu_bstats, in mqprio_dump_class_stats()
692 &qdisc->bstats, false); in mqprio_dump_class_stats()
704 if (gnet_stats_copy_basic(d, NULL, &bstats, false) < 0 || in mqprio_dump_class_stats()
712 &sch->bstats, true) < 0 || in mqprio_dump_class_stats()
Dsch_drr.c21 struct gnet_stats_basic_sync bstats; member
85 err = gen_replace_estimator(&cl->bstats, NULL, in drr_change_class()
107 gnet_stats_basic_sync_init(&cl->bstats); in drr_change_class()
119 err = gen_replace_estimator(&cl->bstats, NULL, &cl->rate_est, in drr_change_class()
269 if (gnet_stats_copy_basic(d, NULL, &cl->bstats, true) < 0 || in drr_dump_class_stats()
395 bstats_update(&cl->bstats, skb); in drr_dequeue()
Dsch_htb.c115 struct gnet_stats_basic_sync bstats; member
730 bstats_update(&cl->bstats, skb); in htb_charge_class()
920 bstats_update(&cl->bstats, skb); in htb_dequeue_tree()
1304 gnet_stats_basic_sync_init(&cl->bstats); in htb_offload_aggregate_stats()
1319 bytes += u64_stats_read(&c->leaf.q->bstats.bytes); in htb_offload_aggregate_stats()
1320 packets += u64_stats_read(&c->leaf.q->bstats.packets); in htb_offload_aggregate_stats()
1324 _bstats_update(&cl->bstats, bytes, packets); in htb_offload_aggregate_stats()
1349 cl->bstats = cl->leaf.q->bstats; in htb_dump_class_stats()
1351 gnet_stats_basic_sync_init(&cl->bstats); in htb_dump_class_stats()
1352 _bstats_update(&cl->bstats, in htb_dump_class_stats()
[all …]
Dsch_gred.c371 gnet_stats_basic_sync_init(&hw_stats->stats.bstats[i]); in gred_offload_dump_stats()
384 table->tab[i]->packetsin += u64_stats_read(&hw_stats->stats.bstats[i].packets); in gred_offload_dump_stats()
385 table->tab[i]->bytesin += u64_stats_read(&hw_stats->stats.bstats[i].bytes); in gred_offload_dump_stats()
388 bytes += u64_stats_read(&hw_stats->stats.bstats[i].bytes); in gred_offload_dump_stats()
389 packets += u64_stats_read(&hw_stats->stats.bstats[i].packets); in gred_offload_dump_stats()
396 _bstats_update(&sch->bstats, bytes, packets); in gred_offload_dump_stats()
Dsch_ets.c44 struct gnet_stats_basic_sync bstats; member
184 qopt.stats.bstats = &sch->bstats; in ets_offload_dump()
328 if (gnet_stats_copy_basic(d, NULL, &cl_q->bstats, true) < 0 || in ets_class_dump_stats()
681 gnet_stats_basic_sync_init(&q->classes[i].bstats); in ets_qdisc_change()
Dsch_prio.c253 .bstats = &sch->bstats, in prio_dump_offload()
363 &cl_q->bstats, true) < 0 || in prio_dump_class_stats()
Dsch_fifo.c90 qopt.stats.bstats = &sch->bstats; in fifo_offload_dump()
Dsch_qfq.c133 struct gnet_stats_basic_sync bstats; member
460 err = gen_replace_estimator(&cl->bstats, NULL, in qfq_change_class()
477 gnet_stats_basic_sync_init(&cl->bstats); in qfq_change_class()
487 err = gen_new_estimator(&cl->bstats, NULL, in qfq_change_class()
654 if (gnet_stats_copy_basic(d, NULL, &cl->bstats, true) < 0 || in qfq_dump_class_stats()
1253 _bstats_update(&cl->bstats, len, gso_segs); in qfq_enqueue()
Dsch_hfsc.c114 struct gnet_stats_basic_sync bstats; member
972 err = gen_replace_estimator(&cl->bstats, NULL, in hfsc_change_class()
1042 err = gen_new_estimator(&cl->bstats, NULL, &cl->rate_est, in hfsc_change_class()
1345 if (gnet_stats_copy_basic(d, NULL, &cl->bstats, true) < 0 || in hfsc_dump_class_stats()
1416 gnet_stats_basic_sync_init(&q->root.bstats); in hfsc_init_qdisc()
1627 bstats_update(&cl->bstats, skb); in hfsc_dequeue()
Dsch_tbf.c182 qopt.stats.bstats = &sch->bstats; in tbf_offload_dump()
Dsch_red.c401 .stats.bstats = &sch->bstats, in red_dump_offload_stats()
Dsch_multiq.c340 if (gnet_stats_copy_basic(d, cl_q->cpu_bstats, &cl_q->bstats, true) < 0 || in multiq_dump_class_stats()
Dsch_api.c974 if (gnet_stats_copy_basic(&d, cpu_bstats, &q->bstats, true) < 0 || in tc_fill_qdisc()
1338 err = gen_new_estimator(&sch->bstats, in qdisc_create()
1407 gen_replace_estimator(&sch->bstats, in qdisc_change()
Dsch_generic.c945 gnet_stats_basic_sync_init(&sch->bstats); in qdisc_alloc()
Dsch_taprio.c2497 if (gnet_stats_copy_basic(d, NULL, &child->bstats, true) < 0 || in taprio_dump_class_stats()
/net/netfilter/
Dxt_RATEEST.c97 struct gnet_stats_basic_sync *stats = &info->est->bstats; in xt_rateest_tg()
146 gnet_stats_basic_sync_init(&est->bstats); in xt_rateest_tg_checkentry()
158 ret = gen_new_estimator(&est->bstats, NULL, &est->rate_est, in xt_rateest_tg_checkentry()