Lines Matching full:act
165 /* Release with strict==1 and bind==0 is only called through act API in __tcf_idr_release()
168 * also created with act API (unbinding last classifier will destroy the in __tcf_idr_release()
171 * destroyed by act API while classifier binds to action with same id in __tcf_idr_release()
200 static size_t tcf_action_shared_attrs_size(const struct tc_action *act) in tcf_action_shared_attrs_size() argument
206 act_cookie = rcu_dereference(act->act_cookie); in tcf_action_shared_attrs_size()
236 static size_t tcf_action_fill_size(const struct tc_action *act) in tcf_action_fill_size() argument
238 size_t sz = tcf_action_shared_attrs_size(act); in tcf_action_fill_size()
240 if (act->ops->get_fill_size) in tcf_action_fill_size()
241 return act->ops->get_fill_size(act) + sz; in tcf_action_fill_size()
624 int tcf_register_action(struct tc_action_ops *act, in tcf_register_action() argument
630 if (!act->act || !act->dump || !act->init || !act->walk || !act->lookup) in tcf_register_action()
643 if (act->id == a->id || (strcmp(act->kind, a->kind) == 0)) { in tcf_register_action()
649 list_add_tail(&act->head, &act_base); in tcf_register_action()
656 int tcf_unregister_action(struct tc_action_ops *act, in tcf_unregister_action() argument
664 if (a == act) { in tcf_unregister_action()
665 list_del(&act->head); in tcf_unregister_action()
737 ret = a->ops->act(skb, a, res); in tcf_action_exec()
1071 struct tc_action *act; in tcf_action_init() local
1095 act = tcf_action_init_1(net, tp, tb[i], est, ops[i - 1], in tcf_action_init()
1097 if (IS_ERR(act)) { in tcf_action_init()
1098 err = PTR_ERR(act); in tcf_action_init()
1101 sz += tcf_action_fill_size(act); in tcf_action_init()
1103 actions[i - 1] = act; in tcf_action_init()
1433 struct tc_action *act; in tca_action_gd() local
1451 act = tcf_action_get_1(net, tb[i], n, portid, extack); in tca_action_gd()
1452 if (IS_ERR(act)) { in tca_action_gd()
1453 ret = PTR_ERR(act); in tca_action_gd()
1456 attr_size += tcf_action_fill_size(act); in tca_action_gd()
1457 actions[i - 1] = act; in tca_action_gd()