Lines Matching refs:match

377 	struct flow_match_meta match;  in ocelot_flower_parse_indev()  local
380 flow_rule_match_meta(rule, &match); in ocelot_flower_parse_indev()
382 if (!match.mask->ingress_ifindex) in ocelot_flower_parse_indev()
385 if (match.mask->ingress_ifindex != 0xFFFFFFFF) { in ocelot_flower_parse_indev()
394 indev = __dev_get_by_index(dev_net(dev), match.key->ingress_ifindex); in ocelot_flower_parse_indev()
425 struct flow_dissector *dissector = rule->match.dissector; in ocelot_flower_parse_key()
451 struct flow_match_control match; in ocelot_flower_parse_key() local
453 flow_rule_match_control(rule, &match); in ocelot_flower_parse_key()
457 struct flow_match_eth_addrs match; in ocelot_flower_parse_key() local
466 !is_zero_ether_addr(match.mask->dst)) { in ocelot_flower_parse_key()
485 flow_rule_match_eth_addrs(rule, &match); in ocelot_flower_parse_key()
488 match.key->dst); in ocelot_flower_parse_key()
490 match.key->src); in ocelot_flower_parse_key()
492 match.mask->dst); in ocelot_flower_parse_key()
494 match.mask->src); in ocelot_flower_parse_key()
499 struct flow_match_basic match; in ocelot_flower_parse_key() local
501 flow_rule_match_basic(rule, &match); in ocelot_flower_parse_key()
502 if (ntohs(match.key->n_proto) == ETH_P_IP) { in ocelot_flower_parse_key()
511 match.key->ip_proto; in ocelot_flower_parse_key()
513 match.mask->ip_proto; in ocelot_flower_parse_key()
516 if (ntohs(match.key->n_proto) == ETH_P_IPV6) { in ocelot_flower_parse_key()
525 match.key->ip_proto; in ocelot_flower_parse_key()
527 match.mask->ip_proto; in ocelot_flower_parse_key()
534 struct flow_match_ipv4_addrs match; in ocelot_flower_parse_key() local
543 if (filter->block_id == VCAP_IS1 && *(u32 *)&match.mask->dst) { in ocelot_flower_parse_key()
549 flow_rule_match_ipv4_addrs(rule, &match); in ocelot_flower_parse_key()
551 memcpy(tmp, &match.key->src, 4); in ocelot_flower_parse_key()
554 memcpy(tmp, &match.mask->src, 4); in ocelot_flower_parse_key()
557 memcpy(tmp, &match.key->dst, 4); in ocelot_flower_parse_key()
560 memcpy(tmp, &match.mask->dst, 4); in ocelot_flower_parse_key()
570 struct flow_match_ports match; in ocelot_flower_parse_key() local
578 flow_rule_match_ports(rule, &match); in ocelot_flower_parse_key()
579 filter->key.ipv4.sport.value = ntohs(match.key->src); in ocelot_flower_parse_key()
580 filter->key.ipv4.sport.mask = ntohs(match.mask->src); in ocelot_flower_parse_key()
581 filter->key.ipv4.dport.value = ntohs(match.key->dst); in ocelot_flower_parse_key()
582 filter->key.ipv4.dport.mask = ntohs(match.mask->dst); in ocelot_flower_parse_key()
587 struct flow_match_vlan match; in ocelot_flower_parse_key() local
589 flow_rule_match_vlan(rule, &match); in ocelot_flower_parse_key()
591 filter->vlan.vid.value = match.key->vlan_id; in ocelot_flower_parse_key()
592 filter->vlan.vid.mask = match.mask->vlan_id; in ocelot_flower_parse_key()
593 filter->vlan.pcp.value[0] = match.key->vlan_priority; in ocelot_flower_parse_key()
594 filter->vlan.pcp.mask[0] = match.mask->vlan_priority; in ocelot_flower_parse_key()