Lines Matching refs:rule

14 	struct flow_rule *rule = flow_cls_offload_flow_rule(cls);
15 struct flow_dissector *dissector = rule->match.dissector;
36 if (flow_rule_match_has_control_flags(rule, extack))
39 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_BASIC)) {
42 flow_rule_match_basic(rule, &match);
49 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ETH_ADDRS)) {
52 flow_rule_match_eth_addrs(rule, &match);
59 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_VLAN)) {
62 flow_rule_match_vlan(rule, &match);
74 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IPV4_ADDRS)) {
77 flow_rule_match_ipv4_addrs(rule, &match);
84 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_PORTS)) {
87 flow_rule_match_ports(rule, &match);
94 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IP)) {
97 flow_rule_match_ip(rule, &match);
429 /* We cannot add a per VLAN mirroring rule if the VLAN in
496 struct flow_rule *rule = flow_cls_offload_flow_rule(cls);
516 act = &rule->action.entries[0];
540 struct flow_rule *rule = flow_cls_offload_flow_rule(cls);
541 struct flow_dissector *dissector = rule->match.dissector;
554 if (flow_rule_match_has_control_flags(rule, extack))
557 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_VLAN)) {
560 flow_rule_match_vlan(rule, &match);
597 cls_act = &cls->rule->action.entries[0];
622 /* Make sure that we don't already have a mirror rule with the same
651 struct flow_rule *rule = flow_cls_offload_flow_rule(cls);
655 if (!flow_offload_has_one_action(&rule->action)) {
660 act = &rule->action.entries[0];
715 act = &cls->rule->action.entries[0];
750 cls_act = &cls->rule->action.entries[0];
770 /* Make sure that we don't already have a mirror rule with the same
771 * configuration. One matchall rule per block is the maximum.
800 if (!flow_offload_has_one_action(&cls->rule->action)) {
805 act = &cls->rule->action.entries[0];