Lines Matching refs:tclass_num
49 u8 tclass_num; member
217 int tclass_num, u32 min, u32 max, in mlxsw_sp_tclass_congestion_enable() argument
225 mlxsw_reg_cwtp_pack(cwtp_cmd, mlxsw_sp_port->local_port, tclass_num); in mlxsw_sp_tclass_congestion_enable()
235 mlxsw_reg_cwtpm_pack(cwtpm_cmd, mlxsw_sp_port->local_port, tclass_num, in mlxsw_sp_tclass_congestion_enable()
243 int tclass_num) in mlxsw_sp_tclass_congestion_disable() argument
248 mlxsw_reg_cwtpm_pack(cwtpm_cmd, mlxsw_sp_port->local_port, tclass_num, in mlxsw_sp_tclass_congestion_disable()
257 u8 tclass_num = mlxsw_sp_qdisc->tclass_num; in mlxsw_sp_setup_tc_qdisc_red_clean_stats() local
271 red_base->prob_drop = xstats->wred_drop[tclass_num]; in mlxsw_sp_setup_tc_qdisc_red_clean_stats()
272 red_base->pdrop = xstats->tail_drop[tclass_num]; in mlxsw_sp_setup_tc_qdisc_red_clean_stats()
291 mlxsw_sp_qdisc->tclass_num); in mlxsw_sp_qdisc_red_destroy()
328 u8 tclass_num = mlxsw_sp_qdisc->tclass_num; in mlxsw_sp_qdisc_red_replace() local
339 return mlxsw_sp_tclass_congestion_enable(mlxsw_sp_port, tclass_num, min, in mlxsw_sp_qdisc_red_replace()
363 u8 tclass_num = mlxsw_sp_qdisc->tclass_num; in mlxsw_sp_qdisc_get_red_xstats() local
370 early_drops = xstats->wred_drop[tclass_num] - xstats_base->prob_drop; in mlxsw_sp_qdisc_get_red_xstats()
372 pdrops = xstats->tail_drop[tclass_num] - xstats_base->pdrop; in mlxsw_sp_qdisc_get_red_xstats()
390 u8 tclass_num = mlxsw_sp_qdisc->tclass_num; in mlxsw_sp_qdisc_get_red_stats() local
403 overlimits = xstats->wred_drop[tclass_num] + xstats->ecn - in mlxsw_sp_qdisc_get_red_stats()
405 drops = xstats->wred_drop[tclass_num] + xstats->tail_drop[tclass_num] - in mlxsw_sp_qdisc_get_red_stats()
407 backlog = xstats->backlog[tclass_num]; in mlxsw_sp_qdisc_get_red_stats()
643 int tclass_num = MLXSW_SP_PRIO_BAND_TO_TCLASS(p->band); in mlxsw_sp_qdisc_prio_graft() local
650 mlxsw_sp_port->tclass_qdiscs[tclass_num].handle == p->child_handle) in mlxsw_sp_qdisc_prio_graft()
662 &mlxsw_sp_port->tclass_qdiscs[tclass_num]); in mlxsw_sp_qdisc_prio_graft()
710 mlxsw_sp_port->root_qdisc->tclass_num = MLXSW_SP_PORT_DEFAULT_TCLASS; in mlxsw_sp_tc_qdisc_init()
720 mlxsw_sp_port->tclass_qdiscs[i].tclass_num = i; in mlxsw_sp_tc_qdisc_init()