Lines Matching refs:match
169 struct flow_match_control match; in cxgb4_process_flow_match() local
171 flow_rule_match_control(rule, &match); in cxgb4_process_flow_match()
172 addr_type = match.key->addr_type; in cxgb4_process_flow_match()
180 struct flow_match_basic match; in cxgb4_process_flow_match() local
183 flow_rule_match_basic(rule, &match); in cxgb4_process_flow_match()
184 ethtype_key = ntohs(match.key->n_proto); in cxgb4_process_flow_match()
185 ethtype_mask = ntohs(match.mask->n_proto); in cxgb4_process_flow_match()
197 fs->val.proto = match.key->ip_proto; in cxgb4_process_flow_match()
198 fs->mask.proto = match.mask->ip_proto; in cxgb4_process_flow_match()
202 struct flow_match_ipv4_addrs match; in cxgb4_process_flow_match() local
204 flow_rule_match_ipv4_addrs(rule, &match); in cxgb4_process_flow_match()
206 memcpy(&fs->val.lip[0], &match.key->dst, sizeof(match.key->dst)); in cxgb4_process_flow_match()
207 memcpy(&fs->val.fip[0], &match.key->src, sizeof(match.key->src)); in cxgb4_process_flow_match()
208 memcpy(&fs->mask.lip[0], &match.mask->dst, sizeof(match.mask->dst)); in cxgb4_process_flow_match()
209 memcpy(&fs->mask.fip[0], &match.mask->src, sizeof(match.mask->src)); in cxgb4_process_flow_match()
212 memcpy(&fs->nat_lip[0], &match.key->dst, sizeof(match.key->dst)); in cxgb4_process_flow_match()
213 memcpy(&fs->nat_fip[0], &match.key->src, sizeof(match.key->src)); in cxgb4_process_flow_match()
217 struct flow_match_ipv6_addrs match; in cxgb4_process_flow_match() local
219 flow_rule_match_ipv6_addrs(rule, &match); in cxgb4_process_flow_match()
221 memcpy(&fs->val.lip[0], match.key->dst.s6_addr, in cxgb4_process_flow_match()
222 sizeof(match.key->dst)); in cxgb4_process_flow_match()
223 memcpy(&fs->val.fip[0], match.key->src.s6_addr, in cxgb4_process_flow_match()
224 sizeof(match.key->src)); in cxgb4_process_flow_match()
225 memcpy(&fs->mask.lip[0], match.mask->dst.s6_addr, in cxgb4_process_flow_match()
226 sizeof(match.mask->dst)); in cxgb4_process_flow_match()
227 memcpy(&fs->mask.fip[0], match.mask->src.s6_addr, in cxgb4_process_flow_match()
228 sizeof(match.mask->src)); in cxgb4_process_flow_match()
231 memcpy(&fs->nat_lip[0], match.key->dst.s6_addr, in cxgb4_process_flow_match()
232 sizeof(match.key->dst)); in cxgb4_process_flow_match()
233 memcpy(&fs->nat_fip[0], match.key->src.s6_addr, in cxgb4_process_flow_match()
234 sizeof(match.key->src)); in cxgb4_process_flow_match()
238 struct flow_match_ports match; in cxgb4_process_flow_match() local
240 flow_rule_match_ports(rule, &match); in cxgb4_process_flow_match()
241 fs->val.lport = be16_to_cpu(match.key->dst); in cxgb4_process_flow_match()
242 fs->mask.lport = be16_to_cpu(match.mask->dst); in cxgb4_process_flow_match()
243 fs->val.fport = be16_to_cpu(match.key->src); in cxgb4_process_flow_match()
244 fs->mask.fport = be16_to_cpu(match.mask->src); in cxgb4_process_flow_match()
252 struct flow_match_ip match; in cxgb4_process_flow_match() local
254 flow_rule_match_ip(rule, &match); in cxgb4_process_flow_match()
255 fs->val.tos = match.key->tos; in cxgb4_process_flow_match()
256 fs->mask.tos = match.mask->tos; in cxgb4_process_flow_match()
260 struct flow_match_enc_keyid match; in cxgb4_process_flow_match() local
262 flow_rule_match_enc_keyid(rule, &match); in cxgb4_process_flow_match()
263 fs->val.vni = be32_to_cpu(match.key->keyid); in cxgb4_process_flow_match()
264 fs->mask.vni = be32_to_cpu(match.mask->keyid); in cxgb4_process_flow_match()
272 struct flow_match_vlan match; in cxgb4_process_flow_match() local
275 flow_rule_match_vlan(rule, &match); in cxgb4_process_flow_match()
276 vlan_tci = match.key->vlan_id | (match.key->vlan_priority << in cxgb4_process_flow_match()
278 vlan_tci_mask = match.mask->vlan_id | (match.mask->vlan_priority << in cxgb4_process_flow_match()
311 struct flow_dissector *dissector = rule->match.dissector; in cxgb4_validate_flow_match()
330 struct flow_match_basic match; in cxgb4_validate_flow_match() local
332 flow_rule_match_basic(rule, &match); in cxgb4_validate_flow_match()
333 ethtype_key = ntohs(match.key->n_proto); in cxgb4_validate_flow_match()
334 ethtype_mask = ntohs(match.mask->n_proto); in cxgb4_validate_flow_match()
339 struct flow_match_ip match; in cxgb4_validate_flow_match() local
346 flow_rule_match_ip(rule, &match); in cxgb4_validate_flow_match()
347 if (match.mask->ttl) { in cxgb4_validate_flow_match()