Lines Matching refs:action

191 	filter->action.vid_replace_ena = true;  in ocelot_flower_parse_ingress_vlan_modify()
192 filter->action.pcp_dei_ena = true; in ocelot_flower_parse_ingress_vlan_modify()
193 filter->action.vid = a->vlan.vid; in ocelot_flower_parse_ingress_vlan_modify()
194 filter->action.pcp = a->vlan.prio; in ocelot_flower_parse_ingress_vlan_modify()
220 filter->action.tag_a_tpid_sel = tpid; in ocelot_flower_parse_egress_vlan_modify()
221 filter->action.push_outer_tag = OCELOT_ES0_TAG; in ocelot_flower_parse_egress_vlan_modify()
222 filter->action.tag_a_vid_sel = OCELOT_ES0_VID_PLUS_CLASSIFIED_VID; in ocelot_flower_parse_egress_vlan_modify()
223 filter->action.vid_a_val = a->vlan.vid; in ocelot_flower_parse_egress_vlan_modify()
224 filter->action.pcp_a_val = a->vlan.prio; in ocelot_flower_parse_egress_vlan_modify()
225 filter->action.tag_a_pcp_sel = OCELOT_ES0_PCP; in ocelot_flower_parse_egress_vlan_modify()
235 const struct flow_action *action = &f->rule->action; in ocelot_flower_parse_action() local
245 if (!flow_action_basic_hw_stats_check(&f->rule->action, in ocelot_flower_parse_action()
263 flow_action_for_each(i, a, action) { in ocelot_flower_parse_action()
276 filter->action.mask_mode = OCELOT_MASK_MODE_PERMIT_DENY; in ocelot_flower_parse_action()
277 filter->action.port_mask = 0; in ocelot_flower_parse_action()
278 filter->action.police_ena = true; in ocelot_flower_parse_action()
279 filter->action.pol_ix = OCELOT_POLICER_DISCARD; in ocelot_flower_parse_action()
310 filter->action.mask_mode = OCELOT_MASK_MODE_PERMIT_DENY; in ocelot_flower_parse_action()
311 filter->action.port_mask = 0; in ocelot_flower_parse_action()
312 filter->action.cpu_copy_ena = true; in ocelot_flower_parse_action()
313 filter->action.cpu_qu_num = 0; in ocelot_flower_parse_action()
334 err = ocelot_policer_validate(action, a, extack); in ocelot_flower_parse_action()
338 filter->action.police_ena = true; in ocelot_flower_parse_action()
351 filter->action.pol_ix = pol_ix; in ocelot_flower_parse_action()
354 filter->action.pol.rate = div_u64(rate, 1000) * 8; in ocelot_flower_parse_action()
355 filter->action.pol.burst = a->police.burst; in ocelot_flower_parse_action()
375 filter->action.mask_mode = OCELOT_MASK_MODE_REDIRECT; in ocelot_flower_parse_action()
376 filter->action.port_mask = BIT(egress_port); in ocelot_flower_parse_action()
397 filter->action.mirror_ena = true; in ocelot_flower_parse_action()
411 filter->action.vlan_pop_cnt_ena = true; in ocelot_flower_parse_action()
412 filter->action.vlan_pop_cnt++; in ocelot_flower_parse_action()
413 if (filter->action.vlan_pop_cnt > 2) { in ocelot_flower_parse_action()
447 filter->action.qos_ena = true; in ocelot_flower_parse_action()
448 filter->action.qos_val = a->priority; in ocelot_flower_parse_action()
457 filter->action.pag_override_mask = 0xff; in ocelot_flower_parse_action()
458 filter->action.pag_val = pag; in ocelot_flower_parse_action()
480 filter->action.tag_a_tpid_sel = tpid; in ocelot_flower_parse_action()
481 filter->action.push_outer_tag = OCELOT_ES0_TAG; in ocelot_flower_parse_action()
482 filter->action.tag_a_vid_sel = OCELOT_ES0_VID; in ocelot_flower_parse_action()
483 filter->action.vid_a_val = a->vlan.vid; in ocelot_flower_parse_action()
484 filter->action.pcp_a_val = a->vlan.prio; in ocelot_flower_parse_action()
843 filter->action.tag_a_vid_sel != OCELOT_ES0_VID_PLUS_CLASSIFIED_VID) in ocelot_flower_patch_es0_vlan_modify()
852 filter->action.vid_a_val -= filter->vlan.vid.value; in ocelot_flower_patch_es0_vlan_modify()
853 filter->action.vid_a_val &= VLAN_VID_MASK; in ocelot_flower_patch_es0_vlan_modify()