Lines Matching refs:cls
978 struct tc_cls_matchall_offload *cls, in dsa_slave_add_cls_matchall_mirred() argument
993 if (!flow_action_basic_hw_stats_check(&cls->rule->action, in dsa_slave_add_cls_matchall_mirred()
994 cls->common.extack)) in dsa_slave_add_cls_matchall_mirred()
997 act = &cls->rule->action.entries[0]; in dsa_slave_add_cls_matchall_mirred()
1009 mall_tc_entry->cookie = cls->cookie; in dsa_slave_add_cls_matchall_mirred()
1031 struct tc_cls_matchall_offload *cls, in dsa_slave_add_cls_matchall_police() argument
1034 struct netlink_ext_ack *extack = cls->common.extack; in dsa_slave_add_cls_matchall_police()
1055 if (!flow_action_basic_hw_stats_check(&cls->rule->action, in dsa_slave_add_cls_matchall_police()
1056 cls->common.extack)) in dsa_slave_add_cls_matchall_police()
1067 act = &cls->rule->action.entries[0]; in dsa_slave_add_cls_matchall_police()
1073 mall_tc_entry->cookie = cls->cookie; in dsa_slave_add_cls_matchall_police()
1091 struct tc_cls_matchall_offload *cls, in dsa_slave_add_cls_matchall() argument
1096 if (cls->common.protocol == htons(ETH_P_ALL) && in dsa_slave_add_cls_matchall()
1097 flow_offload_has_one_action(&cls->rule->action) && in dsa_slave_add_cls_matchall()
1098 cls->rule->action.entries[0].id == FLOW_ACTION_MIRRED) in dsa_slave_add_cls_matchall()
1099 err = dsa_slave_add_cls_matchall_mirred(dev, cls, ingress); in dsa_slave_add_cls_matchall()
1100 else if (flow_offload_has_one_action(&cls->rule->action) && in dsa_slave_add_cls_matchall()
1101 cls->rule->action.entries[0].id == FLOW_ACTION_POLICE) in dsa_slave_add_cls_matchall()
1102 err = dsa_slave_add_cls_matchall_police(dev, cls, ingress); in dsa_slave_add_cls_matchall()
1108 struct tc_cls_matchall_offload *cls) in dsa_slave_del_cls_matchall() argument
1114 mall_tc_entry = dsa_slave_mall_tc_entry_find(dev, cls->cookie); in dsa_slave_del_cls_matchall()
1138 struct tc_cls_matchall_offload *cls, in dsa_slave_setup_tc_cls_matchall() argument
1141 if (cls->common.chain_index) in dsa_slave_setup_tc_cls_matchall()
1144 switch (cls->command) { in dsa_slave_setup_tc_cls_matchall()
1146 return dsa_slave_add_cls_matchall(dev, cls, ingress); in dsa_slave_setup_tc_cls_matchall()
1148 dsa_slave_del_cls_matchall(dev, cls); in dsa_slave_setup_tc_cls_matchall()
1156 struct flow_cls_offload *cls, in dsa_slave_add_cls_flower() argument
1166 return ds->ops->cls_flower_add(ds, port, cls, ingress); in dsa_slave_add_cls_flower()
1170 struct flow_cls_offload *cls, in dsa_slave_del_cls_flower() argument
1180 return ds->ops->cls_flower_del(ds, port, cls, ingress); in dsa_slave_del_cls_flower()
1184 struct flow_cls_offload *cls, in dsa_slave_stats_cls_flower() argument
1194 return ds->ops->cls_flower_stats(ds, port, cls, ingress); in dsa_slave_stats_cls_flower()
1198 struct flow_cls_offload *cls, in dsa_slave_setup_tc_cls_flower() argument
1201 switch (cls->command) { in dsa_slave_setup_tc_cls_flower()
1203 return dsa_slave_add_cls_flower(dev, cls, ingress); in dsa_slave_setup_tc_cls_flower()
1205 return dsa_slave_del_cls_flower(dev, cls, ingress); in dsa_slave_setup_tc_cls_flower()
1207 return dsa_slave_stats_cls_flower(dev, cls, ingress); in dsa_slave_setup_tc_cls_flower()