Lines Matching full:rule
25 struct flow_rule *rule) in nfp_flower_compile_tci() argument
29 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_VLAN)) { in nfp_flower_compile_tci()
32 flow_rule_match_vlan(rule, &match); in nfp_flower_compile_tci()
54 struct flow_rule *rule, u8 key_type, bool qinq_sup) in nfp_flower_compile_meta_tci() argument
62 nfp_flower_compile_tci(ext, msk, rule); in nfp_flower_compile_meta_tci()
97 struct flow_rule *rule) in nfp_flower_compile_mac() argument
99 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ETH_ADDRS)) { in nfp_flower_compile_mac()
103 flow_rule_match_eth_addrs(rule, &match); in nfp_flower_compile_mac()
119 struct flow_rule *rule, in nfp_flower_compile_mpls() argument
122 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_MPLS)) { in nfp_flower_compile_mpls()
126 flow_rule_match_mpls(rule, &match); in nfp_flower_compile_mpls()
153 } else if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_BASIC)) { in nfp_flower_compile_mpls()
160 flow_rule_match_basic(rule, &match); in nfp_flower_compile_mpls()
174 struct flow_rule *rule, in nfp_flower_compile_mac_mpls() argument
180 nfp_flower_compile_mac(ext, msk, rule); in nfp_flower_compile_mac_mpls()
182 return nfp_flower_compile_mpls(ext, msk, rule, extack); in nfp_flower_compile_mac_mpls()
188 struct flow_rule *rule) in nfp_flower_compile_tport() argument
190 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_PORTS)) { in nfp_flower_compile_tport()
193 flow_rule_match_ports(rule, &match); in nfp_flower_compile_tport()
203 struct nfp_flower_ip_ext *msk, struct flow_rule *rule) in nfp_flower_compile_ip_ext() argument
205 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_BASIC)) { in nfp_flower_compile_ip_ext()
208 flow_rule_match_basic(rule, &match); in nfp_flower_compile_ip_ext()
213 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IP)) { in nfp_flower_compile_ip_ext()
216 flow_rule_match_ip(rule, &match); in nfp_flower_compile_ip_ext()
223 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_TCP)) { in nfp_flower_compile_ip_ext()
227 flow_rule_match_tcp(rule, &match); in nfp_flower_compile_ip_ext()
257 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CONTROL)) { in nfp_flower_compile_ip_ext()
260 flow_rule_match_control(rule, &match); in nfp_flower_compile_ip_ext()
308 struct flow_rule *rule) in nfp_flower_compile_vlan() argument
312 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_VLAN)) { in nfp_flower_compile_vlan()
313 flow_rule_match_vlan(rule, &match); in nfp_flower_compile_vlan()
316 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CVLAN)) { in nfp_flower_compile_vlan()
317 flow_rule_match_cvlan(rule, &match); in nfp_flower_compile_vlan()
324 struct nfp_flower_ipv4 *msk, struct flow_rule *rule) in nfp_flower_compile_ipv4() argument
326 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IPV4_ADDRS)) { in nfp_flower_compile_ipv4()
329 flow_rule_match_ipv4_addrs(rule, &match); in nfp_flower_compile_ipv4()
336 nfp_flower_compile_ip_ext(&ext->ip_ext, &msk->ip_ext, rule); in nfp_flower_compile_ipv4()
341 struct nfp_flower_ipv6 *msk, struct flow_rule *rule) in nfp_flower_compile_ipv6() argument
343 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IPV6_ADDRS)) { in nfp_flower_compile_ipv6()
347 flow_rule_match_ipv6_addrs(rule, &match); in nfp_flower_compile_ipv6()
358 nfp_flower_compile_ip_ext(&ext->ip_ext, &msk->ip_ext, rule); in nfp_flower_compile_ipv6()
362 nfp_flower_compile_geneve_opt(u8 *ext, u8 *msk, struct flow_rule *rule) in nfp_flower_compile_geneve_opt() argument
367 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_OPTS)) { in nfp_flower_compile_geneve_opt()
368 flow_rule_match_enc_opts(rule, &match); in nfp_flower_compile_geneve_opt()
380 struct flow_rule *rule) in nfp_flower_compile_tun_ipv4_addrs() argument
382 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_IPV4_ADDRS)) { in nfp_flower_compile_tun_ipv4_addrs()
385 flow_rule_match_enc_ipv4_addrs(rule, &match); in nfp_flower_compile_tun_ipv4_addrs()
396 struct flow_rule *rule) in nfp_flower_compile_tun_ipv6_addrs() argument
398 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_IPV6_ADDRS)) { in nfp_flower_compile_tun_ipv6_addrs()
402 flow_rule_match_enc_ipv6_addrs(rule, &match); in nfp_flower_compile_tun_ipv6_addrs()
417 struct flow_rule *rule) in nfp_flower_compile_tun_ip_ext() argument
419 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_IP)) { in nfp_flower_compile_tun_ip_ext()
422 flow_rule_match_enc_ip(rule, &match); in nfp_flower_compile_tun_ip_ext()
432 struct flow_rule *rule) in nfp_flower_compile_tun_udp_key() argument
434 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_KEYID)) { in nfp_flower_compile_tun_udp_key()
438 flow_rule_match_enc_keyid(rule, &match); in nfp_flower_compile_tun_udp_key()
449 __be16 *flags_msk, struct flow_rule *rule) in nfp_flower_compile_tun_gre_key() argument
451 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_KEYID)) { in nfp_flower_compile_tun_gre_key()
454 flow_rule_match_enc_keyid(rule, &match); in nfp_flower_compile_tun_gre_key()
466 struct flow_rule *rule) in nfp_flower_compile_ipv4_gre_tun() argument
472 nfp_flower_compile_tun_ipv4_addrs(&ext->ipv4, &msk->ipv4, rule); in nfp_flower_compile_ipv4_gre_tun()
473 nfp_flower_compile_tun_ip_ext(&ext->ip_ext, &msk->ip_ext, rule); in nfp_flower_compile_ipv4_gre_tun()
475 &ext->tun_flags, &msk->tun_flags, rule); in nfp_flower_compile_ipv4_gre_tun()
481 struct flow_rule *rule) in nfp_flower_compile_ipv4_udp_tun() argument
483 nfp_flower_compile_tun_ipv4_addrs(&ext->ipv4, &msk->ipv4, rule); in nfp_flower_compile_ipv4_udp_tun()
484 nfp_flower_compile_tun_ip_ext(&ext->ip_ext, &msk->ip_ext, rule); in nfp_flower_compile_ipv4_udp_tun()
485 nfp_flower_compile_tun_udp_key(&ext->tun_id, &msk->tun_id, rule); in nfp_flower_compile_ipv4_udp_tun()
491 struct flow_rule *rule) in nfp_flower_compile_ipv6_udp_tun() argument
493 nfp_flower_compile_tun_ipv6_addrs(&ext->ipv6, &msk->ipv6, rule); in nfp_flower_compile_ipv6_udp_tun()
494 nfp_flower_compile_tun_ip_ext(&ext->ip_ext, &msk->ip_ext, rule); in nfp_flower_compile_ipv6_udp_tun()
495 nfp_flower_compile_tun_udp_key(&ext->tun_id, &msk->tun_id, rule); in nfp_flower_compile_ipv6_udp_tun()
501 struct flow_rule *rule) in nfp_flower_compile_ipv6_gre_tun() argument
507 nfp_flower_compile_tun_ipv6_addrs(&ext->ipv6, &msk->ipv6, rule); in nfp_flower_compile_ipv6_gre_tun()
508 nfp_flower_compile_tun_ip_ext(&ext->ip_ext, &msk->ip_ext, rule); in nfp_flower_compile_ipv6_gre_tun()
510 &ext->tun_flags, &msk->tun_flags, rule); in nfp_flower_compile_ipv6_gre_tun()
514 struct flow_rule *rule, in nfp_flower_compile_flow_match() argument
541 rule, key_ls->key_layer, qinq_sup); in nfp_flower_compile_flow_match()
573 rule, extack); in nfp_flower_compile_flow_match()
584 rule); in nfp_flower_compile_flow_match()
592 rule); in nfp_flower_compile_flow_match()
600 rule); in nfp_flower_compile_flow_match()
612 (void *)msk, rule); in nfp_flower_compile_flow_match()
627 (void *)msk, rule); in nfp_flower_compile_flow_match()
632 /* Store the tunnel destination in the rule data. in nfp_flower_compile_flow_match()
643 rule); in nfp_flower_compile_flow_match()
656 (void *)msk, rule); in nfp_flower_compile_flow_match()
671 (void *)msk, rule); in nfp_flower_compile_flow_match()
676 /* Store the tunnel destination in the rule data. in nfp_flower_compile_flow_match()
684 nfp_flower_compile_geneve_opt(ext, msk, rule); in nfp_flower_compile_flow_match()