Home
last modified time | relevance | path

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

/linux-6.3-rc2/tools/testing/selftests/net/forwarding/
A Ddevlink_lib.sh541 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.3-rc2/drivers/net/ethernet/mellanox/mlxsw/
A Dspectrum_span.c191 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 …]
A Dspectrum_span.h37 u16 policer_id; member
57 u16 policer_id; member
A Dspectrum_trap.c1663 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()
A Dspectrum.c2597 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()
A Dspectrum_qdisc.c1860 &agent_parms.policer_id); in mlxsw_sp_qevent_trap_configure()
A Dreg.h6439 static inline void mlxsw_reg_htgt_pack(char *payload, u8 group, u8 policer_id, in mlxsw_reg_htgt_pack() argument
6444 if (policer_id == MLXSW_REG_HTGT_INVALID_POLICER) { in mlxsw_reg_htgt_pack()
6450 mlxsw_reg_htgt_pid_set(payload, policer_id); in mlxsw_reg_htgt_pack()
/linux-6.3-rc2/drivers/net/ethernet/marvell/prestera/
A Dprestera_hw.h315 u32 *policer_id);
317 u32 policer_id);
319 u32 policer_id, u64 cir, u32 cbs);
A Dprestera_hw.c2389 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.3-rc2/net/devlink/
A Dleftover.c6027 u32 policer_id; in devlink_trap_group_set() local
6036 policer_id = nla_get_u32(attrs[DEVLINK_ATTR_TRAP_POLICER_ID]); in devlink_trap_group_set()
6037 policer_item = devlink_trap_policer_item_lookup(devlink, policer_id); in devlink_trap_group_set()
6038 if (policer_id && !policer_item) { in devlink_trap_group_set()
9184 u32 policer_id = group_item->group->init_policer_id; in devlink_trap_group_item_policer_link() local
9187 if (policer_id == 0) in devlink_trap_group_item_policer_link()
9190 policer_item = devlink_trap_policer_item_lookup(devlink, policer_id); in devlink_trap_group_item_policer_link()

Completed in 77 milliseconds