Lines Matching refs:rule

237 	struct flow_action *actions = &cls->rule->action;
251 entry = &cls->rule->action.entries[0];
254 err = otx2_policer_validate(&cls->rule->action, entry, extack);
568 struct flow_msg *flow_mask, struct flow_rule *rule,
575 flow_rule_match_cvlan(rule, &match);
577 flow_rule_match_vlan(rule, &match);
589 flow_action_for_each(i, act, &rule->action) {
592 "vlan tpid 0x%x with vlan_id %d is not supported for DROP rule.\n",
631 struct flow_rule *rule;
634 rule = flow_cls_offload_flow_rule(f);
635 dissector = rule->match.dissector;
656 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_BASIC)) {
659 flow_rule_match_basic(rule, &match);
698 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CONTROL)) {
702 flow_rule_match_control(rule, &match);
726 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ETH_ADDRS)) {
729 flow_rule_match_eth_addrs(rule, &match);
743 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IPSEC)) {
746 flow_rule_match_ipsec(rule, &match);
763 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IP)) {
766 flow_rule_match_ip(rule, &match);
781 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_VLAN)) {
784 ret = otx2_tc_process_vlan(nic, flow_spec, flow_mask, rule, req, false);
789 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_CVLAN)) {
792 ret = otx2_tc_process_vlan(nic, flow_spec, flow_mask, rule, req, true);
797 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IPV4_ADDRS)) {
800 flow_rule_match_ipv4_addrs(rule, &match);
809 } else if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_IPV6_ADDRS)) {
812 flow_rule_match_ipv6_addrs(rule, &match);
842 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_PORTS)) {
845 flow_rule_match_ports(rule, &match);
872 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_TCP)) {
875 flow_rule_match_tcp(rule, &match);
882 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_MPLS)) {
886 flow_rule_match_mpls(rule, &match);
937 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ICMP)) {
940 flow_rule_match_icmp(rule, &match);
950 return otx2_tc_parse_actions(nic, &rule->action, req, f, node);
1422 struct flow_action *actions = &cls->rule->action;
1437 entry = &cls->rule->action.entries[0];
1513 "Can't install TC flower offload rule when NTUPLE is active");
1640 "Failed to install MCAM flow entry for ingress rule");