Lines Matching full:act

149 	/* Release with strict==1 and bind==0 is only called through act API  in __tcf_idr_release()
152 * also created with act API (unbinding last classifier will destroy the in __tcf_idr_release()
155 * destroyed by act API while classifier binds to action with same id in __tcf_idr_release()
173 static size_t tcf_action_shared_attrs_size(const struct tc_action *act) in tcf_action_shared_attrs_size() argument
179 act_cookie = rcu_dereference(act->act_cookie); in tcf_action_shared_attrs_size()
209 static size_t tcf_action_fill_size(const struct tc_action *act) in tcf_action_fill_size() argument
211 size_t sz = tcf_action_shared_attrs_size(act); in tcf_action_fill_size()
213 if (act->ops->get_fill_size) in tcf_action_fill_size()
214 return act->ops->get_fill_size(act) + sz; in tcf_action_fill_size()
563 int tcf_register_action(struct tc_action_ops *act, in tcf_register_action() argument
569 if (!act->act || !act->dump || !act->init || !act->walk || !act->lookup) in tcf_register_action()
582 if (act->id == a->id || (strcmp(act->kind, a->kind) == 0)) { in tcf_register_action()
588 list_add_tail(&act->head, &act_base); in tcf_register_action()
595 int tcf_unregister_action(struct tc_action_ops *act, in tcf_unregister_action() argument
603 if (a == act) { in tcf_unregister_action()
604 list_del(&act->head); in tcf_unregister_action()
676 ret = a->ops->act(skb, a, res); in tcf_action_exec()
1032 struct tc_action *act; in tcf_action_init() local
1043 act = tcf_action_init_1(net, tp, tb[i], est, name, ovr, bind, in tcf_action_init()
1045 if (IS_ERR(act)) { in tcf_action_init()
1046 err = PTR_ERR(act); in tcf_action_init()
1049 sz += tcf_action_fill_size(act); in tcf_action_init()
1051 actions[i - 1] = act; in tcf_action_init()
1379 struct tc_action *act; in tca_action_gd() local
1397 act = tcf_action_get_1(net, tb[i], n, portid, extack); in tca_action_gd()
1398 if (IS_ERR(act)) { in tca_action_gd()
1399 ret = PTR_ERR(act); in tca_action_gd()
1402 attr_size += tcf_action_fill_size(act); in tca_action_gd()
1403 actions[i - 1] = act; in tca_action_gd()