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()
104 flow_rule_match_eth_addrs(rule, &match); in nfp_flower_compile_mac()
121 struct flow_rule *rule, in nfp_flower_compile_mpls() argument
124 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_MPLS)) { in nfp_flower_compile_mpls()
128 flow_rule_match_mpls(rule, &match); in nfp_flower_compile_mpls()
155 } else if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_BASIC)) { in nfp_flower_compile_mpls()
162 flow_rule_match_basic(rule, &match); in nfp_flower_compile_mpls()
176 struct flow_rule *rule, in nfp_flower_compile_mac_mpls() argument
182 nfp_flower_compile_mac(ext, msk, rule); in nfp_flower_compile_mac_mpls()
184 return nfp_flower_compile_mpls(ext, msk, rule, extack); in nfp_flower_compile_mac_mpls()
190 struct flow_rule *rule) in nfp_flower_compile_tport() argument
192 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_PORTS)) { in nfp_flower_compile_tport()
196 flow_rule_match_ports(rule, &match); in nfp_flower_compile_tport()
210 struct nfp_flower_ip_ext *msk, struct flow_rule *rule) in nfp_flower_compile_ip_ext() argument
212 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_BASIC)) { in nfp_flower_compile_ip_ext()
215 flow_rule_match_basic(rule, &match); in nfp_flower_compile_ip_ext()
220 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IP)) { in nfp_flower_compile_ip_ext()
224 flow_rule_match_ip(rule, &match); in nfp_flower_compile_ip_ext()
235 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_TCP)) { in nfp_flower_compile_ip_ext()
239 flow_rule_match_tcp(rule, &match); in nfp_flower_compile_ip_ext()
269 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CONTROL)) { in nfp_flower_compile_ip_ext()
272 flow_rule_match_control(rule, &match); in nfp_flower_compile_ip_ext()
320 struct flow_rule *rule) in nfp_flower_compile_vlan() argument
324 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_VLAN)) { in nfp_flower_compile_vlan()
325 flow_rule_match_vlan(rule, &match); in nfp_flower_compile_vlan()
328 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CVLAN)) { in nfp_flower_compile_vlan()
329 flow_rule_match_cvlan(rule, &match); in nfp_flower_compile_vlan()
336 struct nfp_flower_ipv4 *msk, struct flow_rule *rule) in nfp_flower_compile_ipv4() argument
338 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IPV4_ADDRS)) { in nfp_flower_compile_ipv4()
342 flow_rule_match_ipv4_addrs(rule, &match); in nfp_flower_compile_ipv4()
353 nfp_flower_compile_ip_ext(&ext->ip_ext, &msk->ip_ext, rule); in nfp_flower_compile_ipv4()
358 struct nfp_flower_ipv6 *msk, struct flow_rule *rule) in nfp_flower_compile_ipv6() argument
360 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IPV6_ADDRS)) { in nfp_flower_compile_ipv6()
365 flow_rule_match_ipv6_addrs(rule, &match); in nfp_flower_compile_ipv6()
381 nfp_flower_compile_ip_ext(&ext->ip_ext, &msk->ip_ext, rule); in nfp_flower_compile_ipv6()
385 nfp_flower_compile_geneve_opt(u8 *ext, u8 *msk, struct flow_rule *rule) in nfp_flower_compile_geneve_opt() argument
390 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_OPTS)) { in nfp_flower_compile_geneve_opt()
391 flow_rule_match_enc_opts(rule, &match); in nfp_flower_compile_geneve_opt()
403 struct flow_rule *rule) in nfp_flower_compile_tun_ipv4_addrs() argument
405 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_IPV4_ADDRS)) { in nfp_flower_compile_tun_ipv4_addrs()
408 flow_rule_match_enc_ipv4_addrs(rule, &match); in nfp_flower_compile_tun_ipv4_addrs()
419 struct flow_rule *rule) in nfp_flower_compile_tun_ipv6_addrs() argument
421 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_IPV6_ADDRS)) { in nfp_flower_compile_tun_ipv6_addrs()
425 flow_rule_match_enc_ipv6_addrs(rule, &match); in nfp_flower_compile_tun_ipv6_addrs()
440 struct flow_rule *rule) in nfp_flower_compile_tun_ip_ext() argument
442 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_IP)) { in nfp_flower_compile_tun_ip_ext()
445 flow_rule_match_enc_ip(rule, &match); in nfp_flower_compile_tun_ip_ext()
455 struct flow_rule *rule) in nfp_flower_compile_tun_udp_key() argument
457 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_KEYID)) { in nfp_flower_compile_tun_udp_key()
461 flow_rule_match_enc_keyid(rule, &match); in nfp_flower_compile_tun_udp_key()
472 __be16 *flags_msk, struct flow_rule *rule) in nfp_flower_compile_tun_gre_key() argument
474 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ENC_KEYID)) { in nfp_flower_compile_tun_gre_key()
477 flow_rule_match_enc_keyid(rule, &match); in nfp_flower_compile_tun_gre_key()
489 struct flow_rule *rule) in nfp_flower_compile_ipv4_gre_tun() argument
495 nfp_flower_compile_tun_ipv4_addrs(&ext->ipv4, &msk->ipv4, rule); in nfp_flower_compile_ipv4_gre_tun()
496 nfp_flower_compile_tun_ip_ext(&ext->ip_ext, &msk->ip_ext, rule); in nfp_flower_compile_ipv4_gre_tun()
498 &ext->tun_flags, &msk->tun_flags, rule); in nfp_flower_compile_ipv4_gre_tun()
504 struct flow_rule *rule) in nfp_flower_compile_ipv4_udp_tun() argument
506 nfp_flower_compile_tun_ipv4_addrs(&ext->ipv4, &msk->ipv4, rule); in nfp_flower_compile_ipv4_udp_tun()
507 nfp_flower_compile_tun_ip_ext(&ext->ip_ext, &msk->ip_ext, rule); in nfp_flower_compile_ipv4_udp_tun()
508 nfp_flower_compile_tun_udp_key(&ext->tun_id, &msk->tun_id, rule); in nfp_flower_compile_ipv4_udp_tun()
514 struct flow_rule *rule) in nfp_flower_compile_ipv6_udp_tun() argument
516 nfp_flower_compile_tun_ipv6_addrs(&ext->ipv6, &msk->ipv6, rule); in nfp_flower_compile_ipv6_udp_tun()
517 nfp_flower_compile_tun_ip_ext(&ext->ip_ext, &msk->ip_ext, rule); in nfp_flower_compile_ipv6_udp_tun()
518 nfp_flower_compile_tun_udp_key(&ext->tun_id, &msk->tun_id, rule); in nfp_flower_compile_ipv6_udp_tun()
524 struct flow_rule *rule) in nfp_flower_compile_ipv6_gre_tun() argument
530 nfp_flower_compile_tun_ipv6_addrs(&ext->ipv6, &msk->ipv6, rule); in nfp_flower_compile_ipv6_gre_tun()
531 nfp_flower_compile_tun_ip_ext(&ext->ip_ext, &msk->ip_ext, rule); in nfp_flower_compile_ipv6_gre_tun()
533 &ext->tun_flags, &msk->tun_flags, rule); in nfp_flower_compile_ipv6_gre_tun()
537 struct flow_rule *rule, in nfp_flower_compile_flow_match() argument
564 rule, key_ls->key_layer, qinq_sup); in nfp_flower_compile_flow_match()
596 rule, extack); in nfp_flower_compile_flow_match()
607 rule); in nfp_flower_compile_flow_match()
615 rule); in nfp_flower_compile_flow_match()
623 rule); in nfp_flower_compile_flow_match()
631 rule); in nfp_flower_compile_flow_match()
643 (void *)msk, rule); in nfp_flower_compile_flow_match()
658 (void *)msk, rule); in nfp_flower_compile_flow_match()
663 /* Store the tunnel destination in the rule data. in nfp_flower_compile_flow_match()
679 (void *)msk, rule); in nfp_flower_compile_flow_match()
694 (void *)msk, rule); in nfp_flower_compile_flow_match()
699 /* Store the tunnel destination in the rule data. in nfp_flower_compile_flow_match()
707 nfp_flower_compile_geneve_opt(ext, msk, rule); in nfp_flower_compile_flow_match()