Lines Matching refs:ruleset
11 struct prestera_acl_ruleset *ruleset; member
19 prestera_acl_ruleset_put(template->ruleset); in prestera_flower_template_free()
39 struct prestera_acl_ruleset *ruleset; in prestera_flower_parse_goto_action() local
48 ruleset = prestera_acl_ruleset_get(block->sw->acl, block, in prestera_flower_parse_goto_action()
50 if (IS_ERR(ruleset)) in prestera_flower_parse_goto_action()
51 return PTR_ERR(ruleset); in prestera_flower_parse_goto_action()
54 rule->re_arg.jump.i.index = prestera_acl_ruleset_index_get(ruleset); in prestera_flower_parse_goto_action()
56 rule->jump_ruleset = ruleset; in prestera_flower_parse_goto_action()
403 struct prestera_acl_ruleset *ruleset; in prestera_flower_prio_get() local
405 ruleset = prestera_acl_ruleset_lookup(block->sw->acl, block, chain_index); in prestera_flower_prio_get()
406 if (IS_ERR(ruleset)) in prestera_flower_prio_get()
407 return PTR_ERR(ruleset); in prestera_flower_prio_get()
409 prestera_acl_ruleset_prio_get(ruleset, prio_min, prio_max); in prestera_flower_prio_get()
416 struct prestera_acl_ruleset *ruleset; in prestera_flower_replace() local
425 ruleset = prestera_acl_ruleset_get(acl, block, f->common.chain_index); in prestera_flower_replace()
426 if (IS_ERR(ruleset)) in prestera_flower_replace()
427 return PTR_ERR(ruleset); in prestera_flower_replace()
430 rule = prestera_acl_rule_create(ruleset, f->cookie, in prestera_flower_replace()
441 if (!prestera_acl_ruleset_is_offload(ruleset)) { in prestera_flower_replace()
442 err = prestera_acl_ruleset_offload(ruleset); in prestera_flower_replace()
451 prestera_acl_ruleset_put(ruleset); in prestera_flower_replace()
458 prestera_acl_ruleset_put(ruleset); in prestera_flower_replace()
465 struct prestera_acl_ruleset *ruleset; in prestera_flower_destroy() local
468 ruleset = prestera_acl_ruleset_lookup(block->sw->acl, block, in prestera_flower_destroy()
470 if (IS_ERR(ruleset)) in prestera_flower_destroy()
473 rule = prestera_acl_rule_lookup(ruleset, f->cookie); in prestera_flower_destroy()
478 prestera_acl_ruleset_put(ruleset); in prestera_flower_destroy()
485 struct prestera_acl_ruleset *ruleset; in prestera_flower_tmplt_create() local
501 ruleset = prestera_acl_ruleset_get(block->sw->acl, block, in prestera_flower_tmplt_create()
503 if (IS_ERR_OR_NULL(ruleset)) { in prestera_flower_tmplt_create()
509 err = prestera_acl_ruleset_keymask_set(ruleset, rule.re_key.match.mask); in prestera_flower_tmplt_create()
519 prestera_acl_ruleset_offload(ruleset); in prestera_flower_tmplt_create()
522 template->ruleset = ruleset; in prestera_flower_tmplt_create()
528 prestera_acl_ruleset_put(ruleset); in prestera_flower_tmplt_create()
552 struct prestera_acl_ruleset *ruleset; in prestera_flower_stats() local
559 ruleset = prestera_acl_ruleset_lookup(block->sw->acl, block, in prestera_flower_stats()
561 if (IS_ERR(ruleset)) in prestera_flower_stats()
562 return PTR_ERR(ruleset); in prestera_flower_stats()
564 rule = prestera_acl_rule_lookup(ruleset, f->cookie); in prestera_flower_stats()
579 prestera_acl_ruleset_put(ruleset); in prestera_flower_stats()