/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_policer.c | 33 struct mlxsw_sp_policer *policer); 37 const struct mlxsw_sp_policer *policer); 117 struct mlxsw_sp_policer *policer) in mlxsw_sp_policer_single_rate_index_alloc() argument 122 id = idr_alloc(&family->policer_idr, policer, family->start_index, in mlxsw_sp_policer_single_rate_index_alloc() 130 policer->index = id; in mlxsw_sp_policer_single_rate_index_alloc() 139 struct mlxsw_sp_policer *policer; in mlxsw_sp_policer_single_rate_index_free() local 144 policer = idr_remove(&family->policer_idr, policer_index); in mlxsw_sp_policer_single_rate_index_free() 147 WARN_ON(!policer); in mlxsw_sp_policer_single_rate_index_free() 149 return policer; in mlxsw_sp_policer_single_rate_index_free() 154 const struct mlxsw_sp_policer *policer) in mlxsw_sp_policer_single_rate_init() argument [all …]
|
D | spectrum_trap.c | 16 struct devlink_trap_policer policer; member 454 .policer = MLXSW_SP_TRAP_POLICER(1, 10 * 1024, 4096), 457 .policer = MLXSW_SP_TRAP_POLICER(2, 128, 128), 460 .policer = MLXSW_SP_TRAP_POLICER(3, 128, 128), 463 .policer = MLXSW_SP_TRAP_POLICER(4, 128, 128), 466 .policer = MLXSW_SP_TRAP_POLICER(5, 16 * 1024, 8192), 469 .policer = MLXSW_SP_TRAP_POLICER(6, 128, 128), 472 .policer = MLXSW_SP_TRAP_POLICER(7, 1024, 512), 475 .policer = MLXSW_SP_TRAP_POLICER(8, 20 * 1024, 8192), 478 .policer = MLXSW_SP_TRAP_POLICER(9, 128, 128), [all …]
|
D | core_acl_flex_actions.c | 872 struct mlxsw_afa_policer *policer; in mlxsw_afa_policer_create() local 875 policer = kzalloc(sizeof(*policer), GFP_KERNEL); in mlxsw_afa_policer_create() 876 if (!policer) in mlxsw_afa_policer_create() 880 burst, &policer->policer_index, in mlxsw_afa_policer_create() 885 refcount_set(&policer->ref_count, 1); in mlxsw_afa_policer_create() 886 policer->fa_index = fa_index; in mlxsw_afa_policer_create() 888 err = rhashtable_insert_fast(&mlxsw_afa->policer_ht, &policer->ht_node, in mlxsw_afa_policer_create() 893 list_add_tail(&policer->list, &mlxsw_afa->policer_list); in mlxsw_afa_policer_create() 895 return policer; in mlxsw_afa_policer_create() 899 policer->policer_index); in mlxsw_afa_policer_create() [all …]
|
D | core.h | 372 const struct devlink_trap_policer *policer, 375 const struct devlink_trap_policer *policer); 377 const struct devlink_trap_policer *policer); 379 const struct devlink_trap_policer *policer, 383 const struct devlink_trap_policer *policer,
|
D | core.c | 1554 const struct devlink_trap_policer *policer, in mlxsw_devlink_trap_group_set() argument 1562 return mlxsw_driver->trap_group_set(mlxsw_core, group, policer, extack); in mlxsw_devlink_trap_group_set() 1567 const struct devlink_trap_policer *policer) in mlxsw_devlink_trap_policer_init() argument 1574 return mlxsw_driver->trap_policer_init(mlxsw_core, policer); in mlxsw_devlink_trap_policer_init() 1579 const struct devlink_trap_policer *policer) in mlxsw_devlink_trap_policer_fini() argument 1586 mlxsw_driver->trap_policer_fini(mlxsw_core, policer); in mlxsw_devlink_trap_policer_fini() 1591 const struct devlink_trap_policer *policer, in mlxsw_devlink_trap_policer_set() argument 1600 return mlxsw_driver->trap_policer_set(mlxsw_core, policer, rate, burst, in mlxsw_devlink_trap_policer_set() 1606 const struct devlink_trap_policer *policer, in mlxsw_devlink_trap_policer_counter_get() argument 1614 return mlxsw_driver->trap_policer_counter_get(mlxsw_core, policer, in mlxsw_devlink_trap_policer_counter_get()
|
D | spectrum.h | 1336 const struct devlink_trap_policer *policer, 1340 const struct devlink_trap_policer *policer); 1342 const struct devlink_trap_policer *policer); 1345 const struct devlink_trap_policer *policer, 1349 const struct devlink_trap_policer *policer,
|
/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | cn10k.h | 37 u16 policer, bool map);
|
D | cn10k.c | 301 u16 policer, bool map) in cn10k_map_unmap_rq_policer() argument 316 aq->rq.band_prof_id = policer; in cn10k_map_unmap_rq_policer()
|
/drivers/net/netdevsim/ |
D | dev.c | 1019 const struct devlink_trap_policer *policer, in nsim_dev_devlink_trap_group_set() argument 1032 const struct devlink_trap_policer *policer, in nsim_dev_devlink_trap_policer_set() argument 1048 const struct devlink_trap_policer *policer, in nsim_dev_devlink_trap_policer_counter_get() argument 1057 cnt = &nsim_dev->trap_data->trap_policers_cnt_arr[policer->id - 1]; in nsim_dev_devlink_trap_policer_counter_get()
|
/drivers/net/dsa/ocelot/ |
D | felix.c | 1467 struct dsa_mall_policer_tc_entry *policer) in felix_port_policer_add() argument 1471 .rate = div_u64(policer->rate_bytes_per_sec, 1000) * 8, in felix_port_policer_add() 1472 .burst = policer->burst, in felix_port_policer_add()
|
/drivers/net/dsa/sja1105/ |
D | sja1105_main.c | 2821 struct dsa_mall_policer_tc_entry *policer) in sja1105_port_policer_add() argument 2832 policing[port].rate = div_u64(512 * policer->rate_bytes_per_sec, in sja1105_port_policer_add() 2834 policing[port].smax = policer->burst; in sja1105_port_policer_add()
|