Home
last modified time | relevance | path

Searched refs:qstats (Results 1 – 25 of 39) sorted by relevance

12

/linux-6.3-rc2/samples/bpf/
A Dhbm.c189 qstats.rate = rate; in run_bpf_prog()
284 qstats.rate = rate; in run_bpf_prog()
298 qstats.rate = rate; in run_bpf_prog()
346 (qstats.lastPacketTime - qstats.firstPacketTime) / in run_bpf_prog()
357 (qstats.pkts_total + 1); in run_bpf_prog()
359 (qstats.bytes_total + 1); in run_bpf_prog()
365 (qstats.pkts_total + 1); in run_bpf_prog()
373 (qstats.pkts_total + 1); in run_bpf_prog()
379 (int)(qstats.sum_cwnd / (qstats.sum_cwnd_cnt + 1))); in run_bpf_prog()
382 (int)(qstats.sum_rtt / (qstats.pkts_total + 1))); in run_bpf_prog()
[all …]
/linux-6.3-rc2/net/core/
A Dgen_stats.c348 qstats->qlen += qcpu->qlen; in gnet_stats_add_queue_cpu()
349 qstats->backlog += qcpu->backlog; in gnet_stats_add_queue_cpu()
350 qstats->drops += qcpu->drops; in gnet_stats_add_queue_cpu()
363 qstats->qlen += q->qlen; in gnet_stats_add_queue()
364 qstats->backlog += q->backlog; in gnet_stats_add_queue()
365 qstats->drops += q->drops; in gnet_stats_add_queue()
366 qstats->requeues += q->requeues; in gnet_stats_add_queue()
394 qstats.qlen = qlen; in gnet_stats_copy_queue()
397 d->tc_stats.drops = qstats.drops; in gnet_stats_copy_queue()
398 d->tc_stats.qlen = qstats.qlen; in gnet_stats_copy_queue()
[all …]
/linux-6.3-rc2/net/sched/
A Dsch_skbprio.c35 struct gnet_stats_queue qstats[SKBPRIO_MAX_PRIORITY]; member
85 q->qstats[prio].backlog += qdisc_pkt_len(skb); in skbprio_enqueue()
101 q->qstats[prio].drops++; in skbprio_enqueue()
102 q->qstats[prio].overlimits++; in skbprio_enqueue()
108 q->qstats[prio].backlog += qdisc_pkt_len(skb); in skbprio_enqueue()
117 q->qstats[lp].backlog -= qdisc_pkt_len(to_drop); in skbprio_enqueue()
118 q->qstats[lp].drops++; in skbprio_enqueue()
119 q->qstats[lp].overlimits++; in skbprio_enqueue()
189 memset(&q->qstats, 0, sizeof(q->qstats)); in skbprio_init()
219 memset(&q->qstats, 0, sizeof(q->qstats)); in skbprio_reset()
[all …]
A Dsch_mq.c45 .qstats = &sch->qstats, in mq_offload_stats()
136 memset(&sch->qstats, 0, sizeof(sch->qstats)); in mq_dump()
149 gnet_stats_add_queue(&sch->qstats, qdisc->cpu_qstats, in mq_dump()
150 &qdisc->qstats); in mq_dump()
A Dsch_gred.c118 return sch->qstats.backlog; in gred_backlog()
182 if (likely(sch->qstats.backlog + qdisc_pkt_len(skb) <= in gred_enqueue()
279 if (!sch->qstats.backlog) in gred_dequeue()
348 opt->set.qstats = &sch->qstats; in gred_offload()
386 table->tab[i]->backlog += hw_stats->stats.qstats[i].backlog; in gred_offload_dump_stats()
390 sch->qstats.qlen += hw_stats->stats.qstats[i].qlen; in gred_offload_dump_stats()
391 sch->qstats.backlog += hw_stats->stats.qstats[i].backlog; in gred_offload_dump_stats()
392 sch->qstats.drops += hw_stats->stats.qstats[i].drops; in gred_offload_dump_stats()
393 sch->qstats.requeues += hw_stats->stats.qstats[i].requeues; in gred_offload_dump_stats()
394 sch->qstats.overlimits += hw_stats->stats.qstats[i].overlimits; in gred_offload_dump_stats()
A Dsch_fifo.c22 if (likely(sch->qstats.backlog + qdisc_pkt_len(skb) <= sch->limit)) in bfifo_enqueue()
45 prev_backlog = sch->qstats.backlog; in pfifo_tail_enqueue()
51 qdisc_tree_reduce_backlog(sch, 0, prev_backlog - sch->qstats.backlog); in pfifo_tail_enqueue()
91 qopt.stats.qstats = &sch->qstats; in fifo_offload_dump()
A Dsch_mqprio.c413 memset(&sch->qstats, 0, sizeof(sch->qstats)); in mqprio_dump()
426 gnet_stats_add_queue(&sch->qstats, qdisc->cpu_qstats, in mqprio_dump()
427 &qdisc->qstats); in mqprio_dump()
515 struct gnet_stats_queue qstats = {0}; in mqprio_dump_class_stats() local
537 gnet_stats_add_queue(&qstats, qdisc->cpu_qstats, in mqprio_dump_class_stats()
538 &qdisc->qstats); in mqprio_dump_class_stats()
543 qlen = qdisc_qlen(sch) + qstats.qlen; in mqprio_dump_class_stats()
549 gnet_stats_copy_queue(d, NULL, &qstats, qlen) < 0) in mqprio_dump_class_stats()
A Dsch_ets.c45 struct gnet_stats_queue qstats; member
125 qopt.replace_params.qstats = &sch->qstats; in ets_offload_change()
185 qopt.stats.qstats = &sch->qstats; in ets_offload_dump()
431 cl->qstats.drops++; in ets_qdisc_enqueue()
442 sch->qstats.backlog += len; in ets_qdisc_enqueue()
682 memset(&q->classes[i].qstats, 0, sizeof(q->classes[i].qstats)); in ets_qdisc_change()
A Dsch_prio.c88 sch->qstats.backlog += len; in prio_enqueue()
156 opt.replace_params.qstats = &sch->qstats; in prio_offload()
254 .qstats = &sch->qstats, in prio_dump_offload()
A Dsch_red.c80 child->qstats.backlog); in red_enqueue()
133 sch->qstats.backlog += len; in red_enqueue()
205 opt.set.qstats = &sch->qstats; in red_offload()
399 .stats.qstats = &sch->qstats, in red_dump_offload_stats()
A Dsch_tbf.c155 qopt.replace_params.qstats = &sch->qstats; in tbf_offload_change()
182 qopt.stats.qstats = &sch->qstats; in tbf_offload_dump()
258 sch->qstats.backlog += len; in tbf_enqueue()
A Dsch_fq_codel.c178 sch->qstats.drops += i; in fq_codel_drop()
179 sch->qstats.backlog -= len; in fq_codel_drop()
220 prev_backlog = sch->qstats.backlog; in fq_codel_enqueue()
233 prev_backlog -= sch->qstats.backlog; in fq_codel_enqueue()
268 sch->qstats.backlog -= qdisc_pkt_len(skb); in dequeue_func()
303 skb = codel_dequeue(sch, &sch->qstats.backlog, &q->cparams, in fq_codel_dequeue()
A Dsch_drr.c23 struct gnet_stats_queue qstats; member
270 gnet_stats_copy_queue(d, cl_q->cpu_qstats, &cl_q->qstats, qlen) < 0) in drr_dump_class_stats()
352 cl->qstats.drops++; in drr_enqueue()
363 sch->qstats.backlog += len; in drr_enqueue()
A Dsch_hhf.c405 prev_backlog = sch->qstats.backlog; in hhf_enqueue()
414 qdisc_tree_reduce_backlog(sch, 1, prev_backlog - sch->qstats.backlog); in hhf_enqueue()
561 prev_backlog = sch->qstats.backlog; in hhf_change()
568 prev_backlog - sch->qstats.backlog); in hhf_change()
A Dsch_codel.c75 sch->qstats.backlog -= qdisc_pkt_len(skb); in dequeue_func()
94 skb = codel_dequeue(sch, &sch->qstats.backlog, &q->params, &q->vars, in codel_qdisc_dequeue()
A Dsch_pie.c96 if (!pie_drop_early(sch, &q->params, &q->vars, sch->qstats.backlog, in pie_qdisc_enqueue()
427 pie_calculate_probability(&q->params, &q->vars, sch->qstats.backlog); in pie_timer()
522 pie_process_dequeue(skb, &q->params, &q->vars, sch->qstats.backlog); in pie_qdisc_dequeue()
/linux-6.3-rc2/drivers/net/ethernet/broadcom/bnx2x/
A Dbnx2x_stats.h437 ADD_EXTEND_64(qstats->t##_hi, qstats->t##_lo, diff); \
452 ADD_EXTEND_64(qstats->t##_hi, qstats->t##_lo, diff); \
465 ADD_EXTEND_64(qstats->t##_hi, qstats->t##_lo, diff); \
477 qstats_old->f = qstats->f; \
482 ADD_64(estats->s##_hi, qstats->s##_hi, \
492 estats->s += qstats->s; \
494 qstats_old->s##_old = qstats->s; \
499 ADD_64(fstats->s##_hi, qstats->s##_hi, \
505 qstats_old->s##_hi = qstats->s##_hi; \
506 qstats_old->s##_lo = qstats->s##_lo; \
[all …]
A Dbnx2x_stats.c954 struct bnx2x_eth_q_stats *qstats = in bnx2x_storm_stats_update() local
978 qstats->total_bytes_received_hi = in bnx2x_storm_stats_update()
980 qstats->total_bytes_received_lo = in bnx2x_storm_stats_update()
993 qstats->valid_bytes_received_hi = in bnx2x_storm_stats_update()
994 qstats->total_bytes_received_hi; in bnx2x_storm_stats_update()
995 qstats->valid_bytes_received_lo = in bnx2x_storm_stats_update()
996 qstats->total_bytes_received_lo; in bnx2x_storm_stats_update()
1029 qstats->total_bytes_transmitted_hi = in bnx2x_storm_stats_update()
1668 struct bnx2x_eth_q_stats *qstats = in bnx2x_save_statistics() local
1778 qstats->no_buff_discard_hi, in bnx2x_afex_collect_stats()
[all …]
/linux-6.3-rc2/include/net/
A Dsch_generic.h118 struct gnet_stats_queue qstats; member
511 __u32 qlen = q->qstats.qlen; in qdisc_qlen_sum()
881 sch->qstats.drops += count; in __qdisc_qstats_drop()
886 qstats->drops++; in qstats_drop_inc()
891 qstats->overlimits++; in qstats_overlimit_inc()
896 qstats_drop_inc(&sch->qstats); in qdisc_qstats_drop()
906 sch->qstats.overlimits++; in qdisc_qstats_overlimit()
921 gnet_stats_add_queue(&qstats, sch->cpu_qstats, &sch->qstats); in qdisc_qstats_qlen_backlog()
922 *qlen = qstats.qlen + qdisc_qlen(sch); in qdisc_qstats_qlen_backlog()
923 *backlog = qstats.backlog; in qdisc_qstats_qlen_backlog()
[all …]
A Dpkt_cls.h816 struct gnet_stats_queue *qstats; member
891 struct gnet_stats_queue *qstats; member
930 struct gnet_stats_queue *qstats; member
936 struct gnet_stats_queue qstats[MAX_DPs]; member
963 struct gnet_stats_queue *qstats; member
1004 struct gnet_stats_queue *qstats; member
1033 struct gnet_stats_queue *qstats; member
A Dgen_stats.h63 void gnet_stats_add_queue(struct gnet_stats_queue *qstats,
/linux-6.3-rc2/drivers/infiniband/hw/hfi1/
A Dvnic_main.c24 #define SUM_GRP_COUNTERS(stats, qstats, x_grp) do { \ argument
26 for (src64 = &qstats->x_grp.unicast, \
45 struct opa_vnic_stats *qstats = &vinfo->stats[i]; in hfi1_vnic_update_stats() local
50 stats->tx_drop_state += qstats->tx_drop_state; in hfi1_vnic_update_stats()
51 stats->tx_dlid_zero += qstats->tx_dlid_zero; in hfi1_vnic_update_stats()
53 SUM_GRP_COUNTERS(stats, qstats, tx_grp); in hfi1_vnic_update_stats()
60 struct opa_vnic_stats *qstats = &vinfo->stats[i]; in hfi1_vnic_update_stats() local
65 stats->rx_drop_state += qstats->rx_drop_state; in hfi1_vnic_update_stats()
66 stats->rx_oversize += qstats->rx_oversize; in hfi1_vnic_update_stats()
67 stats->rx_runt += qstats->rx_runt; in hfi1_vnic_update_stats()
[all …]
/linux-6.3-rc2/Documentation/networking/
A Dgen_stats.rst26 struct gnet_stats_queue qstats;
33 mystruct->qstats.backlog += skb->pkt_len;
50 gnet_stats_copy_queue(&dump, &mystruct->qstats) < 0 ||
/linux-6.3-rc2/drivers/net/ethernet/netronome/nfp/abm/
A Dqdisc.c462 struct gnet_stats_queue *qstats) in nfp_abm_stats_calculate() argument
466 qstats->qlen += new->backlog_pkts - old->backlog_pkts; in nfp_abm_stats_calculate()
467 qstats->backlog += new->backlog_bytes - old->backlog_bytes; in nfp_abm_stats_calculate()
468 qstats->overlimits += new->overlimits - old->overlimits; in nfp_abm_stats_calculate()
469 qstats->drops += new->drops - old->drops; 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.3-rc2/drivers/net/ethernet/mellanox/mlxsw/
A Dspectrum_qdisc.c572 stats_ptr->qstats->drops += drops; in mlxsw_sp_qdisc_update_stats()
573 stats_ptr->qstats->backlog += mlxsw_sp_cells_bytes(mlxsw_sp, backlog); in mlxsw_sp_qdisc_update_stats()
749 struct gnet_stats_queue *qstats) in mlxsw_sp_qdisc_leaf_unoffload() argument
755 qstats->backlog -= backlog; in mlxsw_sp_qdisc_leaf_unoffload()
766 mlxsw_sp_qdisc_leaf_unoffload(mlxsw_sp_port, mlxsw_sp_qdisc, p->qstats); in mlxsw_sp_qdisc_red_unoffload()
818 stats_ptr->qstats->overlimits += overlimits; in mlxsw_sp_qdisc_get_red_stats()
1059 mlxsw_sp_qdisc_leaf_unoffload(mlxsw_sp_port, mlxsw_sp_qdisc, p->qstats); in mlxsw_sp_qdisc_tbf_unoffload()
1420 struct gnet_stats_queue *qstats) in __mlxsw_sp_qdisc_ets_unoffload() argument
1426 qstats->backlog -= backlog; in __mlxsw_sp_qdisc_ets_unoffload()
1437 p->qstats); in mlxsw_sp_qdisc_prio_unoffload()
[all …]

Completed in 58 milliseconds

12