Lines Matching refs:rulei
20 struct mlxsw_sp_acl_rule_info *rulei, in mlxsw_sp_flower_parse_actions() argument
39 err = mlxsw_sp_acl_rulei_act_count(mlxsw_sp, rulei, extack); in mlxsw_sp_flower_parse_actions()
50 err = mlxsw_sp_acl_rulei_act_terminate(rulei); in mlxsw_sp_flower_parse_actions()
64 err = mlxsw_sp_acl_rulei_act_drop(rulei, ingress, in mlxsw_sp_flower_parse_actions()
76 rulei->egress_bind_blocker = 1; in mlxsw_sp_flower_parse_actions()
78 rulei->ingress_bind_blocker = 1; in mlxsw_sp_flower_parse_actions()
82 err = mlxsw_sp_acl_rulei_act_trap(rulei); in mlxsw_sp_flower_parse_actions()
100 err = mlxsw_sp_acl_rulei_act_jump(rulei, group_id); in mlxsw_sp_flower_parse_actions()
120 rulei->egress_bind_blocker = 1; in mlxsw_sp_flower_parse_actions()
124 err = mlxsw_sp_acl_rulei_act_fid_set(mlxsw_sp, rulei, in mlxsw_sp_flower_parse_actions()
130 err = mlxsw_sp_acl_rulei_act_fwd(mlxsw_sp, rulei, in mlxsw_sp_flower_parse_actions()
144 err = mlxsw_sp_acl_rulei_act_mirror(mlxsw_sp, rulei, in mlxsw_sp_flower_parse_actions()
156 err = mlxsw_sp_acl_rulei_act_vlan(mlxsw_sp, rulei, in mlxsw_sp_flower_parse_actions()
164 err = mlxsw_sp_acl_rulei_act_priority(mlxsw_sp, rulei, in mlxsw_sp_flower_parse_actions()
178 err = mlxsw_sp_acl_rulei_act_mangle(mlxsw_sp, rulei, in mlxsw_sp_flower_parse_actions()
199 err = mlxsw_sp_acl_rulei_act_police(mlxsw_sp, rulei, in mlxsw_sp_flower_parse_actions()
216 static int mlxsw_sp_flower_parse_meta(struct mlxsw_sp_acl_rule_info *rulei, in mlxsw_sp_flower_parse_meta() argument
252 mlxsw_sp_acl_rulei_keymask_u32(rulei, in mlxsw_sp_flower_parse_meta()
259 static void mlxsw_sp_flower_parse_ipv4(struct mlxsw_sp_acl_rule_info *rulei, in mlxsw_sp_flower_parse_ipv4() argument
266 mlxsw_sp_acl_rulei_keymask_buf(rulei, MLXSW_AFK_ELEMENT_SRC_IP_0_31, in mlxsw_sp_flower_parse_ipv4()
269 mlxsw_sp_acl_rulei_keymask_buf(rulei, MLXSW_AFK_ELEMENT_DST_IP_0_31, in mlxsw_sp_flower_parse_ipv4()
274 static void mlxsw_sp_flower_parse_ipv6(struct mlxsw_sp_acl_rule_info *rulei, in mlxsw_sp_flower_parse_ipv6() argument
281 mlxsw_sp_acl_rulei_keymask_buf(rulei, MLXSW_AFK_ELEMENT_SRC_IP_96_127, in mlxsw_sp_flower_parse_ipv6()
284 mlxsw_sp_acl_rulei_keymask_buf(rulei, MLXSW_AFK_ELEMENT_SRC_IP_64_95, in mlxsw_sp_flower_parse_ipv6()
287 mlxsw_sp_acl_rulei_keymask_buf(rulei, MLXSW_AFK_ELEMENT_SRC_IP_32_63, in mlxsw_sp_flower_parse_ipv6()
290 mlxsw_sp_acl_rulei_keymask_buf(rulei, MLXSW_AFK_ELEMENT_SRC_IP_0_31, in mlxsw_sp_flower_parse_ipv6()
293 mlxsw_sp_acl_rulei_keymask_buf(rulei, MLXSW_AFK_ELEMENT_DST_IP_96_127, in mlxsw_sp_flower_parse_ipv6()
296 mlxsw_sp_acl_rulei_keymask_buf(rulei, MLXSW_AFK_ELEMENT_DST_IP_64_95, in mlxsw_sp_flower_parse_ipv6()
299 mlxsw_sp_acl_rulei_keymask_buf(rulei, MLXSW_AFK_ELEMENT_DST_IP_32_63, in mlxsw_sp_flower_parse_ipv6()
302 mlxsw_sp_acl_rulei_keymask_buf(rulei, MLXSW_AFK_ELEMENT_DST_IP_0_31, in mlxsw_sp_flower_parse_ipv6()
308 struct mlxsw_sp_acl_rule_info *rulei, in mlxsw_sp_flower_parse_ports() argument
325 mlxsw_sp_acl_rulei_keymask_u32(rulei, MLXSW_AFK_ELEMENT_DST_L4_PORT, in mlxsw_sp_flower_parse_ports()
328 mlxsw_sp_acl_rulei_keymask_u32(rulei, MLXSW_AFK_ELEMENT_SRC_L4_PORT, in mlxsw_sp_flower_parse_ports()
335 struct mlxsw_sp_acl_rule_info *rulei, in mlxsw_sp_flower_parse_tcp() argument
359 mlxsw_sp_acl_rulei_keymask_u32(rulei, MLXSW_AFK_ELEMENT_TCP_FLAGS, in mlxsw_sp_flower_parse_tcp()
366 struct mlxsw_sp_acl_rule_info *rulei, in mlxsw_sp_flower_parse_ip() argument
384 mlxsw_sp_acl_rulei_keymask_u32(rulei, MLXSW_AFK_ELEMENT_IP_TTL_, in mlxsw_sp_flower_parse_ip()
387 mlxsw_sp_acl_rulei_keymask_u32(rulei, MLXSW_AFK_ELEMENT_IP_ECN, in mlxsw_sp_flower_parse_ip()
391 mlxsw_sp_acl_rulei_keymask_u32(rulei, MLXSW_AFK_ELEMENT_IP_DSCP, in mlxsw_sp_flower_parse_ip()
400 struct mlxsw_sp_acl_rule_info *rulei, in mlxsw_sp_flower_parse() argument
427 mlxsw_sp_acl_rulei_priority(rulei, f->common.prio); in mlxsw_sp_flower_parse()
429 err = mlxsw_sp_flower_parse_meta(rulei, f, block); in mlxsw_sp_flower_parse()
451 mlxsw_sp_acl_rulei_keymask_u32(rulei, in mlxsw_sp_flower_parse()
456 mlxsw_sp_acl_rulei_keymask_u32(rulei, in mlxsw_sp_flower_parse()
466 mlxsw_sp_acl_rulei_keymask_buf(rulei, in mlxsw_sp_flower_parse()
470 mlxsw_sp_acl_rulei_keymask_buf(rulei, in mlxsw_sp_flower_parse()
474 mlxsw_sp_acl_rulei_keymask_buf(rulei, in mlxsw_sp_flower_parse()
478 mlxsw_sp_acl_rulei_keymask_buf(rulei, in mlxsw_sp_flower_parse()
496 rulei->egress_bind_blocker = 1; in mlxsw_sp_flower_parse()
499 mlxsw_sp_acl_rulei_keymask_u32(rulei, in mlxsw_sp_flower_parse()
504 mlxsw_sp_acl_rulei_keymask_u32(rulei, in mlxsw_sp_flower_parse()
511 mlxsw_sp_flower_parse_ipv4(rulei, f); in mlxsw_sp_flower_parse()
514 mlxsw_sp_flower_parse_ipv6(rulei, f); in mlxsw_sp_flower_parse()
516 err = mlxsw_sp_flower_parse_ports(mlxsw_sp, rulei, f, ip_proto); in mlxsw_sp_flower_parse()
519 err = mlxsw_sp_flower_parse_tcp(mlxsw_sp, rulei, f, ip_proto); in mlxsw_sp_flower_parse()
523 err = mlxsw_sp_flower_parse_ip(mlxsw_sp, rulei, f, n_proto_key & n_proto_mask); in mlxsw_sp_flower_parse()
527 return mlxsw_sp_flower_parse_actions(mlxsw_sp, block, rulei, in mlxsw_sp_flower_parse()
564 struct mlxsw_sp_acl_rule_info *rulei; in mlxsw_sp_flower_replace() local
586 rulei = mlxsw_sp_acl_rule_rulei(rule); in mlxsw_sp_flower_replace()
587 err = mlxsw_sp_flower_parse(mlxsw_sp, block, rulei, f); in mlxsw_sp_flower_replace()
591 err = mlxsw_sp_acl_rulei_commit(rulei); in mlxsw_sp_flower_replace()
677 struct mlxsw_sp_acl_rule_info rulei; in mlxsw_sp_flower_tmplt_create() local
680 memset(&rulei, 0, sizeof(rulei)); in mlxsw_sp_flower_tmplt_create()
681 err = mlxsw_sp_flower_parse(mlxsw_sp, block, &rulei, f); in mlxsw_sp_flower_tmplt_create()
687 &rulei.values.elusage); in mlxsw_sp_flower_tmplt_create()