Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/net/core/
Dgen_stats.c118 __gnet_stats_copy_basic_cpu(struct gnet_stats_basic_packed *bstats, in __gnet_stats_copy_basic_cpu() argument
130 bytes = bcpu->bstats.bytes; in __gnet_stats_copy_basic_cpu()
131 packets = bcpu->bstats.packets; in __gnet_stats_copy_basic_cpu()
134 bstats->bytes += bytes; in __gnet_stats_copy_basic_cpu()
135 bstats->packets += packets; in __gnet_stats_copy_basic_cpu()
141 struct gnet_stats_basic_packed *bstats, in __gnet_stats_copy_basic() argument
148 __gnet_stats_copy_basic_cpu(bstats, cpu); in __gnet_stats_copy_basic()
154 bstats->bytes = b->bytes; in __gnet_stats_copy_basic()
155 bstats->packets = b->packets; in __gnet_stats_copy_basic()
167 struct gnet_stats_basic_packed bstats = {0}; in ___gnet_stats_copy_basic() local
[all …]
Dgen_estimator.c43 struct gnet_stats_basic_packed *bstats; member
69 __gnet_stats_copy_basic(e->running, b, e->cpu_bstats, e->bstats); in est_fetch_counters()
124 int gen_new_estimator(struct gnet_stats_basic_packed *bstats, in gen_new_estimator() argument
155 est->bstats = bstats; in gen_new_estimator()
225 int gen_replace_estimator(struct gnet_stats_basic_packed *bstats, in gen_replace_estimator() argument
231 return gen_new_estimator(bstats, cpu_bstats, rate_est, in gen_replace_estimator()
/kernel/linux/linux-5.10/net/sched/
Dsch_mq.c44 .bstats = &sch->bstats, in mq_offload_stats()
159 memset(&sch->bstats, 0, sizeof(sch->bstats)); in mq_dump()
173 __gnet_stats_copy_basic(NULL, &sch->bstats, in mq_dump()
175 &qdisc->bstats); in mq_dump()
182 sch->bstats.bytes += qdisc->bstats.bytes; in mq_dump()
183 sch->bstats.packets += qdisc->bstats.packets; in mq_dump()
273 &sch->bstats) < 0 || in mq_dump_class_stats()
Dsch_mqprio.c415 memset(&sch->bstats, 0, sizeof(sch->bstats)); in mqprio_dump()
430 __gnet_stats_copy_basic(NULL, &sch->bstats, in mqprio_dump()
432 &qdisc->bstats); in mqprio_dump()
439 sch->bstats.bytes += qdisc->bstats.bytes; in mqprio_dump()
440 sch->bstats.packets += qdisc->bstats.packets; in mqprio_dump()
539 struct gnet_stats_basic_packed bstats = {0}; in mqprio_dump_class_stats() local
560 __gnet_stats_copy_basic(NULL, &bstats, in mqprio_dump_class_stats()
562 &qdisc->bstats); in mqprio_dump_class_stats()
569 bstats.bytes += qdisc->bstats.bytes; in mqprio_dump_class_stats()
570 bstats.packets += qdisc->bstats.packets; in mqprio_dump_class_stats()
[all …]
Dsch_drr.c22 struct gnet_stats_basic_packed bstats; member
86 err = gen_replace_estimator(&cl->bstats, NULL, in drr_change_class()
120 err = gen_replace_estimator(&cl->bstats, NULL, &cl->rate_est, in drr_change_class()
270 d, NULL, &cl->bstats) < 0 || in drr_dump_class_stats()
403 bstats_update(&cl->bstats, skb); in drr_dequeue()
Dsch_prio.c253 .bstats = &sch->bstats, in prio_dump_offload()
363 d, cl_q->cpu_bstats, &cl_q->bstats) < 0 || in prio_dump_class_stats()
Dsch_fifo.c90 qopt.stats.bstats = &sch->bstats; in fifo_offload_dump()
Dsch_gred.c378 table->tab[i]->packetsin += hw_stats->stats.bstats[i].packets; in gred_offload_dump_stats()
379 table->tab[i]->bytesin += hw_stats->stats.bstats[i].bytes; in gred_offload_dump_stats()
382 _bstats_update(&sch->bstats, in gred_offload_dump_stats()
383 hw_stats->stats.bstats[i].bytes, in gred_offload_dump_stats()
384 hw_stats->stats.bstats[i].packets); in gred_offload_dump_stats()
Dsch_ets.c44 struct gnet_stats_basic_packed bstats; member
184 qopt.stats.bstats = &sch->bstats; in ets_offload_dump()
329 d, NULL, &cl_q->bstats) < 0 || in ets_class_dump_stats()
Dsch_qfq.c134 struct gnet_stats_basic_packed bstats; member
457 err = gen_replace_estimator(&cl->bstats, NULL, in qfq_change_class()
483 err = gen_new_estimator(&cl->bstats, NULL, in qfq_change_class()
648 d, NULL, &cl->bstats) < 0 || in qfq_dump_class_stats()
1254 cl->bstats.bytes += len; in qfq_enqueue()
1255 cl->bstats.packets += gso_segs; in qfq_enqueue()
Dsch_atm.c55 struct gnet_stats_basic_packed bstats; member
496 bstats_update(&flow->bstats, skb); in sch_atm_dequeue()
657 d, NULL, &flow->bstats) < 0 || in atm_tc_dump_class_stats()
Dsch_htb.c116 struct gnet_stats_basic_packed bstats; member
687 bstats_update(&cl->bstats, skb); in htb_charge_class()
872 bstats_update(&cl->bstats, skb); in htb_dequeue_tree()
1137 d, NULL, &cl->bstats) < 0 || in htb_dump_class_stats()
1375 err = gen_new_estimator(&cl->bstats, NULL, in htb_change_class()
1437 err = gen_replace_estimator(&cl->bstats, NULL, in htb_change_class()
Dsch_cbq.c119 struct gnet_stats_basic_packed bstats; member
568 cl->bstats.packets++; in cbq_update()
569 cl->bstats.bytes += len; in cbq_update()
1387 d, NULL, &cl->bstats) < 0 || in cbq_dump_class_stats()
1518 err = gen_replace_estimator(&cl->bstats, NULL, in cbq_change_class()
1620 err = gen_new_estimator(&cl->bstats, NULL, &cl->rate_est, in cbq_change_class()
Dsch_hfsc.c114 struct gnet_stats_basic_packed bstats; member
965 err = gen_replace_estimator(&cl->bstats, NULL, in hfsc_change_class()
1039 err = gen_new_estimator(&cl->bstats, NULL, &cl->rate_est, in hfsc_change_class()
1334 if (gnet_stats_copy_basic(qdisc_root_sleeping_running(sch), d, NULL, &cl->bstats) < 0 || in hfsc_dump_class_stats()
1622 bstats_update(&cl->bstats, skb); in hfsc_dequeue()
Dsch_tbf.c181 qopt.stats.bstats = &sch->bstats; in tbf_offload_dump()
Dsch_red.c401 .stats.bstats = &sch->bstats, in red_dump_offload_stats()
Dsch_multiq.c341 d, cl_q->cpu_bstats, &cl_q->bstats) < 0 || in multiq_dump_class_stats()
Dsch_api.c946 &d, cpu_bstats, &q->bstats) < 0 || in tc_fill_qdisc()
1288 err = gen_new_estimator(&sch->bstats, in qdisc_create()
1364 gen_replace_estimator(&sch->bstats, in qdisc_change()
/kernel/linux/linux-5.10/include/net/
Dgen_stats.h17 struct gnet_stats_basic_packed bstats; member
50 struct gnet_stats_basic_packed *bstats,
69 int gen_new_estimator(struct gnet_stats_basic_packed *bstats,
75 int gen_replace_estimator(struct gnet_stats_basic_packed *bstats,
Dsch_generic.h103 struct gnet_stats_basic_packed bstats; member
837 static inline void _bstats_update(struct gnet_stats_basic_packed *bstats, in _bstats_update() argument
840 bstats->bytes += bytes; in _bstats_update()
841 bstats->packets += packets; in _bstats_update()
844 static inline void bstats_update(struct gnet_stats_basic_packed *bstats, in bstats_update() argument
847 _bstats_update(bstats, in bstats_update()
852 static inline void _bstats_cpu_update(struct gnet_stats_basic_cpu *bstats, in _bstats_cpu_update() argument
855 u64_stats_update_begin(&bstats->syncp); in _bstats_cpu_update()
856 _bstats_update(&bstats->bstats, bytes, packets); in _bstats_cpu_update()
857 u64_stats_update_end(&bstats->syncp); in _bstats_cpu_update()
[all …]
Dpkt_cls.h772 struct gnet_stats_basic_packed *bstats; member
857 struct gnet_stats_basic_packed bstats[MAX_DPs]; member
/kernel/linux/linux-5.10/include/net/netfilter/
Dxt_rateest.h9 struct gnet_stats_basic_packed bstats; member
/kernel/linux/linux-5.10/net/netfilter/
Dxt_RATEEST.c97 struct gnet_stats_basic_packed *stats = &info->est->bstats; in xt_rateest_tg()
157 ret = gen_new_estimator(&est->bstats, NULL, &est->rate_est, in xt_rateest_tg_checkentry()
/kernel/linux/linux-5.10/Documentation/networking/
Dgen_stats.rst25 struct gnet_stats_basic bstats;
49 if (gnet_stats_copy_basic(&dump, &mystruct->bstats) < 0 ||
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/abm/
Dqdisc.c461 struct gnet_stats_basic_packed *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()

12