Lines Matching refs:match
529 struct flow_match_meta match; in ocelot_flower_parse_indev() local
532 flow_rule_match_meta(rule, &match); in ocelot_flower_parse_indev()
534 if (!match.mask->ingress_ifindex) in ocelot_flower_parse_indev()
537 if (match.mask->ingress_ifindex != 0xFFFFFFFF) { in ocelot_flower_parse_indev()
546 indev = __dev_get_by_index(dev_net(dev), match.key->ingress_ifindex); in ocelot_flower_parse_indev()
577 struct flow_dissector *dissector = rule->match.dissector; in ocelot_flower_parse_key()
603 struct flow_match_control match; in ocelot_flower_parse_key() local
605 flow_rule_match_control(rule, &match); in ocelot_flower_parse_key()
609 struct flow_match_eth_addrs match; in ocelot_flower_parse_key() local
630 flow_rule_match_eth_addrs(rule, &match); in ocelot_flower_parse_key()
633 !is_zero_ether_addr(match.mask->dst)) { in ocelot_flower_parse_key()
641 match.key->dst); in ocelot_flower_parse_key()
643 match.key->src); in ocelot_flower_parse_key()
645 match.mask->dst); in ocelot_flower_parse_key()
647 match.mask->src); in ocelot_flower_parse_key()
652 struct flow_match_basic match; in ocelot_flower_parse_key() local
654 flow_rule_match_basic(rule, &match); in ocelot_flower_parse_key()
655 if (ntohs(match.key->n_proto) == ETH_P_IP) { in ocelot_flower_parse_key()
664 match.key->ip_proto; in ocelot_flower_parse_key()
666 match.mask->ip_proto; in ocelot_flower_parse_key()
669 if (ntohs(match.key->n_proto) == ETH_P_IPV6) { in ocelot_flower_parse_key()
678 match.key->ip_proto; in ocelot_flower_parse_key()
680 match.mask->ip_proto; in ocelot_flower_parse_key()
687 struct flow_match_ipv4_addrs match; in ocelot_flower_parse_key() local
696 flow_rule_match_ipv4_addrs(rule, &match); in ocelot_flower_parse_key()
698 if (filter->block_id == VCAP_IS1 && *(u32 *)&match.mask->dst) { in ocelot_flower_parse_key()
705 memcpy(tmp, &match.key->src, 4); in ocelot_flower_parse_key()
708 memcpy(tmp, &match.mask->src, 4); in ocelot_flower_parse_key()
711 memcpy(tmp, &match.key->dst, 4); in ocelot_flower_parse_key()
714 memcpy(tmp, &match.mask->dst, 4); in ocelot_flower_parse_key()
724 struct flow_match_ports match; in ocelot_flower_parse_key() local
732 flow_rule_match_ports(rule, &match); in ocelot_flower_parse_key()
733 filter->key.ipv4.sport.value = ntohs(match.key->src); in ocelot_flower_parse_key()
734 filter->key.ipv4.sport.mask = ntohs(match.mask->src); in ocelot_flower_parse_key()
735 filter->key.ipv4.dport.value = ntohs(match.key->dst); in ocelot_flower_parse_key()
736 filter->key.ipv4.dport.mask = ntohs(match.mask->dst); in ocelot_flower_parse_key()
741 struct flow_match_vlan match; in ocelot_flower_parse_key() local
743 flow_rule_match_vlan(rule, &match); in ocelot_flower_parse_key()
745 filter->vlan.vid.value = match.key->vlan_id; in ocelot_flower_parse_key()
746 filter->vlan.vid.mask = match.mask->vlan_id; in ocelot_flower_parse_key()
747 filter->vlan.pcp.value[0] = match.key->vlan_priority; in ocelot_flower_parse_key()
748 filter->vlan.pcp.mask[0] = match.mask->vlan_priority; in ocelot_flower_parse_key()