Lines Matching defs:xstats

501 mlxsw_sp_xstats_backlog(struct mlxsw_sp_port_xstats *xstats, int tclass_num)
503 return xstats->backlog[tclass_num] +
504 xstats->backlog[tclass_num + 8];
508 mlxsw_sp_xstats_tail_drop(struct mlxsw_sp_port_xstats *xstats, int tclass_num)
510 return xstats->tail_drop[tclass_num] +
511 xstats->tail_drop[tclass_num + 8];
515 mlxsw_sp_qdisc_bstats_per_priority_get(struct mlxsw_sp_port_xstats *xstats,
525 *tx_packets += xstats->tx_packets[i];
526 *tx_bytes += xstats->tx_bytes[i];
537 struct mlxsw_sp_port_xstats *xstats;
546 xstats = &mlxsw_sp_port->periodic_hw_stats.xstats;
547 mlxsw_sp_qdisc_bstats_per_priority_get(xstats, prio_bitmap,
552 *p_drops += xstats->wred_drop[tclass_num] +
553 mlxsw_sp_xstats_tail_drop(xstats, tclass_num);
554 *p_backlog += mlxsw_sp_xstats_backlog(xstats, tclass_num);
642 struct mlxsw_sp_port_xstats *xstats;
651 xstats = &mlxsw_sp_port->periodic_hw_stats.xstats;
655 mlxsw_sp_qdisc_bstats_per_priority_get(xstats, prio_bitmap,
658 red_base->prob_mark = xstats->tc_ecn[tclass_num];
659 red_base->prob_drop = xstats->wred_drop[tclass_num];
660 red_base->pdrop = mlxsw_sp_xstats_tail_drop(xstats, tclass_num);
775 struct mlxsw_sp_port_xstats *xstats;
782 xstats = &mlxsw_sp_port->periodic_hw_stats.xstats;
784 early_drops = xstats->wred_drop[tclass_num] - xstats_base->prob_drop;
785 marks = xstats->tc_ecn[tclass_num] - xstats_base->prob_mark;
786 pdrops = mlxsw_sp_xstats_tail_drop(xstats, tclass_num) -
805 struct mlxsw_sp_port_xstats *xstats;
811 xstats = &mlxsw_sp_port->periodic_hw_stats.xstats;
815 overlimits = xstats->wred_drop[tclass_num] +
816 xstats->tc_ecn[tclass_num] - stats_base->overlimits;
874 p->xstats);
1470 struct mlxsw_sp_port_xstats *xstats;
1474 xstats = &mlxsw_sp_port->periodic_hw_stats.xstats;
1483 stats_base->drops += mlxsw_sp_xstats_tail_drop(xstats, i);
1484 stats_base->drops += xstats->wred_drop[i];