Lines Matching full:act
19 const struct flow_action_entry *act, in mlxsw_sp_policer_validate() argument
22 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()
36 !flow_action_is_last_entry(action, act)) { in mlxsw_sp_policer_validate()
42 if (act->police.peakrate_bytes_ps || in mlxsw_sp_policer_validate()
43 act->police.avrate || act->police.overhead) { in mlxsw_sp_policer_validate()
49 if (act->police.rate_pkt_ps) { in mlxsw_sp_policer_validate()
64 const struct flow_action_entry *act; in mlxsw_sp_flower_parse_actions() local
75 act = flow_action_first_entry_get(flow_action); in mlxsw_sp_flower_parse_actions()
76 if (act->hw_stats & FLOW_ACTION_HW_STATS_DISABLED) { in mlxsw_sp_flower_parse_actions()
78 } else if (act->hw_stats & FLOW_ACTION_HW_STATS_IMMEDIATE) { in mlxsw_sp_flower_parse_actions()
88 flow_action_for_each(i, act, flow_action) { in mlxsw_sp_flower_parse_actions()
89 switch (act->id) { in mlxsw_sp_flower_parse_actions()
106 act->user_cookie, extack); in mlxsw_sp_flower_parse_actions()
130 u32 chain_index = act->chain_index; in mlxsw_sp_flower_parse_actions()
180 out_dev = act->dev; in mlxsw_sp_flower_parse_actions()
188 struct net_device *out_dev = act->dev; in mlxsw_sp_flower_parse_actions()
203 u16 proto = be16_to_cpu(act->vlan.proto); in mlxsw_sp_flower_parse_actions()
204 u8 prio = act->vlan.prio; in mlxsw_sp_flower_parse_actions()
205 u16 vid = act->vlan.vid; in mlxsw_sp_flower_parse_actions()
208 act->id, vid, in mlxsw_sp_flower_parse_actions()
216 act->priority, in mlxsw_sp_flower_parse_actions()
222 enum flow_action_mangle_base htype = act->mangle.htype; in mlxsw_sp_flower_parse_actions()
223 __be32 be_mask = (__force __be32) act->mangle.mask; in mlxsw_sp_flower_parse_actions()
224 __be32 be_val = (__force __be32) act->mangle.val; in mlxsw_sp_flower_parse_actions()
225 u32 offset = act->mangle.offset; in mlxsw_sp_flower_parse_actions()
244 err = mlxsw_sp_policer_validate(flow_action, act, extack); in mlxsw_sp_flower_parse_actions()
253 burst = roundup_pow_of_two(act->police.burst); in mlxsw_sp_flower_parse_actions()
255 act->hw_index, in mlxsw_sp_flower_parse_actions()
256 act->police.rate_bytes_ps, in mlxsw_sp_flower_parse_actions()
270 act->sample.psample_group, in mlxsw_sp_flower_parse_actions()
271 act->sample.rate, in mlxsw_sp_flower_parse_actions()
272 act->sample.trunc_size, in mlxsw_sp_flower_parse_actions()
273 act->sample.truncate, in mlxsw_sp_flower_parse_actions()