Lines Matching refs:cls

29 					     struct tc_cls_u32_offload *cls,  in tc_find_entry()  argument
33 u32 loc = cls->knode.handle; in tc_find_entry()
59 struct tc_cls_u32_offload *cls) in tc_fill_actions() argument
66 exts = cls->knode.exts; in tc_fill_actions()
92 struct tc_cls_u32_offload *cls) in tc_fill_entry() argument
95 struct tc_u32_sel *sel = cls->knode.sel; in tc_fill_entry()
97 u32 prio = cls->common.prio << 16; in tc_fill_entry()
108 switch (ntohs(cls->common.protocol)) { in tc_fill_entry()
124 entry = tc_find_entry(priv, cls, true); in tc_fill_entry()
129 frag = tc_find_entry(priv, cls, true); in tc_fill_entry()
158 ret = tc_fill_actions(entry, frag, cls); in tc_fill_entry()
172 struct tc_cls_u32_offload *cls) in tc_unfill_entry() argument
176 entry = tc_find_entry(priv, cls, false); in tc_unfill_entry()
189 struct tc_cls_u32_offload *cls) in tc_config_knode() argument
193 ret = tc_fill_entry(priv, cls); in tc_config_knode()
205 tc_unfill_entry(priv, cls); in tc_config_knode()
210 struct tc_cls_u32_offload *cls) in tc_delete_knode() argument
213 tc_unfill_entry(priv, cls); in tc_delete_knode()
220 struct tc_cls_u32_offload *cls) in tc_setup_cls_u32() argument
222 switch (cls->command) { in tc_setup_cls_u32()
224 tc_unfill_entry(priv, cls); in tc_setup_cls_u32()
227 return tc_config_knode(priv, cls); in tc_setup_cls_u32()
229 return tc_delete_knode(priv, cls); in tc_setup_cls_u32()
455 struct flow_cls_offload *cls, in tc_add_basic_flow() argument
458 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in tc_add_basic_flow()
472 struct flow_cls_offload *cls, in tc_add_ip4_flow() argument
475 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in tc_add_ip4_flow()
507 struct flow_cls_offload *cls, in tc_add_ports_flow() argument
510 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in tc_add_ports_flow()
556 struct flow_cls_offload *cls, in tc_find_flow() argument
564 if (entry->cookie == cls->cookie) in tc_find_flow()
574 int (*fn)(struct stmmac_priv *priv, struct flow_cls_offload *cls,
583 struct flow_cls_offload *cls) in tc_add_flow() argument
585 struct stmmac_flow_entry *entry = tc_find_flow(priv, cls, false); in tc_add_flow()
586 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in tc_add_flow()
590 entry = tc_find_flow(priv, cls, true); in tc_add_flow()
596 cls->common.extack); in tc_add_flow()
601 ret = tc_flow_parsers[i].fn(priv, cls, entry); in tc_add_flow()
609 entry->cookie = cls->cookie; in tc_add_flow()
614 struct flow_cls_offload *cls) in tc_del_flow() argument
616 struct stmmac_flow_entry *entry = tc_find_flow(priv, cls, false); in tc_del_flow()
637 struct flow_cls_offload *cls, in tc_find_rfs() argument
645 if (entry->cookie == cls->cookie) in tc_find_rfs()
657 struct flow_cls_offload *cls) in tc_add_vlan_flow() argument
659 struct stmmac_rfs_entry *entry = tc_find_rfs(priv, cls, false); in tc_add_vlan_flow()
660 struct flow_rule *rule = flow_cls_offload_flow_rule(cls); in tc_add_vlan_flow()
662 int tc = tc_classid_to_hwtc(priv->dev, cls->classid); in tc_add_vlan_flow()
666 entry = tc_find_rfs(priv, cls, true); in tc_add_vlan_flow()
698 entry->cookie = cls->cookie; in tc_add_vlan_flow()
708 struct flow_cls_offload *cls) in tc_del_vlan_flow() argument
710 struct stmmac_rfs_entry *entry = tc_find_rfs(priv, cls, false); in tc_del_vlan_flow()
728 struct flow_cls_offload *cls) in tc_add_flow_cls() argument
732 ret = tc_add_flow(priv, cls); in tc_add_flow_cls()
736 return tc_add_vlan_flow(priv, cls); in tc_add_flow_cls()
740 struct flow_cls_offload *cls) in tc_del_flow_cls() argument
744 ret = tc_del_flow(priv, cls); in tc_del_flow_cls()
748 return tc_del_vlan_flow(priv, cls); in tc_del_flow_cls()
752 struct flow_cls_offload *cls) in tc_setup_cls() argument
760 switch (cls->command) { in tc_setup_cls()
762 ret = tc_add_flow_cls(priv, cls); in tc_setup_cls()
765 ret = tc_del_flow_cls(priv, cls); in tc_setup_cls()