Lines Matching refs:rule
255 /* We want to support a rule with 32 destinations, which means we need to
273 struct mlx5dr_rule *rule;
345 mlx5dr_err(domain, "FW-owned reformat can't be used in SW rule\n");
600 rule = mlx5dr_rule_create(group->fs_dr_matcher.dr_matcher,
605 if (!rule) {
613 fte->fs_dr_rule.dr_rule = rule;
631 mlx5_core_err(dev, "Failed to create dr rule err(%d)\n", err);
739 struct mlx5_fs_dr_rule *rule = &fte->fs_dr_rule;
746 err = mlx5dr_rule_destroy(rule->dr_rule);
751 for (i = rule->num_actions - 1; i >= 0; i--)
752 if (!IS_ERR_OR_NULL(rule->dr_actions[i]))
753 mlx5dr_action_destroy(rule->dr_actions[i]);
755 kfree(rule->dr_actions);
771 /* Backup current dr rule details */
775 /* First add the new updated rule, then delete the old rule */
781 WARN_ONCE(ret, "dr update fte duplicate rule deletion failed\n");