Lines Matching refs:cls
1380 struct tc_cls_matchall_offload *cls, in dsa_slave_add_cls_matchall_mirred() argument
1383 struct netlink_ext_ack *extack = cls->common.extack; in dsa_slave_add_cls_matchall_mirred()
1396 if (!flow_action_basic_hw_stats_check(&cls->rule->action, in dsa_slave_add_cls_matchall_mirred()
1397 cls->common.extack)) in dsa_slave_add_cls_matchall_mirred()
1400 act = &cls->rule->action.entries[0]; in dsa_slave_add_cls_matchall_mirred()
1412 mall_tc_entry->cookie = cls->cookie; in dsa_slave_add_cls_matchall_mirred()
1434 struct tc_cls_matchall_offload *cls, in dsa_slave_add_cls_matchall_police() argument
1437 struct netlink_ext_ack *extack = cls->common.extack; in dsa_slave_add_cls_matchall_police()
1458 if (!flow_action_basic_hw_stats_check(&cls->rule->action, in dsa_slave_add_cls_matchall_police()
1459 cls->common.extack)) in dsa_slave_add_cls_matchall_police()
1470 act = &cls->rule->action.entries[0]; in dsa_slave_add_cls_matchall_police()
1476 mall_tc_entry->cookie = cls->cookie; in dsa_slave_add_cls_matchall_police()
1494 struct tc_cls_matchall_offload *cls, in dsa_slave_add_cls_matchall() argument
1499 if (cls->common.protocol == htons(ETH_P_ALL) && in dsa_slave_add_cls_matchall()
1500 flow_offload_has_one_action(&cls->rule->action) && in dsa_slave_add_cls_matchall()
1501 cls->rule->action.entries[0].id == FLOW_ACTION_MIRRED) in dsa_slave_add_cls_matchall()
1502 err = dsa_slave_add_cls_matchall_mirred(dev, cls, ingress); in dsa_slave_add_cls_matchall()
1503 else if (flow_offload_has_one_action(&cls->rule->action) && in dsa_slave_add_cls_matchall()
1504 cls->rule->action.entries[0].id == FLOW_ACTION_POLICE) in dsa_slave_add_cls_matchall()
1505 err = dsa_slave_add_cls_matchall_police(dev, cls, ingress); in dsa_slave_add_cls_matchall()
1511 struct tc_cls_matchall_offload *cls) in dsa_slave_del_cls_matchall() argument
1517 mall_tc_entry = dsa_slave_mall_tc_entry_find(dev, cls->cookie); in dsa_slave_del_cls_matchall()
1541 struct tc_cls_matchall_offload *cls, in dsa_slave_setup_tc_cls_matchall() argument
1544 if (cls->common.chain_index) in dsa_slave_setup_tc_cls_matchall()
1547 switch (cls->command) { in dsa_slave_setup_tc_cls_matchall()
1549 return dsa_slave_add_cls_matchall(dev, cls, ingress); in dsa_slave_setup_tc_cls_matchall()
1551 dsa_slave_del_cls_matchall(dev, cls); in dsa_slave_setup_tc_cls_matchall()
1559 struct flow_cls_offload *cls, in dsa_slave_add_cls_flower() argument
1569 return ds->ops->cls_flower_add(ds, port, cls, ingress); in dsa_slave_add_cls_flower()
1573 struct flow_cls_offload *cls, in dsa_slave_del_cls_flower() argument
1583 return ds->ops->cls_flower_del(ds, port, cls, ingress); in dsa_slave_del_cls_flower()
1587 struct flow_cls_offload *cls, in dsa_slave_stats_cls_flower() argument
1597 return ds->ops->cls_flower_stats(ds, port, cls, ingress); in dsa_slave_stats_cls_flower()
1601 struct flow_cls_offload *cls, in dsa_slave_setup_tc_cls_flower() argument
1604 switch (cls->command) { in dsa_slave_setup_tc_cls_flower()
1606 return dsa_slave_add_cls_flower(dev, cls, ingress); in dsa_slave_setup_tc_cls_flower()
1608 return dsa_slave_del_cls_flower(dev, cls, ingress); in dsa_slave_setup_tc_cls_flower()
1610 return dsa_slave_stats_cls_flower(dev, cls, ingress); in dsa_slave_setup_tc_cls_flower()