Lines Matching refs:cls

11 static int dpaa2_switch_flower_parse_key(struct flow_cls_offload *cls,
14 struct flow_rule *rule = flow_cls_offload_flow_rule(cls);
16 struct netlink_ext_ack *extack = cls->common.extack;
491 struct flow_cls_offload *cls)
493 struct flow_rule *rule = flow_cls_offload_flow_rule(cls);
494 struct netlink_ext_ack *extack = cls->common.extack;
509 err = dpaa2_switch_flower_parse_key(cls, &acl_entry->key);
519 acl_entry->prio = cls->common.prio;
520 acl_entry->cookie = cls->cookie;
534 static int dpaa2_switch_flower_parse_mirror_key(struct flow_cls_offload *cls,
537 struct flow_rule *rule = flow_cls_offload_flow_rule(cls);
539 struct netlink_ext_ack *extack = cls->common.extack;
578 struct flow_cls_offload *cls)
580 struct netlink_ext_ack *extack = cls->common.extack;
591 cls_act = &cls->rule->action.entries[0];
612 err = dpaa2_switch_flower_parse_mirror_key(cls, &vlan);
636 mirror_entry->cookie = cls->cookie;
643 struct flow_cls_offload *cls)
645 struct flow_rule *rule = flow_cls_offload_flow_rule(cls);
646 struct netlink_ext_ack *extack = cls->common.extack;
659 return dpaa2_switch_cls_flower_replace_acl(block, cls);
661 return dpaa2_switch_cls_flower_replace_mirror(block, cls);
669 struct flow_cls_offload *cls)
676 cls->cookie);
682 cls->cookie);
692 struct tc_cls_matchall_offload *cls)
694 struct netlink_ext_ack *extack = cls->common.extack;
709 act = &cls->rule->action.entries[0];
715 acl_entry->prio = cls->common.prio;
716 acl_entry->cookie = cls->cookie;
732 struct tc_cls_matchall_offload *cls)
734 struct netlink_ext_ack *extack = cls->common.extack;
744 cls_act = &cls->rule->action.entries[0];
782 mirror_entry->cookie = cls->cookie;
789 struct tc_cls_matchall_offload *cls)
791 struct netlink_ext_ack *extack = cls->common.extack;
794 if (!flow_offload_has_one_action(&cls->rule->action)) {
799 act = &cls->rule->action.entries[0];
804 return dpaa2_switch_cls_matchall_replace_acl(block, cls);
806 return dpaa2_switch_cls_matchall_replace_mirror(block, cls);
865 struct tc_cls_matchall_offload *cls)
872 cls->cookie);
879 cls->cookie);