Lines Matching refs:rules
475 static int nfp_fl_merge_actions_offload(struct flow_rule **rules, in nfp_fl_merge_actions_offload() argument
485 num_actions = rules[CT_TYPE_PRE_CT]->action.num_entries + in nfp_fl_merge_actions_offload()
486 rules[CT_TYPE_NFT]->action.num_entries + in nfp_fl_merge_actions_offload()
487 rules[CT_TYPE_POST_CT]->action.num_entries; in nfp_fl_merge_actions_offload()
494 a_rule->match = rules[CT_TYPE_PRE_CT]->match; in nfp_fl_merge_actions_offload()
498 if (flow_rule_match_key(rules[j], FLOW_DISSECTOR_KEY_BASIC)) { in nfp_fl_merge_actions_offload()
508 flow_rule_match_basic(rules[j], &match); in nfp_fl_merge_actions_offload()
510 a_rule->match = rules[j]->match; in nfp_fl_merge_actions_offload()
513 for (i = 0; i < rules[j]->action.num_entries; i++) { in nfp_fl_merge_actions_offload()
514 a_in = &rules[j]->action.entries[i]; in nfp_fl_merge_actions_offload()
551 struct flow_rule *rules[_CT_TYPE_MAX]; in nfp_fl_ct_add_offload() local
563 rules[CT_TYPE_PRE_CT] = m_entry->tc_m_parent->pre_ct_parent->rule; in nfp_fl_ct_add_offload()
564 rules[CT_TYPE_NFT] = m_entry->nft_parent->rule; in nfp_fl_ct_add_offload()
565 rules[CT_TYPE_POST_CT] = m_entry->tc_m_parent->post_ct_parent->rule; in nfp_fl_ct_add_offload()
574 &tmp_layer, rules[i], in nfp_fl_ct_add_offload()
643 rules[i]); in nfp_fl_ct_add_offload()
654 rules[i]); in nfp_fl_ct_add_offload()
657 rules[i], NULL); in nfp_fl_ct_add_offload()
670 rules[i]); in nfp_fl_ct_add_offload()
681 rules[i]); in nfp_fl_ct_add_offload()
692 rules[i]); in nfp_fl_ct_add_offload()
707 (void *)msk, rules[i]); in nfp_fl_ct_add_offload()
724 (void *)msk, rules[i]); in nfp_fl_ct_add_offload()
743 rules[i]); in nfp_fl_ct_add_offload()
759 (void *)msk, rules[i]); in nfp_fl_ct_add_offload()
776 (void *)msk, rules[i]); in nfp_fl_ct_add_offload()
792 nfp_flower_compile_geneve_opt(key, msk, rules[i]); in nfp_fl_ct_add_offload()
797 err = nfp_fl_merge_actions_offload(rules, priv, netdev, flow_pay); in nfp_fl_ct_add_offload()