Lines Matching defs:cls

1364 				 struct tc_cls_matchall_offload *cls,
1367 struct netlink_ext_ack *extack = cls->common.extack;
1380 if (!flow_action_basic_hw_stats_check(&cls->rule->action,
1381 cls->common.extack))
1384 act = &cls->rule->action.entries[0];
1396 mall_tc_entry->cookie = cls->cookie;
1418 struct tc_cls_matchall_offload *cls,
1421 struct netlink_ext_ack *extack = cls->common.extack;
1442 if (!flow_action_basic_hw_stats_check(&cls->rule->action,
1443 cls->common.extack))
1454 act = &cls->rule->action.entries[0];
1460 mall_tc_entry->cookie = cls->cookie;
1478 struct tc_cls_matchall_offload *cls,
1483 if (cls->common.protocol == htons(ETH_P_ALL) &&
1484 flow_offload_has_one_action(&cls->rule->action) &&
1485 cls->rule->action.entries[0].id == FLOW_ACTION_MIRRED)
1486 err = dsa_user_add_cls_matchall_mirred(dev, cls, ingress);
1487 else if (flow_offload_has_one_action(&cls->rule->action) &&
1488 cls->rule->action.entries[0].id == FLOW_ACTION_POLICE)
1489 err = dsa_user_add_cls_matchall_police(dev, cls, ingress);
1495 struct tc_cls_matchall_offload *cls)
1501 mall_tc_entry = dsa_user_mall_tc_entry_find(dev, cls->cookie);
1525 struct tc_cls_matchall_offload *cls,
1528 if (cls->common.chain_index)
1531 switch (cls->command) {
1533 return dsa_user_add_cls_matchall(dev, cls, ingress);
1535 dsa_user_del_cls_matchall(dev, cls);
1543 struct flow_cls_offload *cls,
1553 return ds->ops->cls_flower_add(ds, port, cls, ingress);
1557 struct flow_cls_offload *cls,
1567 return ds->ops->cls_flower_del(ds, port, cls, ingress);
1571 struct flow_cls_offload *cls,
1581 return ds->ops->cls_flower_stats(ds, port, cls, ingress);
1585 struct flow_cls_offload *cls,
1588 switch (cls->command) {
1590 return dsa_user_add_cls_flower(dev, cls, ingress);
1592 return dsa_user_del_cls_flower(dev, cls, ingress);
1594 return dsa_user_stats_cls_flower(dev, cls, ingress);