Lines Matching refs:cls

1383 				 struct tc_cls_matchall_offload *cls,  in dsa_user_add_cls_matchall_mirred()  argument
1386 struct netlink_ext_ack *extack = cls->common.extack; in dsa_user_add_cls_matchall_mirred()
1396 if (cls->common.protocol != htons(ETH_P_ALL)) { in dsa_user_add_cls_matchall_mirred()
1408 if (!flow_action_basic_hw_stats_check(&cls->rule->action, extack)) in dsa_user_add_cls_matchall_mirred()
1411 act = &cls->rule->action.entries[0]; in dsa_user_add_cls_matchall_mirred()
1419 if (cls->common.skip_sw) { in dsa_user_add_cls_matchall_mirred()
1433 if (cls->common.skip_sw) { in dsa_user_add_cls_matchall_mirred()
1451 mall_tc_entry->cookie = cls->cookie; in dsa_user_add_cls_matchall_mirred()
1470 struct tc_cls_matchall_offload *cls, in dsa_user_add_cls_matchall_police() argument
1473 struct netlink_ext_ack *extack = cls->common.extack; in dsa_user_add_cls_matchall_police()
1494 if (!flow_action_basic_hw_stats_check(&cls->rule->action, extack)) in dsa_user_add_cls_matchall_police()
1505 act = &cls->rule->action.entries[0]; in dsa_user_add_cls_matchall_police()
1511 mall_tc_entry->cookie = cls->cookie; in dsa_user_add_cls_matchall_police()
1529 struct tc_cls_matchall_offload *cls, in dsa_user_add_cls_matchall() argument
1532 const struct flow_action *action = &cls->rule->action; in dsa_user_add_cls_matchall()
1533 struct netlink_ext_ack *extack = cls->common.extack; in dsa_user_add_cls_matchall()
1543 return dsa_user_add_cls_matchall_mirred(dev, cls, ingress, in dsa_user_add_cls_matchall()
1546 return dsa_user_add_cls_matchall_mirred(dev, cls, ingress, in dsa_user_add_cls_matchall()
1549 return dsa_user_add_cls_matchall_police(dev, cls, ingress); in dsa_user_add_cls_matchall()
1559 struct tc_cls_matchall_offload *cls) in dsa_user_del_cls_matchall() argument
1565 mall_tc_entry = dsa_user_mall_tc_entry_find(dev, cls->cookie); in dsa_user_del_cls_matchall()
1589 struct tc_cls_matchall_offload *cls, in dsa_user_setup_tc_cls_matchall() argument
1592 if (cls->common.chain_index) in dsa_user_setup_tc_cls_matchall()
1595 switch (cls->command) { in dsa_user_setup_tc_cls_matchall()
1597 return dsa_user_add_cls_matchall(dev, cls, ingress); in dsa_user_setup_tc_cls_matchall()
1599 dsa_user_del_cls_matchall(dev, cls); in dsa_user_setup_tc_cls_matchall()
1607 struct flow_cls_offload *cls, in dsa_user_add_cls_flower() argument
1617 return ds->ops->cls_flower_add(ds, port, cls, ingress); in dsa_user_add_cls_flower()
1621 struct flow_cls_offload *cls, in dsa_user_del_cls_flower() argument
1631 return ds->ops->cls_flower_del(ds, port, cls, ingress); in dsa_user_del_cls_flower()
1635 struct flow_cls_offload *cls, in dsa_user_stats_cls_flower() argument
1645 return ds->ops->cls_flower_stats(ds, port, cls, ingress); in dsa_user_stats_cls_flower()
1649 struct flow_cls_offload *cls, in dsa_user_setup_tc_cls_flower() argument
1652 switch (cls->command) { in dsa_user_setup_tc_cls_flower()
1654 return dsa_user_add_cls_flower(dev, cls, ingress); in dsa_user_setup_tc_cls_flower()
1656 return dsa_user_del_cls_flower(dev, cls, ingress); in dsa_user_setup_tc_cls_flower()
1658 return dsa_user_stats_cls_flower(dev, cls, ingress); in dsa_user_setup_tc_cls_flower()