• Home
  • Raw
  • Download

Lines Matching refs:xstats

373 mlxsw_sp_xstats_backlog(struct mlxsw_sp_port_xstats *xstats, int tclass_num)  in mlxsw_sp_xstats_backlog()  argument
375 return xstats->backlog[tclass_num] + in mlxsw_sp_xstats_backlog()
376 xstats->backlog[tclass_num + 8]; in mlxsw_sp_xstats_backlog()
380 mlxsw_sp_xstats_tail_drop(struct mlxsw_sp_port_xstats *xstats, int tclass_num) in mlxsw_sp_xstats_tail_drop() argument
382 return xstats->tail_drop[tclass_num] + in mlxsw_sp_xstats_tail_drop()
383 xstats->tail_drop[tclass_num + 8]; in mlxsw_sp_xstats_tail_drop()
387 mlxsw_sp_qdisc_bstats_per_priority_get(struct mlxsw_sp_port_xstats *xstats, in mlxsw_sp_qdisc_bstats_per_priority_get() argument
397 *tx_packets += xstats->tx_packets[i]; in mlxsw_sp_qdisc_bstats_per_priority_get()
398 *tx_bytes += xstats->tx_bytes[i]; in mlxsw_sp_qdisc_bstats_per_priority_get()
410 struct mlxsw_sp_port_xstats *xstats; in mlxsw_sp_qdisc_collect_tc_stats() local
413 xstats = &mlxsw_sp_port->periodic_hw_stats.xstats; in mlxsw_sp_qdisc_collect_tc_stats()
414 mlxsw_sp_qdisc_bstats_per_priority_get(xstats, in mlxsw_sp_qdisc_collect_tc_stats()
420 *p_drops += xstats->wred_drop[tclass_num] + in mlxsw_sp_qdisc_collect_tc_stats()
421 mlxsw_sp_xstats_tail_drop(xstats, tclass_num); in mlxsw_sp_qdisc_collect_tc_stats()
422 *p_backlog += mlxsw_sp_xstats_backlog(xstats, tclass_num); in mlxsw_sp_qdisc_collect_tc_stats()
511 struct mlxsw_sp_port_xstats *xstats; in mlxsw_sp_setup_tc_qdisc_red_clean_stats() local
514 xstats = &mlxsw_sp_port->periodic_hw_stats.xstats; in mlxsw_sp_setup_tc_qdisc_red_clean_stats()
518 mlxsw_sp_qdisc_bstats_per_priority_get(xstats, in mlxsw_sp_setup_tc_qdisc_red_clean_stats()
522 red_base->prob_drop = xstats->wred_drop[tclass_num]; in mlxsw_sp_setup_tc_qdisc_red_clean_stats()
523 red_base->pdrop = mlxsw_sp_xstats_tail_drop(xstats, tclass_num); in mlxsw_sp_setup_tc_qdisc_red_clean_stats()
619 struct mlxsw_sp_port_xstats *xstats; in mlxsw_sp_qdisc_get_red_xstats() local
623 xstats = &mlxsw_sp_port->periodic_hw_stats.xstats; in mlxsw_sp_qdisc_get_red_xstats()
625 early_drops = xstats->wred_drop[tclass_num] - xstats_base->prob_drop; in mlxsw_sp_qdisc_get_red_xstats()
626 pdrops = mlxsw_sp_xstats_tail_drop(xstats, tclass_num) - in mlxsw_sp_qdisc_get_red_xstats()
644 struct mlxsw_sp_port_xstats *xstats; in mlxsw_sp_qdisc_get_red_stats() local
647 xstats = &mlxsw_sp_port->periodic_hw_stats.xstats; in mlxsw_sp_qdisc_get_red_stats()
651 overlimits = xstats->wred_drop[tclass_num] - stats_base->overlimits; in mlxsw_sp_qdisc_get_red_stats()
703 p->xstats); in __mlxsw_sp_setup_tc_red()
1209 struct mlxsw_sp_port_xstats *xstats; in mlxsw_sp_setup_tc_qdisc_prio_clean_stats() local
1213 xstats = &mlxsw_sp_port->periodic_hw_stats.xstats; in mlxsw_sp_setup_tc_qdisc_prio_clean_stats()
1222 stats_base->drops += mlxsw_sp_xstats_tail_drop(xstats, i); in mlxsw_sp_setup_tc_qdisc_prio_clean_stats()
1223 stats_base->drops += xstats->wred_drop[i]; in mlxsw_sp_setup_tc_qdisc_prio_clean_stats()