Lines Matching defs: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_key(rule, FLOW_DISSECTOR_KEY_BASIC)) {
39 flow_rule_match_basic(rule, &match);
46 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ETH_ADDRS)) {
49 flow_rule_match_eth_addrs(rule, &match);
56 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_VLAN)) {
59 flow_rule_match_vlan(rule, &match);
71 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IPV4_ADDRS)) {
74 flow_rule_match_ipv4_addrs(rule, &match);
81 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_PORTS)) {
84 flow_rule_match_ports(rule, &match);
91 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IP)) {
94 flow_rule_match_ip(rule, &match);
426 /* We cannot add a per VLAN mirroring rule if the VLAN in
493 struct flow_rule *rule = flow_cls_offload_flow_rule(cls);
513 act = &rule->action.entries[0];
537 struct flow_rule *rule = flow_cls_offload_flow_rule(cls);
538 struct flow_dissector *dissector = rule->match.dissector;
551 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_VLAN)) {
554 flow_rule_match_vlan(rule, &match);
591 cls_act = &cls->rule->action.entries[0];
616 /* Make sure that we don't already have a mirror rule with the same
645 struct flow_rule *rule = flow_cls_offload_flow_rule(cls);
649 if (!flow_offload_has_one_action(&rule->action)) {
654 act = &rule->action.entries[0];
709 act = &cls->rule->action.entries[0];
744 cls_act = &cls->rule->action.entries[0];
764 /* Make sure that we don't already have a mirror rule with the same
765 * configuration. One matchall rule per block is the maximum.
794 if (!flow_offload_has_one_action(&cls->rule->action)) {
799 act = &cls->rule->action.entries[0];