/kernel/linux/linux-5.10/net/core/ |
D | gen_stats.c | 118 __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 …]
|
D | gen_estimator.c | 43 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/ |
D | sch_mq.c | 44 .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()
|
D | sch_mqprio.c | 415 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 …]
|
D | sch_drr.c | 22 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()
|
D | sch_prio.c | 253 .bstats = &sch->bstats, in prio_dump_offload() 363 d, cl_q->cpu_bstats, &cl_q->bstats) < 0 || in prio_dump_class_stats()
|
D | sch_fifo.c | 90 qopt.stats.bstats = &sch->bstats; in fifo_offload_dump()
|
D | sch_gred.c | 378 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()
|
D | sch_ets.c | 44 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()
|
D | sch_qfq.c | 134 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()
|
D | sch_atm.c | 55 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()
|
D | sch_htb.c | 116 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()
|
D | sch_cbq.c | 119 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()
|
D | sch_hfsc.c | 114 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()
|
D | sch_tbf.c | 181 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 | 341 d, cl_q->cpu_bstats, &cl_q->bstats) < 0 || in multiq_dump_class_stats()
|
D | sch_api.c | 946 &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/ |
D | gen_stats.h | 17 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,
|
D | sch_generic.h | 103 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 …]
|
D | pkt_cls.h | 772 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/ |
D | xt_rateest.h | 9 struct gnet_stats_basic_packed bstats; member
|
/kernel/linux/linux-5.10/net/netfilter/ |
D | xt_RATEEST.c | 97 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/ |
D | gen_stats.rst | 25 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/ |
D | qdisc.c | 461 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()
|