/linux-6.6.21/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.6.21/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_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_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 | 944 gnet_stats_basic_sync_init(&sch->bstats); in qdisc_alloc()
|
/linux-6.6.21/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 851 static inline void _bstats_update(struct gnet_stats_basic_sync *bstats, in _bstats_update() argument 854 u64_stats_update_begin(&bstats->syncp); in _bstats_update() 855 u64_stats_add(&bstats->bytes, bytes); in _bstats_update() 856 u64_stats_add(&bstats->packets, packets); in _bstats_update() 857 u64_stats_update_end(&bstats->syncp); in _bstats_update() 860 static inline void bstats_update(struct gnet_stats_basic_sync *bstats, in bstats_update() argument 863 _bstats_update(bstats, in bstats_update() 877 bstats_update(&sch->bstats, skb); in qdisc_bstats_update()
|
D | pkt_cls.h | 802 struct gnet_stats_basic_sync *bstats; member 924 struct gnet_stats_basic_sync bstats[MAX_DPs]; member
|
/linux-6.6.21/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.6.21/include/net/netfilter/ |
D | xt_rateest.h | 9 struct gnet_stats_basic_sync bstats; member
|
/linux-6.6.21/Documentation/networking/ |
D | gen_stats.rst | 25 struct gnet_stats_basic bstats; 49 if (gnet_stats_copy_basic(&dump, &mystruct->bstats) < 0 ||
|
/linux-6.6.21/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()
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_qdisc.c | 571 _bstats_update(stats_ptr->bstats, tx_bytes, tx_packets); in mlxsw_sp_qdisc_update_stats()
|