Lines Matching refs:cls
935 struct tc_cls_matchall_offload *cls,
950 if (!flow_action_basic_hw_stats_check(&cls->rule->action,
951 cls->common.extack))
954 act = &cls->rule->action.entries[0];
966 mall_tc_entry->cookie = cls->cookie;
988 struct tc_cls_matchall_offload *cls,
991 struct netlink_ext_ack *extack = cls->common.extack;
1012 if (!flow_action_basic_hw_stats_check(&cls->rule->action,
1013 cls->common.extack))
1024 act = &cls->rule->action.entries[0];
1030 mall_tc_entry->cookie = cls->cookie;
1048 struct tc_cls_matchall_offload *cls,
1053 if (cls->common.protocol == htons(ETH_P_ALL) &&
1054 flow_offload_has_one_action(&cls->rule->action) &&
1055 cls->rule->action.entries[0].id == FLOW_ACTION_MIRRED)
1056 err = dsa_slave_add_cls_matchall_mirred(dev, cls, ingress);
1057 else if (flow_offload_has_one_action(&cls->rule->action) &&
1058 cls->rule->action.entries[0].id == FLOW_ACTION_POLICE)
1059 err = dsa_slave_add_cls_matchall_police(dev, cls, ingress);
1065 struct tc_cls_matchall_offload *cls)
1071 mall_tc_entry = dsa_slave_mall_tc_entry_find(dev, cls->cookie);
1095 struct tc_cls_matchall_offload *cls,
1098 if (cls->common.chain_index)
1101 switch (cls->command) {
1103 return dsa_slave_add_cls_matchall(dev, cls, ingress);
1105 dsa_slave_del_cls_matchall(dev, cls);
1113 struct flow_cls_offload *cls,
1123 return ds->ops->cls_flower_add(ds, port, cls, ingress);
1127 struct flow_cls_offload *cls,
1137 return ds->ops->cls_flower_del(ds, port, cls, ingress);
1141 struct flow_cls_offload *cls,
1151 return ds->ops->cls_flower_stats(ds, port, cls, ingress);
1155 struct flow_cls_offload *cls,
1158 switch (cls->command) {
1160 return dsa_slave_add_cls_flower(dev, cls, ingress);
1162 return dsa_slave_del_cls_flower(dev, cls, ingress);
1164 return dsa_slave_stats_cls_flower(dev, cls, ingress);