Searched refs:policer_items_arr (Results 1 – 2 of 2) sorted by relevance
1197 if (trap->policer_items_arr[i].policer.id == id) in mlxsw_sp_trap_policer_item_lookup()1198 return &trap->policer_items_arr[i]; in mlxsw_sp_trap_policer_item_lookup()1278 trap->policer_items_arr = kcalloc(free_policers, elem_size, GFP_KERNEL); in mlxsw_sp_trap_policer_items_arr_init()1279 if (!trap->policer_items_arr) in mlxsw_sp_trap_policer_items_arr_init()1285 memcpy(trap->policer_items_arr, mlxsw_sp_trap_policer_items_arr, in mlxsw_sp_trap_policer_items_arr_init()1299 trap->policer_items_arr[i] = *policer_item; in mlxsw_sp_trap_policer_items_arr_init()1300 trap->policer_items_arr[i].policer.id = ++last_id; in mlxsw_sp_trap_policer_items_arr_init()1301 trap->policer_items_arr[i].policer.init_rate = 1; in mlxsw_sp_trap_policer_items_arr_init()1302 trap->policer_items_arr[i].policer.init_burst = 16; in mlxsw_sp_trap_policer_items_arr_init()1310 kfree(mlxsw_sp->trap->policer_items_arr); in mlxsw_sp_trap_policer_items_arr_fini()[all …]
11 struct mlxsw_sp_trap_policer_item *policer_items_arr; member