Searched refs:policer_id (Results 1 – 10 of 10) sorted by relevance
/linux-6.6.21/tools/testing/selftests/net/forwarding/ |
D | devlink_lib.sh | 541 local policer_id=$1; shift 543 devlink -j -p trap policer show $DEVLINK_DEV policer $policer_id \ 549 local policer_id=$1; shift 551 devlink -j -p trap policer show $DEVLINK_DEV policer $policer_id \ 557 local policer_id=$1; shift 559 devlink -j -p -s trap policer show $DEVLINK_DEV policer $policer_id \
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_span.c | 191 mlxsw_reg_mpat_pid_set(mpat_pl, sparms.policer_id); in mlxsw_sp_span_entry_phys_configure() 491 mlxsw_reg_mpat_pid_set(mpat_pl, sparms.policer_id); in mlxsw_sp_span_entry_gretap4_configure() 595 mlxsw_reg_mpat_pid_set(mpat_pl, sparms.policer_id); in mlxsw_sp_span_entry_gretap6_configure() 660 mlxsw_reg_mpat_pid_set(mpat_pl, sparms.policer_id); in mlxsw_sp_span_entry_vlan_configure() 810 u16 policer_id) in mlxsw_sp_span_policer_id_base_set() argument 822 if (policer_id < span->policer_id_base || in mlxsw_sp_span_policer_id_base_set() 823 policer_id >= span->policer_id_base + span->entries_count) in mlxsw_sp_span_policer_id_base_set() 831 policer_id_base = policer_id % 2 == 0 ? policer_id : policer_id - 1; in mlxsw_sp_span_policer_id_base_set() 872 sparms.policer_id); in mlxsw_sp_span_entry_create() 943 curr->parms.policer_id == sparms->policer_id && in mlxsw_sp_span_entry_find_by_parms() [all …]
|
D | spectrum_span.h | 37 u16 policer_id; member 57 u16 policer_id; member
|
D | spectrum_trap.c | 1663 u32 policer_id, struct netlink_ext_ack *extack) in __mlxsw_sp_trap_group_init() argument 1674 if (group_item->fixed_policer && policer_id != group->init_policer_id) { in __mlxsw_sp_trap_group_init() 1679 if (policer_id) { in __mlxsw_sp_trap_group_init() 1683 policer_id); in __mlxsw_sp_trap_group_init() 1706 u32 policer_id = policer ? policer->id : 0; in mlxsw_sp_trap_group_set() local 1708 return __mlxsw_sp_trap_group_init(mlxsw_core, group, policer_id, in mlxsw_sp_trap_group_set()
|
D | spectrum.c | 2597 u16 policer_id; in mlxsw_sp_trap_groups_set() local 2607 policer_id = i; in mlxsw_sp_trap_groups_set() 2618 policer_id = MLXSW_REG_HTGT_INVALID_POLICER; in mlxsw_sp_trap_groups_set() 2624 if (max_cpu_policers <= policer_id && in mlxsw_sp_trap_groups_set() 2625 policer_id != MLXSW_REG_HTGT_INVALID_POLICER) in mlxsw_sp_trap_groups_set() 2628 mlxsw_reg_htgt_pack(htgt_pl, i, policer_id, priority, tc); in mlxsw_sp_trap_groups_set()
|
D | spectrum_qdisc.c | 1860 &agent_parms.policer_id); in mlxsw_sp_qevent_trap_configure()
|
D | reg.h | 6502 static inline void mlxsw_reg_htgt_pack(char *payload, u8 group, u8 policer_id, in mlxsw_reg_htgt_pack() argument 6507 if (policer_id == MLXSW_REG_HTGT_INVALID_POLICER) { in mlxsw_reg_htgt_pack() 6513 mlxsw_reg_htgt_pid_set(payload, policer_id); in mlxsw_reg_htgt_pack()
|
/linux-6.6.21/drivers/net/ethernet/marvell/prestera/ |
D | prestera_hw.h | 315 u32 *policer_id); 317 u32 policer_id); 319 u32 policer_id, u64 cir, u32 cbs);
|
D | prestera_hw.c | 2389 u32 *policer_id) in prestera_hw_policer_create() argument 2402 *policer_id = __le32_to_cpu(resp.id); in prestera_hw_policer_create() 2407 u32 policer_id) in prestera_hw_policer_release() argument 2410 .id = __cpu_to_le32(policer_id) in prestera_hw_policer_release() 2418 u32 policer_id, u64 cir, u32 cbs) in prestera_hw_policer_sr_tcm_set() argument 2422 .id = __cpu_to_le32(policer_id), in prestera_hw_policer_sr_tcm_set()
|
/linux-6.6.21/net/devlink/ |
D | trap.c | 660 u32 policer_id; in devlink_trap_group_set() local 669 policer_id = nla_get_u32(attrs[DEVLINK_ATTR_TRAP_POLICER_ID]); in devlink_trap_group_set() 670 policer_item = devlink_trap_policer_item_lookup(devlink, policer_id); in devlink_trap_group_set() 671 if (policer_id && !policer_item) { in devlink_trap_group_set() 1530 u32 policer_id = group_item->group->init_policer_id; in devlink_trap_group_item_policer_link() local 1533 if (policer_id == 0) in devlink_trap_group_item_policer_link() 1536 policer_item = devlink_trap_policer_item_lookup(devlink, policer_id); in devlink_trap_group_item_policer_link()
|