Lines Matching refs:rule

12 	struct flow_rule *rule;  in flow_rule_alloc()  local
15 rule = kzalloc(struct_size(rule, action.entries, num_actions), in flow_rule_alloc()
17 if (!rule) in flow_rule_alloc()
20 rule->action.num_entries = num_actions; in flow_rule_alloc()
25 rule->action.entries[i].hw_stats = FLOW_ACTION_HW_STATS_DONT_CARE; in flow_rule_alloc()
27 return rule; in flow_rule_alloc()
58 void flow_rule_match_meta(const struct flow_rule *rule, in flow_rule_match_meta() argument
61 FLOW_DISSECTOR_MATCH(rule, FLOW_DISSECTOR_KEY_META, out); in flow_rule_match_meta()
65 void flow_rule_match_basic(const struct flow_rule *rule, in flow_rule_match_basic() argument
68 FLOW_DISSECTOR_MATCH(rule, FLOW_DISSECTOR_KEY_BASIC, out); in flow_rule_match_basic()
72 void flow_rule_match_control(const struct flow_rule *rule, in flow_rule_match_control() argument
75 FLOW_DISSECTOR_MATCH(rule, FLOW_DISSECTOR_KEY_CONTROL, out); in flow_rule_match_control()
79 void flow_rule_match_eth_addrs(const struct flow_rule *rule, in flow_rule_match_eth_addrs() argument
82 FLOW_DISSECTOR_MATCH(rule, FLOW_DISSECTOR_KEY_ETH_ADDRS, out); in flow_rule_match_eth_addrs()
86 void flow_rule_match_vlan(const struct flow_rule *rule, in flow_rule_match_vlan() argument
89 FLOW_DISSECTOR_MATCH(rule, FLOW_DISSECTOR_KEY_VLAN, out); in flow_rule_match_vlan()
93 void flow_rule_match_cvlan(const struct flow_rule *rule, in flow_rule_match_cvlan() argument
96 FLOW_DISSECTOR_MATCH(rule, FLOW_DISSECTOR_KEY_CVLAN, out); in flow_rule_match_cvlan()
100 void flow_rule_match_ipv4_addrs(const struct flow_rule *rule, in flow_rule_match_ipv4_addrs() argument
103 FLOW_DISSECTOR_MATCH(rule, FLOW_DISSECTOR_KEY_IPV4_ADDRS, out); in flow_rule_match_ipv4_addrs()
107 void flow_rule_match_ipv6_addrs(const struct flow_rule *rule, in flow_rule_match_ipv6_addrs() argument
110 FLOW_DISSECTOR_MATCH(rule, FLOW_DISSECTOR_KEY_IPV6_ADDRS, out); in flow_rule_match_ipv6_addrs()
114 void flow_rule_match_ip(const struct flow_rule *rule, in flow_rule_match_ip() argument
117 FLOW_DISSECTOR_MATCH(rule, FLOW_DISSECTOR_KEY_IP, out); in flow_rule_match_ip()
121 void flow_rule_match_ports(const struct flow_rule *rule, in flow_rule_match_ports() argument
124 FLOW_DISSECTOR_MATCH(rule, FLOW_DISSECTOR_KEY_PORTS, out); in flow_rule_match_ports()
128 void flow_rule_match_ports_range(const struct flow_rule *rule, in flow_rule_match_ports_range() argument
131 FLOW_DISSECTOR_MATCH(rule, FLOW_DISSECTOR_KEY_PORTS_RANGE, out); in flow_rule_match_ports_range()
135 void flow_rule_match_tcp(const struct flow_rule *rule, in flow_rule_match_tcp() argument
138 FLOW_DISSECTOR_MATCH(rule, FLOW_DISSECTOR_KEY_TCP, out); in flow_rule_match_tcp()
142 void flow_rule_match_icmp(const struct flow_rule *rule, in flow_rule_match_icmp() argument
145 FLOW_DISSECTOR_MATCH(rule, FLOW_DISSECTOR_KEY_ICMP, out); in flow_rule_match_icmp()
149 void flow_rule_match_mpls(const struct flow_rule *rule, in flow_rule_match_mpls() argument
152 FLOW_DISSECTOR_MATCH(rule, FLOW_DISSECTOR_KEY_MPLS, out); in flow_rule_match_mpls()
156 void flow_rule_match_enc_control(const struct flow_rule *rule, in flow_rule_match_enc_control() argument
159 FLOW_DISSECTOR_MATCH(rule, FLOW_DISSECTOR_KEY_ENC_CONTROL, out); in flow_rule_match_enc_control()
163 void flow_rule_match_enc_ipv4_addrs(const struct flow_rule *rule, in flow_rule_match_enc_ipv4_addrs() argument
166 FLOW_DISSECTOR_MATCH(rule, FLOW_DISSECTOR_KEY_ENC_IPV4_ADDRS, out); in flow_rule_match_enc_ipv4_addrs()
170 void flow_rule_match_enc_ipv6_addrs(const struct flow_rule *rule, in flow_rule_match_enc_ipv6_addrs() argument
173 FLOW_DISSECTOR_MATCH(rule, FLOW_DISSECTOR_KEY_ENC_IPV6_ADDRS, out); in flow_rule_match_enc_ipv6_addrs()
177 void flow_rule_match_enc_ip(const struct flow_rule *rule, in flow_rule_match_enc_ip() argument
180 FLOW_DISSECTOR_MATCH(rule, FLOW_DISSECTOR_KEY_ENC_IP, out); in flow_rule_match_enc_ip()
184 void flow_rule_match_enc_ports(const struct flow_rule *rule, in flow_rule_match_enc_ports() argument
187 FLOW_DISSECTOR_MATCH(rule, FLOW_DISSECTOR_KEY_ENC_PORTS, out); in flow_rule_match_enc_ports()
191 void flow_rule_match_enc_keyid(const struct flow_rule *rule, in flow_rule_match_enc_keyid() argument
194 FLOW_DISSECTOR_MATCH(rule, FLOW_DISSECTOR_KEY_ENC_KEYID, out); in flow_rule_match_enc_keyid()
198 void flow_rule_match_enc_opts(const struct flow_rule *rule, in flow_rule_match_enc_opts() argument
201 FLOW_DISSECTOR_MATCH(rule, FLOW_DISSECTOR_KEY_ENC_OPTS, out); in flow_rule_match_enc_opts()
226 void flow_rule_match_ct(const struct flow_rule *rule, in flow_rule_match_ct() argument
229 FLOW_DISSECTOR_MATCH(rule, FLOW_DISSECTOR_KEY_CT, out); in flow_rule_match_ct()
233 void flow_rule_match_pppoe(const struct flow_rule *rule, in flow_rule_match_pppoe() argument
236 FLOW_DISSECTOR_MATCH(rule, FLOW_DISSECTOR_KEY_PPPOE, out); in flow_rule_match_pppoe()
240 void flow_rule_match_l2tpv3(const struct flow_rule *rule, in flow_rule_match_l2tpv3() argument
243 FLOW_DISSECTOR_MATCH(rule, FLOW_DISSECTOR_KEY_L2TPV3, out); in flow_rule_match_l2tpv3()