Lines Matching refs:rule
28 struct sparx5_wildcard_rule rule[SPX5_MAX_RULE_SIZE];
288 struct flow_rule *rule = flow_cls_offload_flow_rule(fco);
290 struct flow_action *act = &rule->action;
362 /* Add a rule counter action */
413 /* Find the keysets that the rule can use */
443 mru = &multi->rule[kinfo->sw_per_item];
461 mru = &multi->rule[idx];
469 /* Set the chosen keyset on the rule and set a wildcarded type if there
473 mru = &multi->rule[idx];
493 struct sparx5_wildcard_rule *rule)
505 /* Add an extra rule with a special user and the new keyset */
511 /* Link the new rule to the existing rule with the cookie */
514 err = vcap_set_rule_set_keyset(vrule, rule->keyset);
516 pr_err("%s:%d: could not set keyset %s in rule: %u\n",
518 vcap_keyset_name(vctrl, rule->keyset),
524 vcap_rule_mod_key_u32(vrule, VCAP_KF_TYPE, rule->value, ~rule->mask);
536 pr_err("%s:%d: could not validate rule: %u\n",
543 pr_err("%s:%d: could not add rule: %u\n",
561 if (!multi->rule[idx].selected)
565 &multi->rule[idx]);
602 /* Add the VCAP key to match on for a rule target value */
640 /* Add the VCAP action that adds a target value to a rule */
834 /* Handle the action trap for a VCAP rule */
1088 /* Remove rule keys that may prevent templates from matching a keyset */
1327 /* Check if VCAP_AF_ISDX_VAL action is set for this rule - and if
1391 /* Resources are attached to the first rule of
1403 pr_err("%s:%d: could not delete rule %d\n",
1488 /* Find the keysets that the rule can use */