Lines Matching refs:cls

1009 				  struct tc_cls_matchall_offload *cls,  in dsa_slave_add_cls_matchall_mirred()  argument
1024 if (!flow_action_basic_hw_stats_check(&cls->rule->action, in dsa_slave_add_cls_matchall_mirred()
1025 cls->common.extack)) in dsa_slave_add_cls_matchall_mirred()
1028 act = &cls->rule->action.entries[0]; in dsa_slave_add_cls_matchall_mirred()
1040 mall_tc_entry->cookie = cls->cookie; in dsa_slave_add_cls_matchall_mirred()
1062 struct tc_cls_matchall_offload *cls, in dsa_slave_add_cls_matchall_police() argument
1065 struct netlink_ext_ack *extack = cls->common.extack; in dsa_slave_add_cls_matchall_police()
1086 if (!flow_action_basic_hw_stats_check(&cls->rule->action, in dsa_slave_add_cls_matchall_police()
1087 cls->common.extack)) in dsa_slave_add_cls_matchall_police()
1098 act = &cls->rule->action.entries[0]; in dsa_slave_add_cls_matchall_police()
1104 mall_tc_entry->cookie = cls->cookie; in dsa_slave_add_cls_matchall_police()
1122 struct tc_cls_matchall_offload *cls, in dsa_slave_add_cls_matchall() argument
1127 if (cls->common.protocol == htons(ETH_P_ALL) && in dsa_slave_add_cls_matchall()
1128 flow_offload_has_one_action(&cls->rule->action) && in dsa_slave_add_cls_matchall()
1129 cls->rule->action.entries[0].id == FLOW_ACTION_MIRRED) in dsa_slave_add_cls_matchall()
1130 err = dsa_slave_add_cls_matchall_mirred(dev, cls, ingress); in dsa_slave_add_cls_matchall()
1131 else if (flow_offload_has_one_action(&cls->rule->action) && in dsa_slave_add_cls_matchall()
1132 cls->rule->action.entries[0].id == FLOW_ACTION_POLICE) in dsa_slave_add_cls_matchall()
1133 err = dsa_slave_add_cls_matchall_police(dev, cls, ingress); in dsa_slave_add_cls_matchall()
1139 struct tc_cls_matchall_offload *cls) in dsa_slave_del_cls_matchall() argument
1145 mall_tc_entry = dsa_slave_mall_tc_entry_find(dev, cls->cookie); in dsa_slave_del_cls_matchall()
1169 struct tc_cls_matchall_offload *cls, in dsa_slave_setup_tc_cls_matchall() argument
1172 if (cls->common.chain_index) in dsa_slave_setup_tc_cls_matchall()
1175 switch (cls->command) { in dsa_slave_setup_tc_cls_matchall()
1177 return dsa_slave_add_cls_matchall(dev, cls, ingress); in dsa_slave_setup_tc_cls_matchall()
1179 dsa_slave_del_cls_matchall(dev, cls); in dsa_slave_setup_tc_cls_matchall()
1187 struct flow_cls_offload *cls, in dsa_slave_add_cls_flower() argument
1197 return ds->ops->cls_flower_add(ds, port, cls, ingress); in dsa_slave_add_cls_flower()
1201 struct flow_cls_offload *cls, in dsa_slave_del_cls_flower() argument
1211 return ds->ops->cls_flower_del(ds, port, cls, ingress); in dsa_slave_del_cls_flower()
1215 struct flow_cls_offload *cls, in dsa_slave_stats_cls_flower() argument
1225 return ds->ops->cls_flower_stats(ds, port, cls, ingress); in dsa_slave_stats_cls_flower()
1229 struct flow_cls_offload *cls, in dsa_slave_setup_tc_cls_flower() argument
1232 switch (cls->command) { in dsa_slave_setup_tc_cls_flower()
1234 return dsa_slave_add_cls_flower(dev, cls, ingress); in dsa_slave_setup_tc_cls_flower()
1236 return dsa_slave_del_cls_flower(dev, cls, ingress); in dsa_slave_setup_tc_cls_flower()
1238 return dsa_slave_stats_cls_flower(dev, cls, ingress); in dsa_slave_setup_tc_cls_flower()