Lines Matching refs:match
28 struct flow_match_vlan match; in nfp_flower_compile_meta_tci() local
30 flow_rule_match_vlan(rule, &match); in nfp_flower_compile_meta_tci()
34 match.key->vlan_priority) | in nfp_flower_compile_meta_tci()
36 match.key->vlan_id); in nfp_flower_compile_meta_tci()
41 match.mask->vlan_priority) | in nfp_flower_compile_meta_tci()
43 match.mask->vlan_id); in nfp_flower_compile_meta_tci()
86 struct flow_match_eth_addrs match; in nfp_flower_compile_mac() local
88 flow_rule_match_eth_addrs(rule, &match); in nfp_flower_compile_mac()
90 ether_addr_copy(ext->mac_dst, &match.key->dst[0]); in nfp_flower_compile_mac()
91 ether_addr_copy(ext->mac_src, &match.key->src[0]); in nfp_flower_compile_mac()
92 ether_addr_copy(msk->mac_dst, &match.mask->dst[0]); in nfp_flower_compile_mac()
93 ether_addr_copy(msk->mac_src, &match.mask->src[0]); in nfp_flower_compile_mac()
97 struct flow_match_mpls match; in nfp_flower_compile_mac() local
100 flow_rule_match_mpls(rule, &match); in nfp_flower_compile_mac()
103 if (match.mask->used_lses != 1) { in nfp_flower_compile_mac()
110 match.key->ls[0].mpls_label) | in nfp_flower_compile_mac()
112 match.key->ls[0].mpls_tc) | in nfp_flower_compile_mac()
114 match.key->ls[0].mpls_bos) | in nfp_flower_compile_mac()
118 match.mask->ls[0].mpls_label) | in nfp_flower_compile_mac()
120 match.mask->ls[0].mpls_tc) | in nfp_flower_compile_mac()
122 match.mask->ls[0].mpls_bos) | in nfp_flower_compile_mac()
130 struct flow_match_basic match; in nfp_flower_compile_mac() local
132 flow_rule_match_basic(rule, &match); in nfp_flower_compile_mac()
133 if (match.key->n_proto == cpu_to_be16(ETH_P_MPLS_UC) || in nfp_flower_compile_mac()
134 match.key->n_proto == cpu_to_be16(ETH_P_MPLS_MC)) { in nfp_flower_compile_mac()
152 struct flow_match_ports match; in nfp_flower_compile_tport() local
154 flow_rule_match_ports(rule, &match); in nfp_flower_compile_tport()
155 ext->port_src = match.key->src; in nfp_flower_compile_tport()
156 ext->port_dst = match.key->dst; in nfp_flower_compile_tport()
157 msk->port_src = match.mask->src; in nfp_flower_compile_tport()
158 msk->port_dst = match.mask->dst; in nfp_flower_compile_tport()
167 struct flow_match_basic match; in nfp_flower_compile_ip_ext() local
169 flow_rule_match_basic(rule, &match); in nfp_flower_compile_ip_ext()
170 ext->proto = match.key->ip_proto; in nfp_flower_compile_ip_ext()
171 msk->proto = match.mask->ip_proto; in nfp_flower_compile_ip_ext()
175 struct flow_match_ip match; in nfp_flower_compile_ip_ext() local
177 flow_rule_match_ip(rule, &match); in nfp_flower_compile_ip_ext()
178 ext->tos = match.key->tos; in nfp_flower_compile_ip_ext()
179 ext->ttl = match.key->ttl; in nfp_flower_compile_ip_ext()
180 msk->tos = match.mask->tos; in nfp_flower_compile_ip_ext()
181 msk->ttl = match.mask->ttl; in nfp_flower_compile_ip_ext()
186 struct flow_match_tcp match; in nfp_flower_compile_ip_ext() local
188 flow_rule_match_tcp(rule, &match); in nfp_flower_compile_ip_ext()
189 tcp_flags = be16_to_cpu(match.key->flags); in nfp_flower_compile_ip_ext()
190 tcp_flags_mask = be16_to_cpu(match.mask->flags); in nfp_flower_compile_ip_ext()
219 struct flow_match_control match; in nfp_flower_compile_ip_ext() local
221 flow_rule_match_control(rule, &match); in nfp_flower_compile_ip_ext()
222 if (match.key->flags & FLOW_DIS_IS_FRAGMENT) in nfp_flower_compile_ip_ext()
224 if (match.mask->flags & FLOW_DIS_IS_FRAGMENT) in nfp_flower_compile_ip_ext()
226 if (match.key->flags & FLOW_DIS_FIRST_FRAG) in nfp_flower_compile_ip_ext()
228 if (match.mask->flags & FLOW_DIS_FIRST_FRAG) in nfp_flower_compile_ip_ext()
260 struct flow_match_vlan match; in nfp_flower_compile_vlan() local
266 flow_rule_match_vlan(rule, &match); in nfp_flower_compile_vlan()
267 nfp_flower_fill_vlan(match.key, ext, true); in nfp_flower_compile_vlan()
268 nfp_flower_fill_vlan(match.mask, msk, true); in nfp_flower_compile_vlan()
271 flow_rule_match_cvlan(rule, &match); in nfp_flower_compile_vlan()
272 nfp_flower_fill_vlan(match.key, ext, false); in nfp_flower_compile_vlan()
273 nfp_flower_fill_vlan(match.mask, msk, false); in nfp_flower_compile_vlan()
281 struct flow_match_ipv4_addrs match; in nfp_flower_compile_ipv4() local
287 flow_rule_match_ipv4_addrs(rule, &match); in nfp_flower_compile_ipv4()
288 ext->ipv4_src = match.key->src; in nfp_flower_compile_ipv4()
289 ext->ipv4_dst = match.key->dst; in nfp_flower_compile_ipv4()
290 msk->ipv4_src = match.mask->src; in nfp_flower_compile_ipv4()
291 msk->ipv4_dst = match.mask->dst; in nfp_flower_compile_ipv4()
305 struct flow_match_ipv6_addrs match; in nfp_flower_compile_ipv6() local
307 flow_rule_match_ipv6_addrs(rule, &match); in nfp_flower_compile_ipv6()
308 ext->ipv6_src = match.key->src; in nfp_flower_compile_ipv6()
309 ext->ipv6_dst = match.key->dst; in nfp_flower_compile_ipv6()
310 msk->ipv6_src = match.mask->src; in nfp_flower_compile_ipv6()
311 msk->ipv6_dst = match.mask->dst; in nfp_flower_compile_ipv6()
320 struct flow_match_enc_opts match; in nfp_flower_compile_geneve_opt() local
322 flow_rule_match_enc_opts(rule, &match); in nfp_flower_compile_geneve_opt()
323 memcpy(ext, match.key->data, match.key->len); in nfp_flower_compile_geneve_opt()
324 memcpy(msk, match.mask->data, match.mask->len); in nfp_flower_compile_geneve_opt()
335 struct flow_match_ipv4_addrs match; in nfp_flower_compile_tun_ipv4_addrs() local
337 flow_rule_match_enc_ipv4_addrs(rule, &match); in nfp_flower_compile_tun_ipv4_addrs()
338 ext->src = match.key->src; in nfp_flower_compile_tun_ipv4_addrs()
339 ext->dst = match.key->dst; in nfp_flower_compile_tun_ipv4_addrs()
340 msk->src = match.mask->src; in nfp_flower_compile_tun_ipv4_addrs()
341 msk->dst = match.mask->dst; in nfp_flower_compile_tun_ipv4_addrs()
351 struct flow_match_ipv6_addrs match; in nfp_flower_compile_tun_ipv6_addrs() local
353 flow_rule_match_enc_ipv6_addrs(rule, &match); in nfp_flower_compile_tun_ipv6_addrs()
354 ext->src = match.key->src; in nfp_flower_compile_tun_ipv6_addrs()
355 ext->dst = match.key->dst; in nfp_flower_compile_tun_ipv6_addrs()
356 msk->src = match.mask->src; in nfp_flower_compile_tun_ipv6_addrs()
357 msk->dst = match.mask->dst; in nfp_flower_compile_tun_ipv6_addrs()
367 struct flow_match_ip match; in nfp_flower_compile_tun_ip_ext() local
369 flow_rule_match_enc_ip(rule, &match); in nfp_flower_compile_tun_ip_ext()
370 ext->tos = match.key->tos; in nfp_flower_compile_tun_ip_ext()
371 ext->ttl = match.key->ttl; in nfp_flower_compile_tun_ip_ext()
372 msk->tos = match.mask->tos; in nfp_flower_compile_tun_ip_ext()
373 msk->ttl = match.mask->ttl; in nfp_flower_compile_tun_ip_ext()
382 struct flow_match_enc_keyid match; in nfp_flower_compile_tun_udp_key() local
385 flow_rule_match_enc_keyid(rule, &match); in nfp_flower_compile_tun_udp_key()
386 vni = be32_to_cpu(match.key->keyid) << NFP_FL_TUN_VNI_OFFSET; in nfp_flower_compile_tun_udp_key()
388 vni = be32_to_cpu(match.mask->keyid) << NFP_FL_TUN_VNI_OFFSET; in nfp_flower_compile_tun_udp_key()
398 struct flow_match_enc_keyid match; in nfp_flower_compile_tun_gre_key() local
400 flow_rule_match_enc_keyid(rule, &match); in nfp_flower_compile_tun_gre_key()
401 *key = match.key->keyid; in nfp_flower_compile_tun_gre_key()
402 *key_msk = match.mask->keyid; in nfp_flower_compile_tun_gre_key()