Lines Matching refs:ruleset
131 struct mlxsw_sp_acl_ruleset *ruleset; in mlxsw_sp_flower_parse_actions() local
134 ruleset = mlxsw_sp_acl_ruleset_lookup(mlxsw_sp, block, in mlxsw_sp_flower_parse_actions()
137 if (IS_ERR(ruleset)) in mlxsw_sp_flower_parse_actions()
138 return PTR_ERR(ruleset); in mlxsw_sp_flower_parse_actions()
140 group_id = mlxsw_sp_acl_ruleset_group_id(ruleset); in mlxsw_sp_flower_parse_actions()
735 struct mlxsw_sp_acl_ruleset *ruleset; in mlxsw_sp_flower_replace() local
743 ruleset = mlxsw_sp_acl_ruleset_get(mlxsw_sp, block, in mlxsw_sp_flower_replace()
746 if (IS_ERR(ruleset)) in mlxsw_sp_flower_replace()
747 return PTR_ERR(ruleset); in mlxsw_sp_flower_replace()
749 rule = mlxsw_sp_acl_rule_create(mlxsw_sp, ruleset, f->cookie, NULL, in mlxsw_sp_flower_replace()
769 mlxsw_sp_acl_ruleset_put(mlxsw_sp, ruleset); in mlxsw_sp_flower_replace()
777 mlxsw_sp_acl_ruleset_put(mlxsw_sp, ruleset); in mlxsw_sp_flower_replace()
785 struct mlxsw_sp_acl_ruleset *ruleset; in mlxsw_sp_flower_destroy() local
788 ruleset = mlxsw_sp_acl_ruleset_get(mlxsw_sp, block, in mlxsw_sp_flower_destroy()
791 if (IS_ERR(ruleset)) in mlxsw_sp_flower_destroy()
794 rule = mlxsw_sp_acl_rule_lookup(mlxsw_sp, ruleset, f->cookie); in mlxsw_sp_flower_destroy()
800 mlxsw_sp_acl_ruleset_put(mlxsw_sp, ruleset); in mlxsw_sp_flower_destroy()
808 struct mlxsw_sp_acl_ruleset *ruleset; in mlxsw_sp_flower_stats() local
816 ruleset = mlxsw_sp_acl_ruleset_get(mlxsw_sp, block, in mlxsw_sp_flower_stats()
819 if (WARN_ON(IS_ERR(ruleset))) in mlxsw_sp_flower_stats()
822 rule = mlxsw_sp_acl_rule_lookup(mlxsw_sp, ruleset, f->cookie); in mlxsw_sp_flower_stats()
834 mlxsw_sp_acl_ruleset_put(mlxsw_sp, ruleset); in mlxsw_sp_flower_stats()
838 mlxsw_sp_acl_ruleset_put(mlxsw_sp, ruleset); in mlxsw_sp_flower_stats()
846 struct mlxsw_sp_acl_ruleset *ruleset; in mlxsw_sp_flower_tmplt_create() local
854 ruleset = mlxsw_sp_acl_ruleset_get(mlxsw_sp, block, in mlxsw_sp_flower_tmplt_create()
860 return PTR_ERR_OR_ZERO(ruleset); in mlxsw_sp_flower_tmplt_create()
867 struct mlxsw_sp_acl_ruleset *ruleset; in mlxsw_sp_flower_tmplt_destroy() local
869 ruleset = mlxsw_sp_acl_ruleset_get(mlxsw_sp, block, in mlxsw_sp_flower_tmplt_destroy()
872 if (IS_ERR(ruleset)) in mlxsw_sp_flower_tmplt_destroy()
875 mlxsw_sp_acl_ruleset_put(mlxsw_sp, ruleset); in mlxsw_sp_flower_tmplt_destroy()
876 mlxsw_sp_acl_ruleset_put(mlxsw_sp, ruleset); in mlxsw_sp_flower_tmplt_destroy()
884 struct mlxsw_sp_acl_ruleset *ruleset; in mlxsw_sp_flower_prio_get() local
886 ruleset = mlxsw_sp_acl_ruleset_lookup(mlxsw_sp, block, in mlxsw_sp_flower_prio_get()
889 if (IS_ERR(ruleset)) in mlxsw_sp_flower_prio_get()
894 return PTR_ERR(ruleset); in mlxsw_sp_flower_prio_get()
895 mlxsw_sp_acl_ruleset_prio_get(ruleset, p_min_prio, p_max_prio); in mlxsw_sp_flower_prio_get()