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()
184 static size_t tcf_action_shared_attrs_size(const struct tc_action *act) in tcf_action_shared_attrs_size() argument
190 act_cookie = rcu_dereference(act->act_cookie); in tcf_action_shared_attrs_size()
220 static size_t tcf_action_fill_size(const struct tc_action *act) in tcf_action_fill_size() argument
222 size_t sz = tcf_action_shared_attrs_size(act); in tcf_action_fill_size()
224 if (act->ops->get_fill_size) in tcf_action_fill_size()
225 return act->ops->get_fill_size(act) + sz; in tcf_action_fill_size()
582 int tcf_register_action(struct tc_action_ops *act, in tcf_register_action() argument
588 if (!act->act || !act->dump || !act->init || !act->walk || !act->lookup) in tcf_register_action()
601 if (act->id == a->id || (strcmp(act->kind, a->kind) == 0)) { in tcf_register_action()
607 list_add_tail(&act->head, &act_base); in tcf_register_action()
614 int tcf_unregister_action(struct tc_action_ops *act, in tcf_unregister_action() argument
622 if (a == act) { in tcf_unregister_action()
623 list_del(&act->head); in tcf_unregister_action()
698 ret = a->ops->act(skb, a, res); in tcf_action_exec()
1067 struct tc_action *act; in tcf_action_init() local
1089 act = tcf_action_init_1(net, tp, tb[i], est, name, ovr, bind, in tcf_action_init()
1092 if (IS_ERR(act)) { in tcf_action_init()
1093 err = PTR_ERR(act); in tcf_action_init()
1096 sz += tcf_action_fill_size(act); in tcf_action_init()
1098 actions[i - 1] = act; in tcf_action_init()
1432 struct tc_action *act; in tca_action_gd() local
1450 act = tcf_action_get_1(net, tb[i], n, portid, extack); in tca_action_gd()
1451 if (IS_ERR(act)) { in tca_action_gd()
1452 ret = PTR_ERR(act); in tca_action_gd()
1455 attr_size += tcf_action_fill_size(act); in tca_action_gd()
1456 actions[i - 1] = act; in tca_action_gd()