/net/core/ |
D | gen_estimator.c | 43 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()
|
D | gen_stats.c | 126 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/ |
D | sch_mq.c | 44 .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()
|
D | sch_mqprio.c | 565 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()
|
D | sch_drr.c | 21 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()
|
D | sch_htb.c | 115 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 …]
|
D | sch_gred.c | 371 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()
|
D | sch_ets.c | 44 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()
|
D | sch_prio.c | 253 .bstats = &sch->bstats, in prio_dump_offload() 363 &cl_q->bstats, true) < 0 || in prio_dump_class_stats()
|
D | sch_fifo.c | 90 qopt.stats.bstats = &sch->bstats; in fifo_offload_dump()
|
D | sch_qfq.c | 133 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()
|
D | sch_hfsc.c | 114 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()
|
D | sch_tbf.c | 182 qopt.stats.bstats = &sch->bstats; in tbf_offload_dump()
|
D | sch_red.c | 401 .stats.bstats = &sch->bstats, in red_dump_offload_stats()
|
D | sch_multiq.c | 340 if (gnet_stats_copy_basic(d, cl_q->cpu_bstats, &cl_q->bstats, true) < 0 || in multiq_dump_class_stats()
|
D | sch_api.c | 974 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()
|
D | sch_generic.c | 945 gnet_stats_basic_sync_init(&sch->bstats); in qdisc_alloc()
|
D | sch_taprio.c | 2497 if (gnet_stats_copy_basic(d, NULL, &child->bstats, true) < 0 || in taprio_dump_class_stats()
|
/net/netfilter/ |
D | xt_RATEEST.c | 97 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()
|