Home
last modified time | relevance | path

Searched refs:policer_id (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_trap.c208 u16 policer_id; in mlxsw_sp_trap_group_policer_init() local
215 policer_id = MLXSW_SP_DISCARD_POLICER_ID; in mlxsw_sp_trap_group_policer_init()
225 mlxsw_reg_qpcr_pack(qpcr_pl, policer_id, ir_units, is_bytes, rate, in mlxsw_sp_trap_group_policer_init()
236 u16 policer_id; in __mlxsw_sp_trap_group_init() local
241 policer_id = MLXSW_SP_DISCARD_POLICER_ID; in __mlxsw_sp_trap_group_init()
249 mlxsw_reg_htgt_pack(htgt_pl, group_id, policer_id, priority, tc); in __mlxsw_sp_trap_group_init()
Dspectrum.c4507 u16 policer_id; in mlxsw_sp_trap_groups_set() local
4517 policer_id = i; in mlxsw_sp_trap_groups_set()
4557 policer_id = MLXSW_REG_HTGT_INVALID_POLICER; in mlxsw_sp_trap_groups_set()
4563 if (max_cpu_policers <= policer_id && in mlxsw_sp_trap_groups_set()
4564 policer_id != MLXSW_REG_HTGT_INVALID_POLICER) in mlxsw_sp_trap_groups_set()
4567 mlxsw_reg_htgt_pack(htgt_pl, i, policer_id, priority, tc); in mlxsw_sp_trap_groups_set()
Dreg.h5515 static inline void mlxsw_reg_htgt_pack(char *payload, u8 group, u8 policer_id, in mlxsw_reg_htgt_pack() argument
5520 if (policer_id == MLXSW_REG_HTGT_INVALID_POLICER) { in mlxsw_reg_htgt_pack()
5526 mlxsw_reg_htgt_pid_set(payload, policer_id); in mlxsw_reg_htgt_pack()