Lines Matching refs: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->cookie, extack); in mlxsw_sp_flower_parse_actions()
130 u32 chain_index = act->chain_index; in mlxsw_sp_flower_parse_actions()
170 out_dev = act->dev; in mlxsw_sp_flower_parse_actions()
178 struct net_device *out_dev = act->dev; in mlxsw_sp_flower_parse_actions()
193 u16 proto = be16_to_cpu(act->vlan.proto); in mlxsw_sp_flower_parse_actions()
194 u8 prio = act->vlan.prio; in mlxsw_sp_flower_parse_actions()
195 u16 vid = act->vlan.vid; in mlxsw_sp_flower_parse_actions()
198 act->id, vid, in mlxsw_sp_flower_parse_actions()
206 act->priority, in mlxsw_sp_flower_parse_actions()
212 enum flow_action_mangle_base htype = act->mangle.htype; in mlxsw_sp_flower_parse_actions()
213 __be32 be_mask = (__force __be32) act->mangle.mask; in mlxsw_sp_flower_parse_actions()
214 __be32 be_val = (__force __be32) act->mangle.val; in mlxsw_sp_flower_parse_actions()
215 u32 offset = act->mangle.offset; in mlxsw_sp_flower_parse_actions()
234 err = mlxsw_sp_policer_validate(flow_action, act, extack); in mlxsw_sp_flower_parse_actions()
243 burst = roundup_pow_of_two(act->police.burst); in mlxsw_sp_flower_parse_actions()
245 act->hw_index, in mlxsw_sp_flower_parse_actions()
246 act->police.rate_bytes_ps, in mlxsw_sp_flower_parse_actions()
260 act->sample.psample_group, in mlxsw_sp_flower_parse_actions()
261 act->sample.rate, in mlxsw_sp_flower_parse_actions()
262 act->sample.trunc_size, in mlxsw_sp_flower_parse_actions()
263 act->sample.truncate, in mlxsw_sp_flower_parse_actions()