Lines Matching defs:act

290 	struct flow_action *act = &rule->action;
294 if (!flow_action_has_entries(act)) {
299 if (!flow_action_basic_hw_stats_check(act, fco->common.extack))
302 flow_action_for_each(idx, actent, act) {
703 struct flow_action_entry *act,
708 if (act->gate.prio < -1 || act->gate.prio > SPX5_PSFP_SG_MAX_IPV) {
713 if (act->gate.cycletime < SPX5_PSFP_SG_MIN_CYCLE_TIME_NS ||
714 act->gate.cycletime > SPX5_PSFP_SG_MAX_CYCLE_TIME_NS) {
719 if (act->gate.cycletimeext > SPX5_PSFP_SG_MAX_CYCLE_TIME_NS) {
724 if (act->gate.num_entries >= SPX5_PSFP_GCE_CNT) {
730 sg->ipv = act->gate.prio;
731 sg->num_entries = act->gate.num_entries;
732 sg->cycletime = act->gate.cycletime;
733 sg->cycletimeext = act->gate.cycletimeext;
736 sg->gce[i].gate_state = !!act->gate.entries[i].gate_state;
737 sg->gce[i].interval = act->gate.entries[i].interval;
738 sg->gce[i].ipv = act->gate.entries[i].ipv;
739 sg->gce[i].maxoctets = act->gate.entries[i].maxoctets;
746 struct flow_action_entry *act,
750 pol->rate = div_u64(act->police.rate_bytes_ps, 1000) * 8;
751 pol->burst = act->police.burst;
752 pol->idx = act->hw_index;
760 if (act->police.exceed.act_id != FLOW_ACTION_DROP) {
765 if (act->police.notexceed.act_id != FLOW_ACTION_PIPE &&
766 act->police.notexceed.act_id != FLOW_ACTION_ACCEPT) {
913 struct flow_action_entry *act,
959 act->vlan.vid);
971 act->vlan.prio);
983 struct flow_action_entry *act,
986 u16 act_tpid = be16_to_cpu(act->vlan.proto);
1004 err = sparx5_tc_action_vlan_modify(admin, vrule, fco, act, act_tpid);
1043 struct flow_action_entry *act)
1059 sparx5_tc_flower_set_port_mask(&ports, act->dev);
1067 struct flow_action_entry *act)
1083 sparx5_tc_flower_set_port_mask(&ports, act->dev);
1173 struct flow_action_entry *act;
1207 flow_action_for_each(idx, act, &frule->action) {
1208 switch (act->id) {
1210 err = sparx5_tc_flower_parse_act_gate(&sg, act, extack);
1214 tc_sg_idx = act->hw_index;
1219 err = sparx5_tc_flower_parse_act_police(&fm.pol, act,
1225 sf.max_sdu = act->police.mtu;
1235 err = sparx5_tc_action_mirred(admin, vrule, fco, act);
1240 err = sparx5_tc_action_redirect(admin, vrule, fco, act);
1255 act->chain_index);
1265 act, state.tpid);
1271 act, state.tpid);