Lines Matching refs:cls

1237 				  struct tc_cls_matchall_offload *cls,  in dsa_slave_add_cls_matchall_mirred()  argument
1240 struct netlink_ext_ack *extack = cls->common.extack; in dsa_slave_add_cls_matchall_mirred()
1253 if (!flow_action_basic_hw_stats_check(&cls->rule->action, in dsa_slave_add_cls_matchall_mirred()
1254 cls->common.extack)) in dsa_slave_add_cls_matchall_mirred()
1257 act = &cls->rule->action.entries[0]; in dsa_slave_add_cls_matchall_mirred()
1269 mall_tc_entry->cookie = cls->cookie; in dsa_slave_add_cls_matchall_mirred()
1291 struct tc_cls_matchall_offload *cls, in dsa_slave_add_cls_matchall_police() argument
1294 struct netlink_ext_ack *extack = cls->common.extack; in dsa_slave_add_cls_matchall_police()
1315 if (!flow_action_basic_hw_stats_check(&cls->rule->action, in dsa_slave_add_cls_matchall_police()
1316 cls->common.extack)) in dsa_slave_add_cls_matchall_police()
1327 act = &cls->rule->action.entries[0]; in dsa_slave_add_cls_matchall_police()
1333 mall_tc_entry->cookie = cls->cookie; in dsa_slave_add_cls_matchall_police()
1351 struct tc_cls_matchall_offload *cls, in dsa_slave_add_cls_matchall() argument
1356 if (cls->common.protocol == htons(ETH_P_ALL) && in dsa_slave_add_cls_matchall()
1357 flow_offload_has_one_action(&cls->rule->action) && in dsa_slave_add_cls_matchall()
1358 cls->rule->action.entries[0].id == FLOW_ACTION_MIRRED) in dsa_slave_add_cls_matchall()
1359 err = dsa_slave_add_cls_matchall_mirred(dev, cls, ingress); in dsa_slave_add_cls_matchall()
1360 else if (flow_offload_has_one_action(&cls->rule->action) && in dsa_slave_add_cls_matchall()
1361 cls->rule->action.entries[0].id == FLOW_ACTION_POLICE) in dsa_slave_add_cls_matchall()
1362 err = dsa_slave_add_cls_matchall_police(dev, cls, ingress); in dsa_slave_add_cls_matchall()
1368 struct tc_cls_matchall_offload *cls) in dsa_slave_del_cls_matchall() argument
1374 mall_tc_entry = dsa_slave_mall_tc_entry_find(dev, cls->cookie); in dsa_slave_del_cls_matchall()
1398 struct tc_cls_matchall_offload *cls, in dsa_slave_setup_tc_cls_matchall() argument
1401 if (cls->common.chain_index) in dsa_slave_setup_tc_cls_matchall()
1404 switch (cls->command) { in dsa_slave_setup_tc_cls_matchall()
1406 return dsa_slave_add_cls_matchall(dev, cls, ingress); in dsa_slave_setup_tc_cls_matchall()
1408 dsa_slave_del_cls_matchall(dev, cls); in dsa_slave_setup_tc_cls_matchall()
1416 struct flow_cls_offload *cls, in dsa_slave_add_cls_flower() argument
1426 return ds->ops->cls_flower_add(ds, port, cls, ingress); in dsa_slave_add_cls_flower()
1430 struct flow_cls_offload *cls, in dsa_slave_del_cls_flower() argument
1440 return ds->ops->cls_flower_del(ds, port, cls, ingress); in dsa_slave_del_cls_flower()
1444 struct flow_cls_offload *cls, in dsa_slave_stats_cls_flower() argument
1454 return ds->ops->cls_flower_stats(ds, port, cls, ingress); in dsa_slave_stats_cls_flower()
1458 struct flow_cls_offload *cls, in dsa_slave_setup_tc_cls_flower() argument
1461 switch (cls->command) { in dsa_slave_setup_tc_cls_flower()
1463 return dsa_slave_add_cls_flower(dev, cls, ingress); in dsa_slave_setup_tc_cls_flower()
1465 return dsa_slave_del_cls_flower(dev, cls, ingress); in dsa_slave_setup_tc_cls_flower()
1467 return dsa_slave_stats_cls_flower(dev, cls, ingress); in dsa_slave_setup_tc_cls_flower()