/linux-6.1.9/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()
|
/linux-6.1.9/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 | 393 gnet_stats_basic_sync_init(&sch->bstats); in mqprio_dump() 405 gnet_stats_add_basic(&sch->bstats, qdisc->cpu_bstats, in mqprio_dump() 406 &qdisc->bstats, false); in mqprio_dump() 503 struct gnet_stats_basic_sync bstats; in mqprio_dump_class_stats() local 507 gnet_stats_basic_sync_init(&bstats); in mqprio_dump_class_stats() 522 gnet_stats_add_basic(&bstats, qdisc->cpu_bstats, in mqprio_dump_class_stats() 523 &qdisc->bstats, false); in mqprio_dump_class_stats() 535 if (gnet_stats_copy_basic(d, NULL, &bstats, false) < 0 || in mqprio_dump_class_stats() 543 &sch->bstats, true) < 0 || in mqprio_dump_class_stats()
|
D | sch_drr.c | 22 struct gnet_stats_basic_sync bstats; member 86 err = gen_replace_estimator(&cl->bstats, NULL, in drr_change_class() 108 gnet_stats_basic_sync_init(&cl->bstats); in drr_change_class() 120 err = gen_replace_estimator(&cl->bstats, NULL, &cl->rate_est, in drr_change_class() 268 if (gnet_stats_copy_basic(d, NULL, &cl->bstats, true) < 0 || in drr_dump_class_stats() 394 bstats_update(&cl->bstats, skb); in drr_dequeue()
|
D | sch_htb.c | 116 struct gnet_stats_basic_sync bstats; member 724 bstats_update(&cl->bstats, skb); in htb_charge_class() 914 bstats_update(&cl->bstats, skb); in htb_dequeue_tree() 1298 gnet_stats_basic_sync_init(&cl->bstats); in htb_offload_aggregate_stats() 1313 bytes += u64_stats_read(&c->leaf.q->bstats.bytes); in htb_offload_aggregate_stats() 1314 packets += u64_stats_read(&c->leaf.q->bstats.packets); in htb_offload_aggregate_stats() 1318 _bstats_update(&cl->bstats, bytes, packets); in htb_offload_aggregate_stats() 1343 cl->bstats = cl->leaf.q->bstats; in htb_dump_class_stats() 1345 gnet_stats_basic_sync_init(&cl->bstats); in htb_dump_class_stats() 1346 _bstats_update(&cl->bstats, in htb_dump_class_stats() [all …]
|
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_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_fifo.c | 90 qopt.stats.bstats = &sch->bstats; in fifo_offload_dump()
|
D | sch_atm.c | 55 struct gnet_stats_basic_sync bstats; member 493 bstats_update(&flow->bstats, skb); in sch_atm_dequeue() 550 gnet_stats_basic_sync_init(&p->link.bstats); in atm_tc_init() 654 if (gnet_stats_copy_basic(d, NULL, &flow->bstats, true) < 0 || in atm_tc_dump_class_stats()
|
D | sch_qfq.c | 134 struct gnet_stats_basic_sync bstats; member 451 err = gen_replace_estimator(&cl->bstats, NULL, in qfq_change_class() 468 gnet_stats_basic_sync_init(&cl->bstats); in qfq_change_class() 478 err = gen_new_estimator(&cl->bstats, NULL, in qfq_change_class() 643 if (gnet_stats_copy_basic(d, NULL, &cl->bstats, true) < 0 || in qfq_dump_class_stats() 1230 _bstats_update(&cl->bstats, len, gso_segs); in qfq_enqueue()
|
D | sch_hfsc.c | 114 struct gnet_stats_basic_sync bstats; member 965 err = gen_replace_estimator(&cl->bstats, NULL, in hfsc_change_class() 1035 err = gen_new_estimator(&cl->bstats, NULL, &cl->rate_est, in hfsc_change_class() 1329 if (gnet_stats_copy_basic(d, NULL, &cl->bstats, true) < 0 || in hfsc_dump_class_stats() 1400 gnet_stats_basic_sync_init(&q->root.bstats); in hfsc_init_qdisc() 1611 bstats_update(&cl->bstats, skb); in hfsc_dequeue()
|
D | sch_cbq.c | 119 struct gnet_stats_basic_sync bstats; member 492 _bstats_update(&cl->bstats, len, 1); in cbq_update() 1305 if (gnet_stats_copy_basic(d, NULL, &cl->bstats, true) < 0 || in cbq_dump_class_stats() 1436 err = gen_replace_estimator(&cl->bstats, NULL, in cbq_change_class() 1531 gnet_stats_basic_sync_init(&cl->bstats); in cbq_change_class() 1539 err = gen_new_estimator(&cl->bstats, NULL, &cl->rate_est, in cbq_change_class()
|
D | sch_red.c | 398 .stats.bstats = &sch->bstats, in red_dump_offload_stats()
|
D | sch_tbf.c | 181 qopt.stats.bstats = &sch->bstats; in tbf_offload_dump()
|
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 | 964 if (gnet_stats_copy_basic(&d, cpu_bstats, &q->bstats, true) < 0 || in tc_fill_qdisc() 1297 err = gen_new_estimator(&sch->bstats, in qdisc_create() 1373 gen_replace_estimator(&sch->bstats, in qdisc_change()
|
/linux-6.1.9/include/net/ |
D | gen_stats.h | 52 void gnet_stats_add_basic(struct gnet_stats_basic_sync *bstats, 70 int gen_new_estimator(struct gnet_stats_basic_sync *bstats, 76 int gen_replace_estimator(struct gnet_stats_basic_sync *bstats,
|
D | sch_generic.h | 117 struct gnet_stats_basic_sync bstats; member 809 static inline void _bstats_update(struct gnet_stats_basic_sync *bstats, in _bstats_update() argument 812 u64_stats_update_begin(&bstats->syncp); in _bstats_update() 813 u64_stats_add(&bstats->bytes, bytes); in _bstats_update() 814 u64_stats_add(&bstats->packets, packets); in _bstats_update() 815 u64_stats_update_end(&bstats->syncp); in _bstats_update() 818 static inline void bstats_update(struct gnet_stats_basic_sync *bstats, in bstats_update() argument 821 _bstats_update(bstats, in bstats_update() 835 bstats_update(&sch->bstats, skb); in qdisc_bstats_update()
|
D | pkt_cls.h | 811 struct gnet_stats_basic_sync *bstats; member 931 struct gnet_stats_basic_sync bstats[MAX_DPs]; member
|
/linux-6.1.9/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()
|
/linux-6.1.9/include/net/netfilter/ |
D | xt_rateest.h | 9 struct gnet_stats_basic_sync bstats; member
|
/linux-6.1.9/Documentation/networking/ |
D | gen_stats.rst | 25 struct gnet_stats_basic bstats; 49 if (gnet_stats_copy_basic(&dump, &mystruct->bstats) < 0 ||
|
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/abm/ |
D | qdisc.c | 461 struct gnet_stats_basic_sync *bstats, in nfp_abm_stats_calculate() argument 464 _bstats_update(bstats, new->tx_bytes - old->tx_bytes, in nfp_abm_stats_calculate() 503 &stats->bstats[i], &stats->qstats[i]); in nfp_abm_gred_stats() 654 stats->bstats, stats->qstats); in nfp_abm_red_stats() 811 stats->bstats, stats->qstats); in nfp_abm_mq_stats()
|