Home
last modified time | relevance | path

Searched refs:act_id (Results 1 – 22 of 22) sorted by relevance

/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
H A Dpolice.c8 static bool police_act_validate_control(enum flow_action_id act_id, in police_act_validate_control() argument
11 if (act_id != FLOW_ACTION_PIPE && in police_act_validate_control()
12 act_id != FLOW_ACTION_ACCEPT && in police_act_validate_control()
13 act_id != FLOW_ACTION_JUMP && in police_act_validate_control()
14 act_id != FLOW_ACTION_DROP) { in police_act_validate_control()
26 if (!police_act_validate_control(act->police.exceed.act_id, extack) || in police_act_validate()
27 !police_act_validate_control(act->police.notexceed.act_id, extack)) in police_act_validate()
196 cond_true->act_id = act->police.notexceed.act_id; in tc_act_police_get_branch_ctrl()
199 cond_false->act_id = act->police.exceed.act_id; in tc_act_police_get_branch_ctrl()
H A Dact.h34 enum flow_action_id act_id; member
104 mlx5e_tc_act_get(enum flow_action_id act_id,
H A Dact.c53 mlx5e_tc_act_get(enum flow_action_id act_id, in mlx5e_tc_act_get() argument
60 return tc_acts[act_id]; in mlx5e_tc_act_get()
/openbmc/linux/net/sched/
H A Dact_police.c410 int act_id = -EOPNOTSUPP; in tcf_police_act_to_flow_act() local
414 act_id = FLOW_ACTION_ACCEPT; in tcf_police_act_to_flow_act()
416 act_id = FLOW_ACTION_DROP; in tcf_police_act_to_flow_act()
418 act_id = FLOW_ACTION_PIPE; in tcf_police_act_to_flow_act()
424 act_id = FLOW_ACTION_GOTO; in tcf_police_act_to_flow_act()
427 act_id = FLOW_ACTION_JUMP; in tcf_police_act_to_flow_act()
430 act_id = FLOW_ACTION_CONTINUE; in tcf_police_act_to_flow_act()
435 return act_id; in tcf_police_act_to_flow_act()
446 int act_id; in tcf_police_offload_act_setup() local
463 act_id = tcf_police_act_to_flow_act(police->tcf_action, in tcf_police_offload_act_setup()
[all …]
H A Dact_api.c1863 unsigned int act_id; in tcf_action_reoffload_cb() local
1878 act_id = id_ptr->id; in tcf_action_reoffload_cb()
1879 tn = net_generic(net, act_id); in tcf_action_reoffload_cb()
/openbmc/linux/drivers/net/ethernet/mscc/
H A Docelot_police.c165 if (a->police.exceed.act_id != FLOW_ACTION_DROP) { in ocelot_policer_validate()
171 if (a->police.notexceed.act_id != FLOW_ACTION_PIPE && in ocelot_policer_validate()
172 a->police.notexceed.act_id != FLOW_ACTION_ACCEPT) { in ocelot_policer_validate()
178 if (a->police.notexceed.act_id == FLOW_ACTION_ACCEPT && in ocelot_policer_validate()
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_police.c78 if (act->police.exceed.act_id != FLOW_ACTION_DROP) { in lan966x_police_validate()
84 if (act->police.notexceed.act_id != FLOW_ACTION_PIPE && in lan966x_police_validate()
85 act->police.notexceed.act_id != FLOW_ACTION_ACCEPT) { in lan966x_police_validate()
91 if (act->police.notexceed.act_id == FLOW_ACTION_ACCEPT && in lan966x_police_validate()
/openbmc/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Dqos_conf.c125 if (act->police.exceed.act_id != FLOW_ACTION_DROP) { in nfp_policer_validate()
132 if (act->police.notexceed.act_id != FLOW_ACTION_CONTINUE && in nfp_policer_validate()
133 act->police.notexceed.act_id != FLOW_ACTION_ACCEPT) { in nfp_policer_validate()
139 if (act->police.notexceed.act_id != FLOW_ACTION_PIPE && in nfp_policer_validate()
140 act->police.notexceed.act_id != FLOW_ACTION_ACCEPT) { in nfp_policer_validate()
147 if (act->police.notexceed.act_id == FLOW_ACTION_ACCEPT && in nfp_policer_validate()
H A Doffload.c600 u8 act_id = 0; in nfp_flower_update_merge_with_actions() local
606 act_id = a->jump_id; in nfp_flower_update_merge_with_actions()
608 switch (act_id) { in nfp_flower_update_merge_with_actions()
695 *last_act_id = act_id; in nfp_flower_update_merge_with_actions()
800 u8 act_id = 0; in nfp_flower_copy_pre_actions() local
805 act_id = a->jump_id; in nfp_flower_copy_pre_actions()
807 switch (act_id) { in nfp_flower_copy_pre_actions()
H A Dconntrack.c27 enum flow_action_id act_id);
1752 enum flow_action_id act_id) in get_flow_act() argument
1758 if (act->id == act_id) in get_flow_act()
/openbmc/linux/drivers/net/dsa/sja1105/
H A Dsja1105_flower.c307 if (act->police.exceed.act_id != FLOW_ACTION_DROP) { in sja1105_policer_validate()
313 if (act->police.notexceed.act_id != FLOW_ACTION_PIPE && in sja1105_policer_validate()
314 act->police.notexceed.act_id != FLOW_ACTION_ACCEPT) { in sja1105_policer_validate()
320 if (act->police.notexceed.act_id == FLOW_ACTION_ACCEPT && in sja1105_policer_validate()
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_tc_matchall.c15 if (act->police.exceed.act_id != FLOW_ACTION_DROP) { in cxgb4_policer_validate()
21 if (act->police.notexceed.act_id != FLOW_ACTION_PIPE && in cxgb4_policer_validate()
22 act->police.notexceed.act_id != FLOW_ACTION_ACCEPT) { in cxgb4_policer_validate()
28 if (act->police.notexceed.act_id == FLOW_ACTION_ACCEPT && in cxgb4_policer_validate()
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_flower.c22 if (act->police.exceed.act_id != FLOW_ACTION_DROP) { in mlxsw_sp_policer_validate()
28 if (act->police.notexceed.act_id != FLOW_ACTION_PIPE && in mlxsw_sp_policer_validate()
29 act->police.notexceed.act_id != FLOW_ACTION_ACCEPT) { in mlxsw_sp_policer_validate()
35 if (act->police.notexceed.act_id == FLOW_ACTION_ACCEPT && in mlxsw_sp_policer_validate()
/openbmc/linux/drivers/net/ethernet/ti/
H A Dam65-cpsw-qos.c676 if (act->police.exceed.act_id != FLOW_ACTION_DROP) { in am65_cpsw_qos_clsflower_policer_validate()
682 if (act->police.notexceed.act_id != FLOW_ACTION_PIPE && in am65_cpsw_qos_clsflower_policer_validate()
683 act->police.notexceed.act_id != FLOW_ACTION_ACCEPT) { in am65_cpsw_qos_clsflower_policer_validate()
689 if (act->police.notexceed.act_id == FLOW_ACTION_ACCEPT && in am65_cpsw_qos_clsflower_policer_validate()
H A Dcpsw_priv.c1450 if (act->police.exceed.act_id != FLOW_ACTION_DROP) { in cpsw_qos_clsflower_policer_validate()
1456 if (act->police.notexceed.act_id != FLOW_ACTION_PIPE && in cpsw_qos_clsflower_policer_validate()
1457 act->police.notexceed.act_id != FLOW_ACTION_ACCEPT) { in cpsw_qos_clsflower_policer_validate()
1463 if (act->police.notexceed.act_id == FLOW_ACTION_ACCEPT && in cpsw_qos_clsflower_policer_validate()
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_tc.c198 if (act->police.exceed.act_id != FLOW_ACTION_DROP) { in otx2_policer_validate()
204 if (act->police.notexceed.act_id != FLOW_ACTION_PIPE && in otx2_policer_validate()
205 act->police.notexceed.act_id != FLOW_ACTION_ACCEPT) { in otx2_policer_validate()
211 if (act->police.notexceed.act_id == FLOW_ACTION_ACCEPT && in otx2_policer_validate()
/openbmc/linux/drivers/net/ethernet/freescale/enetc/
H A Denetc_qos.c1089 if (act->police.exceed.act_id != FLOW_ACTION_DROP) { in enetc_psfp_policer_validate()
1095 if (act->police.notexceed.act_id != FLOW_ACTION_PIPE && in enetc_psfp_policer_validate()
1096 act->police.notexceed.act_id != FLOW_ACTION_ACCEPT) { in enetc_psfp_policer_validate()
1102 if (act->police.notexceed.act_id == FLOW_ACTION_ACCEPT && in enetc_psfp_policer_validate()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_tc.h271 int act_id, u32 data);
H A Den_tc.c547 int act_id, u32 data) in mlx5e_tc_match_to_reg_mod_hdr_change() argument
554 modact = mlx5e_mod_hdr_get_item(mod_hdr_acts, act_id); in mlx5e_tc_match_to_reg_mod_hdr_change()
3774 switch (cond->act_id) { in alloc_branch_attr()
4935 if (act->police.notexceed.act_id != FLOW_ACTION_CONTINUE) { in tc_matchall_police_validate()
4941 if (act->police.exceed.act_id != FLOW_ACTION_DROP) { in tc_matchall_police_validate()
4947 if (act->police.notexceed.act_id == FLOW_ACTION_ACCEPT && in tc_matchall_police_validate()
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_tc_flower.c756 if (act->police.exceed.act_id != FLOW_ACTION_DROP) { in sparx5_tc_flower_parse_act_police()
761 if (act->police.notexceed.act_id != FLOW_ACTION_PIPE && in sparx5_tc_flower_parse_act_police()
762 act->police.notexceed.act_id != FLOW_ACTION_ACCEPT) { in sparx5_tc_flower_parse_act_police()
/openbmc/linux/include/net/
H A Dflow_offload.h288 enum flow_action_id act_id; member
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_tun_encap.c768 int act_id = attr->dests[out_index].src_port_rewrite_act_id; in mlx5e_update_vf_tunnel() local
788 mlx5e_tc_match_to_reg_mod_hdr_change(esw->dev, mod_hdr_acts, VPORT_TO_REG, act_id, data); in mlx5e_update_vf_tunnel()