Lines Matching refs:rule
278 if (WARN_ONCE(*rule_p, "VLAN rule already exists type %d", rule_type))
286 fs_err(fs, "add rule failed\n");
372 struct mlx5_flow_handle *rule;
383 rule = mlx5_add_flow_rules(ft, spec, &flow_act, &dest, 1);
385 return rule;
391 struct mlx5_flow_handle *rule;
394 rule = mlx5e_add_trap_rule(ft, trap_id, tir_num);
395 if (IS_ERR(rule)) {
396 err = PTR_ERR(rule);
398 fs_err(fs, "add VLAN trap rule failed, err %d\n", err);
401 fs->vlan->trap_rule = rule;
416 struct mlx5_flow_handle *rule;
419 rule = mlx5e_add_trap_rule(ft, trap_id, tir_num);
420 if (IS_ERR(rule)) {
421 err = PTR_ERR(rule);
423 fs_err(fs, "add MAC trap rule failed, err %d\n", err);
426 fs->l2.trap_rule = rule;
759 rule_p = &fs->promisc.rule;
764 fs_err(fs, "add promiscuous rule failed\n");
804 if (WARN(!fs->promisc.rule, "Trying to remove non-existing promiscuous rule"))
806 mlx5_del_flow_rules(fs->promisc.rule);
807 fs->promisc.rule = NULL;
949 if (!IS_ERR_OR_NULL(ai->rule)) {
950 mlx5_del_flow_rules(ai->rule);
951 ai->rule = NULL;
992 ai->rule = mlx5_add_flow_rules(ft, spec, &flow_act, &dest, 1);
993 if (IS_ERR(ai->rule)) {
994 fs_err(fs, "add l2 rule(mac:%pM) failed\n", mv_dmac);
995 err = PTR_ERR(ai->rule);
996 ai->rule = NULL;