Lines Matching refs:cls

898 				  struct tc_cls_matchall_offload *cls,  in dsa_slave_add_cls_matchall_mirred()  argument
913 if (!flow_action_basic_hw_stats_check(&cls->rule->action, in dsa_slave_add_cls_matchall_mirred()
914 cls->common.extack)) in dsa_slave_add_cls_matchall_mirred()
917 act = &cls->rule->action.entries[0]; in dsa_slave_add_cls_matchall_mirred()
929 mall_tc_entry->cookie = cls->cookie; in dsa_slave_add_cls_matchall_mirred()
951 struct tc_cls_matchall_offload *cls, in dsa_slave_add_cls_matchall_police() argument
954 struct netlink_ext_ack *extack = cls->common.extack; in dsa_slave_add_cls_matchall_police()
975 if (!flow_action_basic_hw_stats_check(&cls->rule->action, in dsa_slave_add_cls_matchall_police()
976 cls->common.extack)) in dsa_slave_add_cls_matchall_police()
987 act = &cls->rule->action.entries[0]; in dsa_slave_add_cls_matchall_police()
993 mall_tc_entry->cookie = cls->cookie; in dsa_slave_add_cls_matchall_police()
1011 struct tc_cls_matchall_offload *cls, in dsa_slave_add_cls_matchall() argument
1016 if (cls->common.protocol == htons(ETH_P_ALL) && in dsa_slave_add_cls_matchall()
1017 flow_offload_has_one_action(&cls->rule->action) && in dsa_slave_add_cls_matchall()
1018 cls->rule->action.entries[0].id == FLOW_ACTION_MIRRED) in dsa_slave_add_cls_matchall()
1019 err = dsa_slave_add_cls_matchall_mirred(dev, cls, ingress); in dsa_slave_add_cls_matchall()
1020 else if (flow_offload_has_one_action(&cls->rule->action) && in dsa_slave_add_cls_matchall()
1021 cls->rule->action.entries[0].id == FLOW_ACTION_POLICE) in dsa_slave_add_cls_matchall()
1022 err = dsa_slave_add_cls_matchall_police(dev, cls, ingress); in dsa_slave_add_cls_matchall()
1028 struct tc_cls_matchall_offload *cls) in dsa_slave_del_cls_matchall() argument
1034 mall_tc_entry = dsa_slave_mall_tc_entry_find(dev, cls->cookie); in dsa_slave_del_cls_matchall()
1058 struct tc_cls_matchall_offload *cls, in dsa_slave_setup_tc_cls_matchall() argument
1061 if (cls->common.chain_index) in dsa_slave_setup_tc_cls_matchall()
1064 switch (cls->command) { in dsa_slave_setup_tc_cls_matchall()
1066 return dsa_slave_add_cls_matchall(dev, cls, ingress); in dsa_slave_setup_tc_cls_matchall()
1068 dsa_slave_del_cls_matchall(dev, cls); in dsa_slave_setup_tc_cls_matchall()
1076 struct flow_cls_offload *cls, in dsa_slave_add_cls_flower() argument
1086 return ds->ops->cls_flower_add(ds, port, cls, ingress); in dsa_slave_add_cls_flower()
1090 struct flow_cls_offload *cls, in dsa_slave_del_cls_flower() argument
1100 return ds->ops->cls_flower_del(ds, port, cls, ingress); in dsa_slave_del_cls_flower()
1104 struct flow_cls_offload *cls, in dsa_slave_stats_cls_flower() argument
1114 return ds->ops->cls_flower_stats(ds, port, cls, ingress); in dsa_slave_stats_cls_flower()
1118 struct flow_cls_offload *cls, in dsa_slave_setup_tc_cls_flower() argument
1121 switch (cls->command) { in dsa_slave_setup_tc_cls_flower()
1123 return dsa_slave_add_cls_flower(dev, cls, ingress); in dsa_slave_setup_tc_cls_flower()
1125 return dsa_slave_del_cls_flower(dev, cls, ingress); in dsa_slave_setup_tc_cls_flower()
1127 return dsa_slave_stats_cls_flower(dev, cls, ingress); in dsa_slave_setup_tc_cls_flower()