Lines Matching refs:cls

11 static int dpaa2_switch_flower_parse_key(struct flow_cls_offload *cls,  in dpaa2_switch_flower_parse_key()  argument
14 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in dpaa2_switch_flower_parse_key()
16 struct netlink_ext_ack *extack = cls->common.extack; in dpaa2_switch_flower_parse_key()
486 struct flow_cls_offload *cls) in dpaa2_switch_cls_flower_replace_acl() argument
488 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in dpaa2_switch_cls_flower_replace_acl()
489 struct netlink_ext_ack *extack = cls->common.extack; in dpaa2_switch_cls_flower_replace_acl()
504 err = dpaa2_switch_flower_parse_key(cls, &acl_entry->key); in dpaa2_switch_cls_flower_replace_acl()
514 acl_entry->prio = cls->common.prio; in dpaa2_switch_cls_flower_replace_acl()
515 acl_entry->cookie = cls->cookie; in dpaa2_switch_cls_flower_replace_acl()
529 static int dpaa2_switch_flower_parse_mirror_key(struct flow_cls_offload *cls, in dpaa2_switch_flower_parse_mirror_key() argument
532 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in dpaa2_switch_flower_parse_mirror_key()
534 struct netlink_ext_ack *extack = cls->common.extack; in dpaa2_switch_flower_parse_mirror_key()
571 struct flow_cls_offload *cls) in dpaa2_switch_cls_flower_replace_mirror() argument
573 struct netlink_ext_ack *extack = cls->common.extack; in dpaa2_switch_cls_flower_replace_mirror()
584 cls_act = &cls->rule->action.entries[0]; in dpaa2_switch_cls_flower_replace_mirror()
605 err = dpaa2_switch_flower_parse_mirror_key(cls, &vlan); in dpaa2_switch_cls_flower_replace_mirror()
629 mirror_entry->cookie = cls->cookie; in dpaa2_switch_cls_flower_replace_mirror()
636 struct flow_cls_offload *cls) in dpaa2_switch_cls_flower_replace() argument
638 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in dpaa2_switch_cls_flower_replace()
639 struct netlink_ext_ack *extack = cls->common.extack; in dpaa2_switch_cls_flower_replace()
652 return dpaa2_switch_cls_flower_replace_acl(block, cls); in dpaa2_switch_cls_flower_replace()
654 return dpaa2_switch_cls_flower_replace_mirror(block, cls); in dpaa2_switch_cls_flower_replace()
662 struct flow_cls_offload *cls) in dpaa2_switch_cls_flower_destroy() argument
669 cls->cookie); in dpaa2_switch_cls_flower_destroy()
675 cls->cookie); in dpaa2_switch_cls_flower_destroy()
685 struct tc_cls_matchall_offload *cls) in dpaa2_switch_cls_matchall_replace_acl() argument
687 struct netlink_ext_ack *extack = cls->common.extack; in dpaa2_switch_cls_matchall_replace_acl()
702 act = &cls->rule->action.entries[0]; in dpaa2_switch_cls_matchall_replace_acl()
708 acl_entry->prio = cls->common.prio; in dpaa2_switch_cls_matchall_replace_acl()
709 acl_entry->cookie = cls->cookie; in dpaa2_switch_cls_matchall_replace_acl()
725 struct tc_cls_matchall_offload *cls) in dpaa2_switch_cls_matchall_replace_mirror() argument
727 struct netlink_ext_ack *extack = cls->common.extack; in dpaa2_switch_cls_matchall_replace_mirror()
737 cls_act = &cls->rule->action.entries[0]; in dpaa2_switch_cls_matchall_replace_mirror()
775 mirror_entry->cookie = cls->cookie; in dpaa2_switch_cls_matchall_replace_mirror()
782 struct tc_cls_matchall_offload *cls) in dpaa2_switch_cls_matchall_replace() argument
784 struct netlink_ext_ack *extack = cls->common.extack; in dpaa2_switch_cls_matchall_replace()
787 if (!flow_offload_has_one_action(&cls->rule->action)) { in dpaa2_switch_cls_matchall_replace()
792 act = &cls->rule->action.entries[0]; in dpaa2_switch_cls_matchall_replace()
797 return dpaa2_switch_cls_matchall_replace_acl(block, cls); in dpaa2_switch_cls_matchall_replace()
799 return dpaa2_switch_cls_matchall_replace_mirror(block, cls); in dpaa2_switch_cls_matchall_replace()
858 struct tc_cls_matchall_offload *cls) in dpaa2_switch_cls_matchall_destroy() argument
865 cls->cookie); in dpaa2_switch_cls_matchall_destroy()
872 cls->cookie); in dpaa2_switch_cls_matchall_destroy()