Lines Matching refs:match
223 struct flow_match_meta match; in mlxsw_sp_flower_parse_meta() local
228 flow_rule_match_meta(rule, &match); in mlxsw_sp_flower_parse_meta()
229 if (match.mask->ingress_ifindex != 0xFFFFFFFF) { in mlxsw_sp_flower_parse_meta()
235 match.key->ingress_ifindex); in mlxsw_sp_flower_parse_meta()
262 struct flow_match_ipv4_addrs match; in mlxsw_sp_flower_parse_ipv4() local
264 flow_rule_match_ipv4_addrs(f->rule, &match); in mlxsw_sp_flower_parse_ipv4()
267 (char *) &match.key->src, in mlxsw_sp_flower_parse_ipv4()
268 (char *) &match.mask->src, 4); in mlxsw_sp_flower_parse_ipv4()
270 (char *) &match.key->dst, in mlxsw_sp_flower_parse_ipv4()
271 (char *) &match.mask->dst, 4); in mlxsw_sp_flower_parse_ipv4()
277 struct flow_match_ipv6_addrs match; in mlxsw_sp_flower_parse_ipv6() local
279 flow_rule_match_ipv6_addrs(f->rule, &match); in mlxsw_sp_flower_parse_ipv6()
282 &match.key->src.s6_addr[0x0], in mlxsw_sp_flower_parse_ipv6()
283 &match.mask->src.s6_addr[0x0], 4); in mlxsw_sp_flower_parse_ipv6()
285 &match.key->src.s6_addr[0x4], in mlxsw_sp_flower_parse_ipv6()
286 &match.mask->src.s6_addr[0x4], 4); in mlxsw_sp_flower_parse_ipv6()
288 &match.key->src.s6_addr[0x8], in mlxsw_sp_flower_parse_ipv6()
289 &match.mask->src.s6_addr[0x8], 4); in mlxsw_sp_flower_parse_ipv6()
291 &match.key->src.s6_addr[0xC], in mlxsw_sp_flower_parse_ipv6()
292 &match.mask->src.s6_addr[0xC], 4); in mlxsw_sp_flower_parse_ipv6()
294 &match.key->dst.s6_addr[0x0], in mlxsw_sp_flower_parse_ipv6()
295 &match.mask->dst.s6_addr[0x0], 4); in mlxsw_sp_flower_parse_ipv6()
297 &match.key->dst.s6_addr[0x4], in mlxsw_sp_flower_parse_ipv6()
298 &match.mask->dst.s6_addr[0x4], 4); in mlxsw_sp_flower_parse_ipv6()
300 &match.key->dst.s6_addr[0x8], in mlxsw_sp_flower_parse_ipv6()
301 &match.mask->dst.s6_addr[0x8], 4); in mlxsw_sp_flower_parse_ipv6()
303 &match.key->dst.s6_addr[0xC], in mlxsw_sp_flower_parse_ipv6()
304 &match.mask->dst.s6_addr[0xC], 4); in mlxsw_sp_flower_parse_ipv6()
313 struct flow_match_ports match; in mlxsw_sp_flower_parse_ports() local
324 flow_rule_match_ports(rule, &match); in mlxsw_sp_flower_parse_ports()
326 ntohs(match.key->dst), in mlxsw_sp_flower_parse_ports()
327 ntohs(match.mask->dst)); in mlxsw_sp_flower_parse_ports()
329 ntohs(match.key->src), in mlxsw_sp_flower_parse_ports()
330 ntohs(match.mask->src)); in mlxsw_sp_flower_parse_ports()
340 struct flow_match_tcp match; in mlxsw_sp_flower_parse_tcp() local
351 flow_rule_match_tcp(rule, &match); in mlxsw_sp_flower_parse_tcp()
353 if (match.mask->flags & htons(0x0E00)) { in mlxsw_sp_flower_parse_tcp()
360 ntohs(match.key->flags), in mlxsw_sp_flower_parse_tcp()
361 ntohs(match.mask->flags)); in mlxsw_sp_flower_parse_tcp()
371 struct flow_match_ip match; in mlxsw_sp_flower_parse_ip() local
382 flow_rule_match_ip(rule, &match); in mlxsw_sp_flower_parse_ip()
385 match.key->ttl, match.mask->ttl); in mlxsw_sp_flower_parse_ip()
388 match.key->tos & 0x3, in mlxsw_sp_flower_parse_ip()
389 match.mask->tos & 0x3); in mlxsw_sp_flower_parse_ip()
392 match.key->tos >> 2, in mlxsw_sp_flower_parse_ip()
393 match.mask->tos >> 2); in mlxsw_sp_flower_parse_ip()
404 struct flow_dissector *dissector = rule->match.dissector; in mlxsw_sp_flower_parse()
434 struct flow_match_control match; in mlxsw_sp_flower_parse() local
436 flow_rule_match_control(rule, &match); in mlxsw_sp_flower_parse()
437 addr_type = match.key->addr_type; in mlxsw_sp_flower_parse()
441 struct flow_match_basic match; in mlxsw_sp_flower_parse() local
443 flow_rule_match_basic(rule, &match); in mlxsw_sp_flower_parse()
444 n_proto_key = ntohs(match.key->n_proto); in mlxsw_sp_flower_parse()
445 n_proto_mask = ntohs(match.mask->n_proto); in mlxsw_sp_flower_parse()
455 ip_proto = match.key->ip_proto; in mlxsw_sp_flower_parse()
458 match.key->ip_proto, in mlxsw_sp_flower_parse()
459 match.mask->ip_proto); in mlxsw_sp_flower_parse()
463 struct flow_match_eth_addrs match; in mlxsw_sp_flower_parse() local
465 flow_rule_match_eth_addrs(rule, &match); in mlxsw_sp_flower_parse()
468 match.key->dst, in mlxsw_sp_flower_parse()
469 match.mask->dst, 2); in mlxsw_sp_flower_parse()
472 match.key->dst + 2, in mlxsw_sp_flower_parse()
473 match.mask->dst + 2, 4); in mlxsw_sp_flower_parse()
476 match.key->src, in mlxsw_sp_flower_parse()
477 match.mask->src, 2); in mlxsw_sp_flower_parse()
480 match.key->src + 2, in mlxsw_sp_flower_parse()
481 match.mask->src + 2, 4); in mlxsw_sp_flower_parse()
485 struct flow_match_vlan match; in mlxsw_sp_flower_parse() local
487 flow_rule_match_vlan(rule, &match); in mlxsw_sp_flower_parse()
498 if (match.mask->vlan_id != 0) in mlxsw_sp_flower_parse()
501 match.key->vlan_id, in mlxsw_sp_flower_parse()
502 match.mask->vlan_id); in mlxsw_sp_flower_parse()
503 if (match.mask->vlan_priority != 0) in mlxsw_sp_flower_parse()
506 match.key->vlan_priority, in mlxsw_sp_flower_parse()
507 match.mask->vlan_priority); in mlxsw_sp_flower_parse()