Lines Matching refs:rulei
19 struct mlxsw_sp_acl_rule_info *rulei, in mlxsw_sp_flower_parse_actions() argument
31 err = mlxsw_sp_acl_rulei_act_count(mlxsw_sp, rulei, extack); in mlxsw_sp_flower_parse_actions()
38 err = mlxsw_sp_acl_rulei_act_terminate(rulei); in mlxsw_sp_flower_parse_actions()
45 err = mlxsw_sp_acl_rulei_act_drop(rulei); in mlxsw_sp_flower_parse_actions()
52 err = mlxsw_sp_acl_rulei_act_trap(rulei); in mlxsw_sp_flower_parse_actions()
70 err = mlxsw_sp_acl_rulei_act_jump(rulei, group_id); in mlxsw_sp_flower_parse_actions()
90 rulei->egress_bind_blocker = 1; in mlxsw_sp_flower_parse_actions()
94 err = mlxsw_sp_acl_rulei_act_fid_set(mlxsw_sp, rulei, in mlxsw_sp_flower_parse_actions()
100 err = mlxsw_sp_acl_rulei_act_fwd(mlxsw_sp, rulei, in mlxsw_sp_flower_parse_actions()
114 err = mlxsw_sp_acl_rulei_act_mirror(mlxsw_sp, rulei, in mlxsw_sp_flower_parse_actions()
126 return mlxsw_sp_acl_rulei_act_vlan(mlxsw_sp, rulei, in mlxsw_sp_flower_parse_actions()
139 static int mlxsw_sp_flower_parse_meta(struct mlxsw_sp_acl_rule_info *rulei, in mlxsw_sp_flower_parse_meta() argument
175 mlxsw_sp_acl_rulei_keymask_u32(rulei, in mlxsw_sp_flower_parse_meta()
182 static void mlxsw_sp_flower_parse_ipv4(struct mlxsw_sp_acl_rule_info *rulei, in mlxsw_sp_flower_parse_ipv4() argument
189 mlxsw_sp_acl_rulei_keymask_buf(rulei, MLXSW_AFK_ELEMENT_SRC_IP_0_31, in mlxsw_sp_flower_parse_ipv4()
192 mlxsw_sp_acl_rulei_keymask_buf(rulei, MLXSW_AFK_ELEMENT_DST_IP_0_31, in mlxsw_sp_flower_parse_ipv4()
197 static void mlxsw_sp_flower_parse_ipv6(struct mlxsw_sp_acl_rule_info *rulei, in mlxsw_sp_flower_parse_ipv6() argument
204 mlxsw_sp_acl_rulei_keymask_buf(rulei, MLXSW_AFK_ELEMENT_SRC_IP_96_127, in mlxsw_sp_flower_parse_ipv6()
207 mlxsw_sp_acl_rulei_keymask_buf(rulei, MLXSW_AFK_ELEMENT_SRC_IP_64_95, in mlxsw_sp_flower_parse_ipv6()
210 mlxsw_sp_acl_rulei_keymask_buf(rulei, MLXSW_AFK_ELEMENT_SRC_IP_32_63, in mlxsw_sp_flower_parse_ipv6()
213 mlxsw_sp_acl_rulei_keymask_buf(rulei, MLXSW_AFK_ELEMENT_SRC_IP_0_31, in mlxsw_sp_flower_parse_ipv6()
216 mlxsw_sp_acl_rulei_keymask_buf(rulei, MLXSW_AFK_ELEMENT_DST_IP_96_127, in mlxsw_sp_flower_parse_ipv6()
219 mlxsw_sp_acl_rulei_keymask_buf(rulei, MLXSW_AFK_ELEMENT_DST_IP_64_95, in mlxsw_sp_flower_parse_ipv6()
222 mlxsw_sp_acl_rulei_keymask_buf(rulei, MLXSW_AFK_ELEMENT_DST_IP_32_63, in mlxsw_sp_flower_parse_ipv6()
225 mlxsw_sp_acl_rulei_keymask_buf(rulei, MLXSW_AFK_ELEMENT_DST_IP_0_31, in mlxsw_sp_flower_parse_ipv6()
231 struct mlxsw_sp_acl_rule_info *rulei, in mlxsw_sp_flower_parse_ports() argument
248 mlxsw_sp_acl_rulei_keymask_u32(rulei, MLXSW_AFK_ELEMENT_DST_L4_PORT, in mlxsw_sp_flower_parse_ports()
251 mlxsw_sp_acl_rulei_keymask_u32(rulei, MLXSW_AFK_ELEMENT_SRC_L4_PORT, in mlxsw_sp_flower_parse_ports()
258 struct mlxsw_sp_acl_rule_info *rulei, in mlxsw_sp_flower_parse_tcp() argument
282 mlxsw_sp_acl_rulei_keymask_u32(rulei, MLXSW_AFK_ELEMENT_TCP_FLAGS, in mlxsw_sp_flower_parse_tcp()
289 struct mlxsw_sp_acl_rule_info *rulei, in mlxsw_sp_flower_parse_ip() argument
307 mlxsw_sp_acl_rulei_keymask_u32(rulei, MLXSW_AFK_ELEMENT_IP_TTL_, in mlxsw_sp_flower_parse_ip()
310 mlxsw_sp_acl_rulei_keymask_u32(rulei, MLXSW_AFK_ELEMENT_IP_ECN, in mlxsw_sp_flower_parse_ip()
314 mlxsw_sp_acl_rulei_keymask_u32(rulei, MLXSW_AFK_ELEMENT_IP_DSCP, in mlxsw_sp_flower_parse_ip()
323 struct mlxsw_sp_acl_rule_info *rulei, in mlxsw_sp_flower_parse() argument
350 mlxsw_sp_acl_rulei_priority(rulei, f->common.prio); in mlxsw_sp_flower_parse()
352 err = mlxsw_sp_flower_parse_meta(rulei, f, block); in mlxsw_sp_flower_parse()
374 mlxsw_sp_acl_rulei_keymask_u32(rulei, in mlxsw_sp_flower_parse()
379 mlxsw_sp_acl_rulei_keymask_u32(rulei, in mlxsw_sp_flower_parse()
389 mlxsw_sp_acl_rulei_keymask_buf(rulei, in mlxsw_sp_flower_parse()
393 mlxsw_sp_acl_rulei_keymask_buf(rulei, in mlxsw_sp_flower_parse()
397 mlxsw_sp_acl_rulei_keymask_buf(rulei, in mlxsw_sp_flower_parse()
401 mlxsw_sp_acl_rulei_keymask_buf(rulei, in mlxsw_sp_flower_parse()
419 rulei->egress_bind_blocker = 1; in mlxsw_sp_flower_parse()
422 mlxsw_sp_acl_rulei_keymask_u32(rulei, in mlxsw_sp_flower_parse()
427 mlxsw_sp_acl_rulei_keymask_u32(rulei, in mlxsw_sp_flower_parse()
434 mlxsw_sp_flower_parse_ipv4(rulei, f); in mlxsw_sp_flower_parse()
437 mlxsw_sp_flower_parse_ipv6(rulei, f); in mlxsw_sp_flower_parse()
439 err = mlxsw_sp_flower_parse_ports(mlxsw_sp, rulei, f, ip_proto); in mlxsw_sp_flower_parse()
442 err = mlxsw_sp_flower_parse_tcp(mlxsw_sp, rulei, f, ip_proto); in mlxsw_sp_flower_parse()
446 err = mlxsw_sp_flower_parse_ip(mlxsw_sp, rulei, f, n_proto_key & n_proto_mask); in mlxsw_sp_flower_parse()
450 return mlxsw_sp_flower_parse_actions(mlxsw_sp, block, rulei, in mlxsw_sp_flower_parse()
459 struct mlxsw_sp_acl_rule_info *rulei; in mlxsw_sp_flower_replace() local
477 rulei = mlxsw_sp_acl_rule_rulei(rule); in mlxsw_sp_flower_replace()
478 err = mlxsw_sp_flower_parse(mlxsw_sp, block, rulei, f); in mlxsw_sp_flower_replace()
482 err = mlxsw_sp_acl_rulei_commit(rulei); in mlxsw_sp_flower_replace()
565 struct mlxsw_sp_acl_rule_info rulei; in mlxsw_sp_flower_tmplt_create() local
568 memset(&rulei, 0, sizeof(rulei)); in mlxsw_sp_flower_tmplt_create()
569 err = mlxsw_sp_flower_parse(mlxsw_sp, block, &rulei, f); in mlxsw_sp_flower_tmplt_create()
575 &rulei.values.elusage); in mlxsw_sp_flower_tmplt_create()