Lines Matching refs:match
29 struct flow_match_vlan match; in nfp_flower_compile_meta_tci() local
31 flow_rule_match_vlan(rule, &match); in nfp_flower_compile_meta_tci()
35 match.key->vlan_priority) | in nfp_flower_compile_meta_tci()
37 match.key->vlan_id); in nfp_flower_compile_meta_tci()
42 match.mask->vlan_priority) | in nfp_flower_compile_meta_tci()
44 match.mask->vlan_id); in nfp_flower_compile_meta_tci()
89 struct flow_match_eth_addrs match; in nfp_flower_compile_mac() local
91 flow_rule_match_eth_addrs(rule, &match); in nfp_flower_compile_mac()
93 ether_addr_copy(ext->mac_dst, &match.key->dst[0]); in nfp_flower_compile_mac()
94 ether_addr_copy(ext->mac_src, &match.key->src[0]); in nfp_flower_compile_mac()
95 ether_addr_copy(msk->mac_dst, &match.mask->dst[0]); in nfp_flower_compile_mac()
96 ether_addr_copy(msk->mac_src, &match.mask->src[0]); in nfp_flower_compile_mac()
100 struct flow_match_mpls match; in nfp_flower_compile_mac() local
103 flow_rule_match_mpls(rule, &match); in nfp_flower_compile_mac()
104 t_mpls = FIELD_PREP(NFP_FLOWER_MASK_MPLS_LB, match.key->mpls_label) | in nfp_flower_compile_mac()
105 FIELD_PREP(NFP_FLOWER_MASK_MPLS_TC, match.key->mpls_tc) | in nfp_flower_compile_mac()
106 FIELD_PREP(NFP_FLOWER_MASK_MPLS_BOS, match.key->mpls_bos) | in nfp_flower_compile_mac()
109 t_mpls = FIELD_PREP(NFP_FLOWER_MASK_MPLS_LB, match.mask->mpls_label) | in nfp_flower_compile_mac()
110 FIELD_PREP(NFP_FLOWER_MASK_MPLS_TC, match.mask->mpls_tc) | in nfp_flower_compile_mac()
111 FIELD_PREP(NFP_FLOWER_MASK_MPLS_BOS, match.mask->mpls_bos) | in nfp_flower_compile_mac()
119 struct flow_match_basic match; in nfp_flower_compile_mac() local
121 flow_rule_match_basic(rule, &match); in nfp_flower_compile_mac()
122 if (match.key->n_proto == cpu_to_be16(ETH_P_MPLS_UC) || in nfp_flower_compile_mac()
123 match.key->n_proto == cpu_to_be16(ETH_P_MPLS_MC)) { in nfp_flower_compile_mac()
141 struct flow_match_ports match; in nfp_flower_compile_tport() local
143 flow_rule_match_ports(rule, &match); in nfp_flower_compile_tport()
144 ext->port_src = match.key->src; in nfp_flower_compile_tport()
145 ext->port_dst = match.key->dst; in nfp_flower_compile_tport()
146 msk->port_src = match.mask->src; in nfp_flower_compile_tport()
147 msk->port_dst = match.mask->dst; in nfp_flower_compile_tport()
159 struct flow_match_basic match; in nfp_flower_compile_ip_ext() local
161 flow_rule_match_basic(rule, &match); in nfp_flower_compile_ip_ext()
162 ext->proto = match.key->ip_proto; in nfp_flower_compile_ip_ext()
163 msk->proto = match.mask->ip_proto; in nfp_flower_compile_ip_ext()
167 struct flow_match_ip match; in nfp_flower_compile_ip_ext() local
169 flow_rule_match_ip(rule, &match); in nfp_flower_compile_ip_ext()
170 ext->tos = match.key->tos; in nfp_flower_compile_ip_ext()
171 ext->ttl = match.key->ttl; in nfp_flower_compile_ip_ext()
172 msk->tos = match.mask->tos; in nfp_flower_compile_ip_ext()
173 msk->ttl = match.mask->ttl; in nfp_flower_compile_ip_ext()
178 struct flow_match_tcp match; in nfp_flower_compile_ip_ext() local
180 flow_rule_match_tcp(rule, &match); in nfp_flower_compile_ip_ext()
181 tcp_flags = be16_to_cpu(match.key->flags); in nfp_flower_compile_ip_ext()
182 tcp_flags_mask = be16_to_cpu(match.mask->flags); in nfp_flower_compile_ip_ext()
211 struct flow_match_control match; in nfp_flower_compile_ip_ext() local
213 flow_rule_match_control(rule, &match); in nfp_flower_compile_ip_ext()
214 if (match.key->flags & FLOW_DIS_IS_FRAGMENT) in nfp_flower_compile_ip_ext()
216 if (match.mask->flags & FLOW_DIS_IS_FRAGMENT) in nfp_flower_compile_ip_ext()
218 if (match.key->flags & FLOW_DIS_FIRST_FRAG) in nfp_flower_compile_ip_ext()
220 if (match.mask->flags & FLOW_DIS_FIRST_FRAG) in nfp_flower_compile_ip_ext()
231 struct flow_match_ipv4_addrs match; in nfp_flower_compile_ipv4() local
237 flow_rule_match_ipv4_addrs(rule, &match); in nfp_flower_compile_ipv4()
238 ext->ipv4_src = match.key->src; in nfp_flower_compile_ipv4()
239 ext->ipv4_dst = match.key->dst; in nfp_flower_compile_ipv4()
240 msk->ipv4_src = match.mask->src; in nfp_flower_compile_ipv4()
241 msk->ipv4_dst = match.mask->dst; in nfp_flower_compile_ipv4()
258 struct flow_match_ipv6_addrs match; in nfp_flower_compile_ipv6() local
260 flow_rule_match_ipv6_addrs(rule, &match); in nfp_flower_compile_ipv6()
261 ext->ipv6_src = match.key->src; in nfp_flower_compile_ipv6()
262 ext->ipv6_dst = match.key->dst; in nfp_flower_compile_ipv6()
263 msk->ipv6_src = match.mask->src; in nfp_flower_compile_ipv6()
264 msk->ipv6_dst = match.mask->dst; in nfp_flower_compile_ipv6()
274 struct flow_match_enc_opts match; in nfp_flower_compile_geneve_opt() local
276 flow_rule_match_enc_opts(flow->rule, &match); in nfp_flower_compile_geneve_opt()
277 memcpy(ext, match.key->data, match.key->len); in nfp_flower_compile_geneve_opt()
278 memcpy(msk, match.mask->data, match.mask->len); in nfp_flower_compile_geneve_opt()
291 struct flow_match_ipv4_addrs match; in nfp_flower_compile_tun_ipv4_addrs() local
293 flow_rule_match_enc_ipv4_addrs(rule, &match); in nfp_flower_compile_tun_ipv4_addrs()
294 ext->src = match.key->src; in nfp_flower_compile_tun_ipv4_addrs()
295 ext->dst = match.key->dst; in nfp_flower_compile_tun_ipv4_addrs()
296 msk->src = match.mask->src; in nfp_flower_compile_tun_ipv4_addrs()
297 msk->dst = match.mask->dst; in nfp_flower_compile_tun_ipv4_addrs()
309 struct flow_match_ip match; in nfp_flower_compile_tun_ip_ext() local
311 flow_rule_match_enc_ip(rule, &match); in nfp_flower_compile_tun_ip_ext()
312 ext->tos = match.key->tos; in nfp_flower_compile_tun_ip_ext()
313 ext->ttl = match.key->ttl; in nfp_flower_compile_tun_ip_ext()
314 msk->tos = match.mask->tos; in nfp_flower_compile_tun_ip_ext()
315 msk->ttl = match.mask->ttl; in nfp_flower_compile_tun_ip_ext()
334 struct flow_match_enc_keyid match; in nfp_flower_compile_ipv4_gre_tun() local
336 flow_rule_match_enc_keyid(rule, &match); in nfp_flower_compile_ipv4_gre_tun()
337 ext->tun_key = match.key->keyid; in nfp_flower_compile_ipv4_gre_tun()
338 msk->tun_key = match.mask->keyid; in nfp_flower_compile_ipv4_gre_tun()
359 struct flow_match_enc_keyid match; in nfp_flower_compile_ipv4_udp_tun() local
362 flow_rule_match_enc_keyid(rule, &match); in nfp_flower_compile_ipv4_udp_tun()
363 temp_vni = be32_to_cpu(match.key->keyid) << NFP_FL_TUN_VNI_OFFSET; in nfp_flower_compile_ipv4_udp_tun()
365 temp_vni = be32_to_cpu(match.mask->keyid) << NFP_FL_TUN_VNI_OFFSET; in nfp_flower_compile_ipv4_udp_tun()